Quote:
Originally Posted by Kitten
Useless
a better way is,
pawn Код:
if(dialogid == 1) { switch(listitem) { // Red case 0: SetPlayerColor(playerid, 0xFF0000FF); // Green case 1: SetPlayerColor(playerid, 0x00FF00FF); // blue case 2: SetPlayerColor(playerid, 0x0000FFFF); // White case 3: SetPlayerColor(playerid, 0xFFFFFFFF); // Black case 4: SetPlayerColor(playerid, 0x000000C1); // Aqua case 5: SetPlayerColor(playerid, 0x00FFFFFF); // Yellow case 6: SetPlayerColor(playerid, 0xFFFF00FF); // Pink case 7: SetPlayerColor(playerid, 0xFF00FFFF); } }
ShowPlayerDialog(playerid, 1, DIALOG_STYLE_LIST, "......", "Red\nGreen\nBlue\nWhite\nBlack\nAqua\nYellow\nPink", "Select", "Cancel");
instead of making bunch of commands for colors.
nice job though.
|
Ahhh Buddy You're Too Latee
In v.2 Im Gonna Make Like This And Already Started