Teleport menu error
#1

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?
Reply


Messages In This Thread
Teleport menu error - by Duck4coder - 18.12.2013, 02:55
Re: Teleport menu error - by Mattakil - 18.12.2013, 03:00
Re: Teleport menu error - by Duck4coder - 18.12.2013, 03:09

Forum Jump:


Users browsing this thread: 1 Guest(s)