07.10.2010, 01:19
why is this not working
Код:
public OnPlayerRequestClass(playerid, classid) { SetPlayerPos(playerid, -1296.0145,2541.9973,87.7422); SetPlayerCameraPos(playerid, -1290.0840,2541.5496,87.3370); SetPlayerCameraLookAt(playerid, -1296.0145,2541.9973,87.7422); if(classid == 115) { ShowPlayerDialog(playerid,1,DIALOG_STYLE_INPUT,"Skin","This skin requers a password !\nType down the correct password to choose it !,"OK","Cancel"); } return 1; }
Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) { if(response); { switch(dialogid); { case 1: { if(strval(inputtext) == Planes); { SendClientMessage(playerid,COLOR_WHITE,"Correct Password. Skin taken."); SetPlayerSkin(playerid,YOURSKIN); TogglePlayerControllable(playerid,true); TogglePlayerSpectating(playerid,0); SetCameraBehindPlayer(playerid); SpawnPlayer(playerid); } else { SendClientMessage(playerid,COLOR_GREY,"Invalid Password !"); return 1; } } } } return 1; }