GetPlayerPos Help/Bug - 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: GetPlayerPos Help/Bug (
/showthread.php?tid=101569)
GetPlayerPos Help/Bug -
Tigerbeast11 - 11.10.2009
Hiya! I have been using the GetPlayerPos function and i think i might have found a bug. It might not be a bug, so i wanna check with you guys first.
Код:
new Menu:CurrentMenu = GetPlayerMenu(playerid);
if(CurrentMenu == Shop)
{
switch(row)
{
case 0: //NRG-500 $2000
{
GetPlayerPos(playerid, x,y,z); // line 578
}
As you can see, im making a menu and am using the GetPlayerPos function. But the error it gives me is on line 578, (undefined symbol "x")
Plz tell me if its me doing something wrong or weather pawno is just being a pain in the bum...
Re: GetPlayerPos Help/Bug -
gemadon - 11.10.2009
The script doesnt know what x,y, and z is . .
you have to make a float
Код:
new Float: x, Float: y, Float: z;
Re: GetPlayerPos Help/Bug -
Tigerbeast11 - 11.10.2009
ah right, thnx dude! Let me test it!
Re: GetPlayerPos Help/Bug -
Tigerbeast11 - 11.10.2009
It works woohooo!! Thnx dude!!!