14.06.2011, 03:09
Error Codes
This IS The Whole Code For It
Код:
C:\Documents and Settings\Administrator\Desktop\HCNR.pwn(387) : warning 217: loose indentation C:\Documents and Settings\Administrator\Desktop\HCNR.pwn(391) : error 036: empty statement C:\Documents and Settings\Administrator\Desktop\HCNR.pwn(392) : warning 217: loose indentation C:\Documents and Settings\Administrator\Desktop\HCNR.pwn(393) : error 029: invalid expression, assumed zero C:\Documents and Settings\Administrator\Desktop\HCNR.pwn(393) : error 035: argument type mismatch (argument 2) C:\Documents and Settings\Administrator\Desktop\HCNR.pwn(428) : error 017: undefined symbol "SetPlayerToTeamColour"
Код:
public OnPlayerRequestClass(playerid, classid) { switch(classid) { case 0: gTeam[playerid] = GROVE_STREET; case 1: gTeam[playerid] = Police; case 2: gTeam[playerid] = Medic; case 3: gTeam[playerid] = DrugDealer; case 4: gTeam[playerid] = TaxiDriver; case 5: gTeam[playerid] = Ballas; case 6: gTeam[playerid] = GROVE_STREET; case 7: gTeam[playerid] = HitMan; case 8: gTeam[playerid] = CarJacker; } if(gTeam[playerid] == GROVE_STREET) { SetPlayerColor(playerid,GROVE_STREET_COLOUR); //Green } if(gTeam[playerid] == Police) { SetPlayerColor(playerid,Police_COLOUR); //Blue } if(gTeam[playerid] == Medic) { SetPlayerColor(playerid,Medic_COLOUR); //LightRed } if(gTeam[playerid] == DrugDealer) { SetPlayerColor(playerid,DrugDealer_COLOUR); //pink } if(gTeam[playerid] == TaxiDriver) { SetPlayerColor(playerid,TaxiDriver_COLOUR); //Yellow } if(gTeam[playerid] == Ballas) { SetPlayerColor(playerid,Ballas_COLOUR); //Purple } if(gTeam[playerid] == HitMan) { SetPlayerColor(playerid,HitMan_COLOUR); } if(gTeam[playerid] == CarJacker); { SetPlayerColor(playerid,CarJacker_COLOUR); } SetPlayerPos(playerid, 1243.3186,-948.2298,42.6152); SetPlayerFacingAngle(playerid, 2.3892); SetPlayerCameraPos(playerid, 1243.4257,-944.8715,42.6232); SetPlayerCameraLookAt(playerid, 1243.3186,-948.2298,42.6152); return 1; }