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

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

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


Forum Jump:


Users browsing this thread: 2 Guest(s)