Argument Error
#1

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
Reply
#2

In your function, I would guess the achievement parameter is supposed to be an integer? You're trying to pass a string.
Reply
#3

Ohh, makes sense. Exactly how do I fix it?
Reply
#4

UnlockAchievement(i, an integer here?);
Reply
#5

I want to pass a string, not an integer.

-------------

Fixed, nevermind!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)