Pawn Compiler Stopped Working ? - 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: Pawn Compiler Stopped Working ? (
/showthread.php?tid=428847)
Pawn Compiler Stopped Working ? -
Giroud12 - 07.04.2013
Код:
#include <a_samp>
new god[MAX_PLAYERS]=0;
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp("/god",cmdtext,true) == 0)
{
if(god[playerid] == 0)
{
god[playerid] = 1;
return 1;
}
else
{
god[playerid] = 0;
return 1;
}
}
return 0;
}
public OnPlayerUpdate(playerid)
{
if(god[playerid] == 1)
{
SetPlayerHealth(playerid,999999);
SetPlayerArmor(playerid,999999)
}
}
Its Make My Pawno Stopped Working
Re: Pawn Compiler Stopped Working ? -
Edvin - 07.04.2013
Код:
new god[MAX_PLAYERS]=0;
??
Код:
new god[MAX_PLAYERS];
public OnPlayerConnect( playerid )
return god[ playerid ] = 0;
Re: Pawn Compiler Stopped Working ? -
dr.lozer - 07.04.2013
Wrong:
Код:
new god[MAX_PLAYERS]=0;
Correct:
Код:
new god[MAX_PLAYERS];