I Need Help - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: I Need Help (
/showthread.php?tid=261550)
I Need Help -
Bmxerlmao5288 - 14.06.2011
Error Codes
Код:
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"
This IS The Whole Code For It
Код:
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;
}
Re: I Need Help -
Donya - 14.06.2011
if(gTeam[playerid] == CarJacker); to if(gTeam[playerid] == CarJacker)
SetPlayerToTeamColour is not in that code
theirs nothing else wrong, as i see