error 035: argument type mismatch (argument 1) - 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)
+--- Thread: error 035: argument type mismatch (argument 1) (
/showthread.php?tid=454326)
error 035: argument type mismatch (argument 1) -
CrazyChoco - 28.07.2013
Hey I was just making a simple function until i reached this:
Quote:
C:\Users\Username\Desktop\CGCNR\gamemodes\cgcnr.pw n(14194) : error 035: argument type mismatch (argument 1)
C:\Users\Username\Desktop\CGCNR\gamemodes\cgcnr.pw n(14196) : error 035: argument type mismatch (argument 1)
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
2 Errors.
|
My code is:
pawn Код:
public IncreasePlayerXP(playerid,Value)
{
new pXP = dUserINT(playerid).("XP"); //Line 14194
pXP +=Value;
dUserSetINT(playerid).("XP", pXP); //Line 14196
return 1;
}
Got any ideas why i got those errors?
Re: error 035: argument type mismatch (argument 1) -
Konstantinos - 28.07.2013
I believe the first parameter is not integer (playerid), but string instead from what I saw to a thread.
Re: error 035: argument type mismatch (argument 1) -
CrazyChoco - 28.07.2013
What do you mean by that
?
Re : error 035: argument type mismatch (argument 1) -
AmirRFCNR - 28.07.2013
PHP код:
public IncreasePlayerXP(playerid,Value)
{
new pXP = dUserINT(playerid).(XP); //Line 14194
pXP +=Value;
dUserSetINT(playerid).(XP, pXP); //Line 14196
return 1;
}
try this
Re: error 035: argument type mismatch (argument 1) -
CrazyChoco - 28.07.2013
Nope that didn't work either, I still reach the same error
Re: error 035: argument type mismatch (argument 1) -
Firewire - 28.07.2013
You're missing PlayerName(playerid).
Re: error 035: argument type mismatch (argument 1) -
CrazyChoco - 28.07.2013
Solved by using "PlayerName(playerid)".