03.05.2013, 19:15
Im currently coding a class system but stucked on unclosed brackets. I already tried using a bracket finder program, it says i have 12 opened brackets and 10 closed, but i can't see them:
pawn Код:
if(dialogid == SCLASS) //SelectClass
{
if(response)
{
if(listitem == 0) //Assault
{
if(GetPVarInt(playerid,"ClassTime")>GetTickCount())return SCM(playerid,0xFF0000FF,"Please wait 1 minute before changing class again.");
SelectClass(playerid);
pInfo[playerid][Class] = 0;
SetPVarInt(playerid,"ClassTime",GetTickCount()+60000);
}
if(listitem == 1) //Demolition
{
if (GetPlayerScore(playerid) < 500)
{
SCM(playerid, 0xFFFFFF, "You don't have enough score.");
SelectClass(playerid);
}
else if(GetPlayerScore(playerid) > 500)
{
if(GetPVarInt(playerid,"ClassTime")>GetTickCount())return SCM(playerid,0xFF0000FF,"Please wait 1 minute before changing class again.");
SelectClass(playerid);
pInfo[playerid][Class] = 1;
SetPVarInt(playerid,"ClassTime",GetTickCount()+60000);
}
}
if(listitem == 2) //Sniper
{
if (GetPlayerScore(playerid) < 750)
{
SCM(playerid, 0xFFFFFF, "You don't have enough score.");
SelectClass(playerid);
}
else if(GetPlayerScore(playerid) > 750)
{
if(GetPVarInt(playerid,"ClassTime")>GetTickCount())return SCM(playerid,0xFF0000FF,"Please wait 1 minute before changing class again.");
SelectClass(playerid);
pInfo[playerid][Class] = 2;
SetPVarInt(playerid,"ClassTime",GetTickCount()+60000);
}
}
if(listitem == 3) //Pilot
{
if (GetPlayerScore(playerid) < 1500)
{
SCM(playerid, 0xFFFFFF, "You don't have enough score.");
SelectClass(playerid);
}
else if(GetPlayerScore(playerid) > 1500)
{
if(GetPVarInt(playerid,"ClassTime")>GetTickCount())return SCM(playerid,0xFF0000FF,"Please wait 1 minute before changing class again.");
SelectClass(playerid);
pInfo[playerid][Class] = 3;
SetPVarInt(playerid,"ClassTime",GetTickCount()+60000);
}
}
if(listitem == 4) //Pyroman
{
if (GetPlayerScore(playerid) < 2500)
{
SCM(playerid, 0xFFFFFF, "You don't have enough score.");
SelectClass(playerid);
}
else if(GetPlayerScore(playerid) > 2500)
{
if(GetPVarInt(playerid,"ClassTime")>GetTickCount())return SCM(playerid,0xFF0000FF,"Please wait 1 minute before changing class again.");
SelectClass(playerid);
pInfo[playerid][Class] = 4;
SetPVarInt(playerid,"ClassTime",GetTickCount()+60000);
}
}