03.08.2018, 09:10
Hey guys i have a aquestion , why my cmd dont works for me?
PHP код:
CMD:places(playerid)
{
ShowPlayerDialog(playerid, DIALOG_PLACES, DIALOG_STYLE_LIST, "Places Menu", "Los Santos\nSan Fierro\nLas Venturas", "Go", "Cancel");
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == DIALOG_PLACES)
{
if(response)
{
switch(listitem)
{
case 0: SetPlayerPos(playerid, 1258.7352,-2036.7100,59.4561);
case 1: SetPlayerPos(playerid, -2018.0339,145.6004,27.9839);
case 2: SetPlayerPos(playerid, 2034.0673,1007.7039,10.8203);
}
}
return 1;
}
return 0;
}
Код:
C:\Users\Jaua\Downloads\samp037_svr_R2-1-1_win32\gamemodes\register.pwn(236) : error 029: invalid expression, assumed zero C:\Users\Jaua\Downloads\samp037_svr_R2-1-1_win32\gamemodes\register.pwn(258) : warning 203: symbol is never used: "places" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error.