Someone help me ? - 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)
+--- Thread: Someone help me ? (
/showthread.php?tid=589329)
Someone help me ? -
turkromeo - 18.09.2015
Код:
C:\Documents and Settings\Administrator\Desktop\New Folder (15)\XS\gamemodes\SFCRRPG.pwn(13219) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Administrator\Desktop\New Folder (15)\XS\gamemodes\SFCRRPG.pwn(13219) : warning 215: expression has no effect
C:\Documents and Settings\Administrator\Desktop\New Folder (15)\XS\gamemodes\SFCRRPG.pwn(13219) : error 001: expected token: ";", but found "if"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
2 Errors.
Код:
public OnPlayerGiveDamage(playerid, damagedid, Float: amount, weaponid)
{
if(gTeam[playerid] != TEAM_COP && gTeam[playerid] != TEAM_ARMY && gTeam[playerid] != TEAM_CIA){
if(Aranma[playerid] != 1){
if(GetPlayerWantedLevel(playerid) >= 0 && GetPlayerWantedLevel(playerid) < 2)
{
IncreaseWantedLevel(playerid,2);
else if(GetPlayerWantedLevel(playerid) < 4){
IncreaseWantedLevel(playerid,4);
}
}
}
}
return 1;
}
How can i fix this errors ?
Re: Someone help me ? -
Mowgli - 18.09.2015
Код:
public OnPlayerGiveDamage(playerid, damagedid, Float: amount, weaponid)
{
if(gTeam[playerid] != TEAM_COP && gTeam[playerid] != TEAM_ARMY && gTeam[playerid] != TEAM_CIA){
if(Aranma[playerid] != 1){
if(GetPlayerWantedLevel(playerid) >= 0 && GetPlayerWantedLevel(playerid) < 2)
{
IncreaseWantedLevel(playerid,2);
}else if(GetPlayerWantedLevel(playerid) < 4){
IncreaseWantedLevel(playerid,4);
}
}
}
return 1;
}
try this?
Re: Someone help me ? -
Beckett - 18.09.2015
Fix your indentation! You can't spot errors like that.
Re: Someone help me ? -
rappy93 - 18.09.2015
Try with this.
PHP код:
public OnPlayerGiveDamage(playerid, damagedid, Float: amount, weaponid)
{
if(gTeam[playerid] != TEAM_COP && gTeam[playerid] != TEAM_ARMY && gTeam[playerid] != TEAM_CIA)
{
if(Aranma[playerid] != 1)
{
if(GetPlayerWantedLevel(playerid) >= 0 && GetPlayerWantedLevel(playerid) < 2)
{
IncreaseWantedLevel(playerid,2);
}
else if(GetPlayerWantedLevel(playerid) < 4)
{
IncreaseWantedLevel(playerid,4);
}
}
}
return 1;
}
Re: Someone help me ? -
turkromeo - 18.09.2015
THANKS ALL I FIXED !