Help please: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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Help please:error 035: argument type mismatch (argument 1) (
/showthread.php?tid=232851)
Help please:error 035: argument type mismatch (argument 1) -
bboytimix - 28.02.2011
new Float: X, Float: Y, Float: Z;
new string[256];
format(string, sizeof(string), "XP: %d || Rank: %d ", Kills,LVL);
Create3DTextLabel(string,0x000000FF,X,Y,Z,50.0,0,0 );
Attach3DTextLabelToPlayer(EXP, playerid, 0.0, 0.0, 0.4);
pease guys what wrong here ?
Re: Help please:error 035: argument type mismatch (argument 1) -
JaTochNietDan - 28.02.2011
You're not storing the ID of the 3D label anywhere? So how can you reference to it? You need to store it in a variable and then reference to it, for example:
pawn Код:
new Float: X, Float: Y, Float: Z, string[20], Text3D:EXP;
format(string, sizeof(string), "XP: %d || Rank: %d ", Kills,LVL);
EXP = Create3DTextLabel(string,0x000000FF,X,Y,Z,50.0,0,0 );
Attach3DTextLabelToPlayer(EXP, playerid, 0.0, 0.0, 0.4);
The error is probably because it's not initialized as a Text3D type variable.