Argument Error - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Argument Error (
/showthread.php?tid=250115)
Argument Error -
ScottCFR - 22.04.2011
I try not to come to the forums for petty errors such as this. I am working on an achievement system, I made a custom function which is:
Код:
UnlockAchievement(playerid, achievement)
Код:
argument type mismatch (argument 2) [LINE 138]
138: UnlockAchievement(i, kstring);
If you need more info, just ask.
Thanks in advance
- ScottCFR
Re: Argument Error -
Backwardsman97 - 22.04.2011
In your function, I would guess the achievement parameter is supposed to be an integer? You're trying to pass a string.
Re: Argument Error -
ScottCFR - 22.04.2011
Ohh, makes sense. Exactly how do I fix it?
Re: Argument Error -
Donya - 22.04.2011
UnlockAchievement(i, an integer here?);
Re: Argument Error -
ScottCFR - 22.04.2011
I want to pass a string, not an integer.
-------------
Fixed, nevermind!