SA-MP Forums Archive
undefined symbol "X" (2 Errors) - 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: undefined symbol "X" (2 Errors) (/showthread.php?tid=463316)



undefined symbol "X" (2 Errors) - Omar55555 - 11.09.2013

well i have 2 errors like it says on the thread name the first one
1. i made new deathmatch teleports and i get weapons when i teleport to it the problem is i can't switch weapons after that every time i switch the weapon it come back to normal fist damn fast anyone know solution ?

Second error is
Код:
E:\OMar\Teisto\gamemodes\GM.pwn(241) : error 017: undefined symbol "X"
E:\OMar\Teisto\gamemodes\GM.pwn(243) : error 017: undefined symbol "X"
and lines is

241
pawn Код:
GetPlayerPos(playerid,X,Y,Z); //
And line 243 is same that line ^

And btw i tried to make /sync command in order to fix this weapons thing to make it switch make normally

but if u know way to fix first problem second problem not needed and Thanks in Advance


Re: undefined symbol "X" (2 Errors) - HardRock - 11.09.2013

Show all code.


Re: undefined symbol "X" (2 Errors) - Konstantinos - 11.09.2013

Declare it before.

pawn Код:
new
    Float: X,
    Float: Y,
    Float: Z
;
GetPlayerPos( playerid, X, Y, Z );
In case it's been used, change the name to XX, YY, ZZ.


Re: undefined symbol "X" (2 Errors) - Omar55555 - 11.09.2013

Oh Konstantinos Thank you very much it works its weird how i take ages to find a solution and u find it in a sec i'll rep u soon as possible