23.12.2013, 12:10
I think you want this ?
If not then can you explain more.. Do you want to put the first code in a switch ?
like dat ?
pawn Код:
case DIALOG_CITIZEN:
{
if (!response) return ShowPlayerDialog(playerid,DIALOG_CITIZEN, DIALOG_STYLE_LIST,"Which countrys Citizen you are?", "USA \nCanada \nRussia \nChina \nEurope", "Select", "Close");
if(response) PlayerInfo[playerid][pCitizen] = listitem;
return 1;
}
like dat ?
pawn Код:
switch(PlayerInfo[playerid][pArrived])
{
case 0: SetPlayerPos(playerid, 1773.8523, -1905.5093, 13.5501);
case 1: SetPlayerPos(playerid, 1772.1746, -1962.3596, 14.1172);
case 2: SetPlayerPos(playerid, 1685.6259, -2238.5376, 13.5469);
}
switch(PlayerInfo[playerid][pMale])
{
case 0:
{
maleskins = random(sizeof(MALESKIN));
SetPlayerSkin(playerid, maleskins);
PlayerInfo[playerid][pChar] = maleskins;
}
case 1:
{
femaleskins = random(sizeof(FEMALESKIN));
SetPlayerSkin(playerid, femaleskins);
PlayerInfo[playerid][pChar] = femaleskins;
}
}