18.07.2012, 23:31
Okay i started scripting this and there is a problem in OnDialogResponse :/
when i write /ffighter it gives Unknown Command and then it gives FireFighter Job and gives dialog but response is not working
i got another script Similar it is a GunShop but that works
The Code :/
when i write /ffighter it gives Unknown Command and then it gives FireFighter Job and gives dialog but response is not working
i got another script Similar it is a GunShop but that works
The Code :/
Код:
#pragma tabsize 0 #include <a_samp> #include <zcmd> #define FILTERSCRIPT #define COLOR_LIME 0x00FF00FF #define COLOR_RED 0xFF0000FF #define COLOR_CYAN 0x00FFFFFF #define COLOR_ORANGE 0xFFA500FF #define FIREFIGHTER_DIALOG 21 CMD:firefighter(playerid, params[]) { SendClientMessage(playerid,COLOR_RED,"FireFighter Job"); ShowPlayerDialog(playerid,FIREFIGHTER_DIALOG, DIALOG_STYLE_LIST, "FireFighters!", " Fighter No.1\n Fighter No.2\n Fighter No.3","Set","Cancel"); } public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) { if(dialogid == 21) { if(listitem == 0) { GetPlayerSkin(playerid); SetPlayerSkin(playerid, 277); } if(listitem == 1) { GetPlayerSkin(playerid); SetPlayerSkin(playerid, 278); } if(listitem == 2) { GetPlayerSkin(playerid); SetPlayerSkin(playerid, 279); } } return 1; }