09.02.2012, 23:21
Код:
public SetPlayerTeamFromClass(playerid, classid) { if(classid == 0 || == 1 || == 2 || == 3) // This line! { gTeam[playerid] = Bloodz; } else if(classid == 4 || == 5 || == 6) { gTeam[playerid] = Front_Yard_Bloodz; } else if(classid == 7 || == 8 || == 9) { gTeam[playerid] = Rollin_Heights_Bloodz; } else if(classid == 10 || == 11 || == 12 || == 13 || == 14 || == 15 || == 16 || == 17) { gTeam[playerid] = Cripz; } else if(classid == 18 || == 19 || == 20) { gTeam[playerid] = Seville_Boulevard_Families; } else if(classid == 21 || == 22 || == 23) { gTeam[playerid] = Temple_Drive_Families; } else if(classid == 24 || == 25 || == 26 || == 27) { gTeam[playerid] = Varios_Los_Aztecas; } else if(classid == 28 || == 29 || == 30 || == 31) { gTeam[playerid] = Los_Santos_Vagos; } else if(classid == 32 || == 33 || == 34 || == 35) { gTeam[playerid] = San_Fierro_Rifa; } else if(classid == 36 || == 37 || == 39 || == 40) { gTeam[playerid] = Triads; } else if(classid == 41 || == 42 || == 43 || == 44) { gTeam[playerid] = Da_Nang_Boys; } else if(classid == 45 || == 46 || == 47 || == 48) { gTeam[playerid] = The_Mafia; } }
Код:
error 029: invalid expression, assumed zero