13.06.2013, 21:19
PHP код:
if(IsATruck(newcar))//NEGERJO
{
if(PlayerInfo[playerid][pMember] == 0 || PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3)
{
else
{
new rand = random(5);
switch(rand)
{
case 0:
{
SetPlayerCheckpoint(playerid, Mission1, 3.0);
}
case 1:
{
SetPlayerCheckPoint(playerid, Mission2, 3.0);
}
case 2:
{
SetPlayerCheckPoint(playerid, Mission3, 3.0);
}
case 3:
{
SetPlayerCheckPoint(playerid, Mission5, 3.0);
}
case 4:
{
SetPlayerCheckPoint(playerid, Mission6, 3.0);
}
}
}
}
return 1;
}
EDIT : And what the above said - I didn't actually read the code - I just noticed the missing brackets.