jayson14 Posted March 24, 2021 Group: Members Topic Count: 4 Topics Per Day: 0.00 Content Count: 8 Reputation: 0 Joined: 03/06/16 Last Seen: October 17, 2021 Share 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 Link to comment Share on other sites More sharing options...
0 Balfear Posted March 24, 2021 Group: Members Topic Count: 13 Topics Per Day: 0.00 Content Count: 255 Reputation: 232 Joined: 07/24/13 Last Seen: 8 hours ago Share 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 Link to comment Share on other sites More sharing options...
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?
Link to comment
Share on other sites
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.