SA-MP Forums Archive
Teleport menu error - 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: Teleport menu error (/showthread.php?tid=481882)



Teleport menu error - Duck4coder - 18.12.2013

Hello, I am having a little bit of trouble making a teleport menu, i have made the menu but i just can get the command to show it:

Код:
CMD:teleport(playerid, ShowPlayerDialog, params[])
{
    SendClientMessage(playerid, ORANGE, "This is the teleportation menu");
    ShowPlayerDialog(playerid, DIALOG_SLIST, DIALOG_STYLE_LIST, "Spawn locations:", "Los Santos Airport\nSan Fiero Airport\nLas Venturus Airport", "Spawn", "Cancel");
    return 1;
}
And i get these errors on the "ShowPlayerDiaglog" line:
error 012: invalid function call, not a valid address
warning 215: expression has no effect
warning 215: expression has no effect
warning 215: expression has no effect
warning 215: expression has no effect
warning 215: expression has no effect
warning 215: expression has no effect
warning 215: expression has no effect
error 001: expected token: ";", but found ")"
error 029: invalid expression, assumed zero
fatal error 107: too many error messages on one line

Could someone point out for me the error please?


Re: Teleport menu error - Mattakil - 18.12.2013

pawn Код:
CMD:teleport(playerid, ShowPlayerDialog, params[])
to
pawn Код:
CMD:teleport(playerid, params[])



Re: Teleport menu error - Duck4coder - 18.12.2013

Quote:
Originally Posted by Mattakil
Посмотреть сообщение
pawn Код:
CMD:teleport(playerid, ShowPlayerDialog, params[])
to
pawn Код:
CMD:teleport(playerid, params[])
Thanks man , simple mistake but yeah haha