SA-MP Forums Archive
Little 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)
+--- Thread: Little help (/showthread.php?tid=333797)



Little help - Face9000 - 12.04.2012

pawn Код:
public HealthWantedTimer()
{
     for (new i=0;i<MAX_PLAYERS;i++)
     {
          if (IsPlayerConnected(i))
          {
            new Float:health;
            new plwl = GetPlayerWantedLevel(i);
            GetPlayerHealth(i, health);
            if (health > 90) SetPlayerHealth(i, 90);
            if(GetPlayerWantedLevel(i) >= 3) SetPlayerWantedLevel(i,plwl 10);
          }
     }
}
error 001: expected token: ",", but found "-integer value-"
warning 215: expression has no effect
error 001: expected token: ";", but found ")"
error 029: invalid expression, assumed zero


Re: Little help - ViniBorn - 12.04.2012

pawn Код:
if(GetPlayerWantedLevel(i) >= 3) SetPlayerWantedLevel(i,plwl 10);
pawn Код:
if(GetPlayerWantedLevel(i) >= 3) SetPlayerWantedLevel(i,10);



Re: Little help - Face9000 - 12.04.2012

Ah thanks.