ShowPlayerDialog(playerid, sDialog, DIALOG_STYLE_LIST, \"Rendõr Skinek:\", \"Rendõr Skin 1\\nRendõr Skin 2\\nRendõr Skin 3\\nRendõr Skin 4\\nRendõr Skin 5\", \"Választ\", \"Mégse\");
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]){ if(dialogid == sDialog){if(response){ if(listitem == 0) { SetPlayerSkin(playerid, 281); } if(listitem == 1) { SetPlayerSkin(playerid, 280); } if(listitem == 2) { SetPlayerSkin(playerid, 282); } if(listitem == 3) { SetPlayerSkin(playerid, 283); } if(listitem == 4) { SetPlayerSkin(playerid, 284); }} }return 0;}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]){ if(dialogid == sDialog){if(response){ if(listitem == 1) { SetPlayerSkin(playerid, 281); } if(listitem == 2) { SetPlayerSkin(playerid, 280); } if(listitem == 3) { SetPlayerSkin(playerid, 282); } if(listitem == 4) { SetPlayerSkin(playerid, 283); } if(listitem == 5) { SetPlayerSkin(playerid, 284); }}} return 1;}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]){ switch( dialogid ) { case sDialog: { if ( !response ) return SendClientMessage( playerid, 0xFFFFFFFF, \"...\"); switch( listitem ) { case 0: { SetPlayerSkin( playerid, 281 ); } case 1: { SetPlayerSkin( playerid, 280 ); } case 2: { SetPlayerSkin( playerid, 282 ); } case 3: { SetPlayerSkin( playerid, 283 ); }case 4: { SetPlayerSkin( playerid, 284 ); } } } } return 1;}
Igen, én erre gyanakszom.
public OnDialogResponse (playerid, dialogid, response, listitem, inputtext []){ if(dialogid == sDialog) { if(response){ if(listitem == 0) { SetPlayerSkin(playerid, 281); } if(listitem == 1) { SetPlayerSkin(playerid, 280); } if(listitem == 2) { SetPlayerSkin(playerid, 282); } if(listitem == 3) {SetPlayerSkin(playerid, 283); } if(listitem == 4) { SetPlayerSkin(playerid, 284); } } return 1; } return 0;}