20.04.2010, 20:45
When i try to make this code i get 26 ERRORS, before i add
evrything was work fine, can somebody help me
Код:
if(RegistrationStep[playerid] > 0) { if(RegistrationStep[playerid] == 1) {
pawn Код:
if(dialogid == 5510 && response)
{
switch(listitem)
{
case 0:
{
if(RegistrationStep[playerid] > 0)
{
if(RegistrationStep[playerid] == 1)
{
PlayerPlaySound(playerid, 1187, 0, 0, 10);
PlayerInfo[playerid][pSex] = 1;
ClearChatbox(playerid, 8);
ShowPlayerDialog(playerid,5511,DIALOG_STYLE_LIST,"Koliko imas godina","13\n14\n15\n16\n17\n18\n19\n20\n21\n22\n23\n24\n25\n26\n27\n28\n29\n30","Odaberi","Odustani");
ClearChatbox(playerid, 2);
new maleskin;
maleskin = random(sizeof(CivMalePeds));
SetPlayerSkin(playerid, maleskin);
PlayerInfo[playerid][pChar] = maleskin;
RegistrationStep[playerid] = 2;
return 0;
}
case 1:
{
PlayerPlaySound(playerid, 1187, 0, 0, 10);
PlayerInfo[playerid][pSex] = 2;
ClearChatbox(playerid, 8);
ShowPlayerDialog(playerid,5511,DIALOG_STYLE_LIST,"Koliko imas godina","13\n14\n15\n16\n17\n18\n19\n20\n21\n22\n23\n24\n25\n26\n27\n28\n29\n30","Odaberi","Odustani");
ClearChatbox(playerid, 2);
new femaleskin;
femaleskin = random(sizeof(CivFemalePeds));
SetPlayerSkin(playerid, femaleskin);
SetPlayerSkin(playerid, femaleskin);
PlayerInfo[playerid][pChar] = femaleskin;
RegistrationStep[playerid] = 2;
return 0;
}
}
}