GetPlayerPos Help/Bug
#1

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

The script doesnt know what x,y, and z is . .

you have to make a float

Код:
new Float: x, Float: y, Float: z;
Reply
#3

ah right, thnx dude! Let me test it!
Reply
#4

It works woohooo!! Thnx dude!!!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)