18.12.2013, 02:55
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:
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?
Код:
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; }
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?