jayson14 Posted March 24, 2021 Posted March 24, 2021 Hello I understand this warning that i should put number instead of variable. but how can i maintain this 2nd argument with variable like this getitem .donate_item, @Donation_Code$; The warning resolves by replacing @Donation_Code$; with number like this below getitem .donate_item, 1; I Just want to remove the warning and use the first line of code above Unexpected type for argument 2. Expected number. Can someone help me? Quote
0 Balfear Posted March 24, 2021 Posted March 24, 2021 1 hour ago, jayson14 said: Hello I understand this warning that i should put number instead of variable. but how can i maintain this 2nd argument with variable like this getitem .donate_item, @Donation_Code$; The warning resolves by replacing @Donation_Code$; with number like this below getitem .donate_item, 1; I Just want to remove the warning and use the first line of code above Unexpected type for argument 2. Expected number. Can someone help me? Read this to understand how variables works and what variable should use here:https://github.com/rathena/rathena/blob/master/doc/script_commands.txt#L455 ...$ - is a string variables you should use here .@... getitem .donate_item, .@Donation_Code; Quote
Question
jayson14
Hello I understand this warning that i should put number instead of variable. but how can i maintain this 2nd argument with variable like this
getitem .donate_item, @Donation_Code$;
The warning resolves by replacing @Donation_Code$; with number like this below
getitem .donate_item, 1;
I Just want to remove the warning and use the first line of code above
Unexpected type for argument 2. Expected number.
Can someone help me?
1 answer to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.