C:\Users\Faqahat\Desktop\LSSW8.0\gamemodes\LS-SW.pwn(6366) : warning 202: number of arguments does not match definition
C:\Users\Faqahat\Desktop\LSSW8.0\gamemodes\LS-SW.pwn(6366) : error 035: argument type mismatch (argument 1)
if(GetPlayerHealth(playerid) <= 0) return KillTimer(timer1);
new Float:health;
GetPlayerHealth(playerid,health);
if (health = 0) // If you don't know the cursors i remind you : < - Smaller then = - Equal to > - Bigger then
{
KillTimer(timer1);
}
new Float:health;
GetPlayerHealth(playerid,health);
if (health < 0)
{
KillTimer(timer1);
}
C:\Users\Faqahat\Desktop\LSSW8.0\gamemodes\LS-SW.pwn(6374) : error 035: argument type mismatch (argument 1)
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Error.
KillTimer(timer1);
public OnGameModeInit()
{
timer1 = SetTimer("", 1000, true); // 1000 miliseconds = 1 second . Do your calculations . Add this "OnGameModeInIt"
}
//Add this code at your script where you want to use it .
new Float:health;
GetPlayerHealth(playerid,health);
if (health < 0)
{
KillTimer(timer1);
}
timer1[playerid][GZONE] = SetTimerEx("SetZone",30000,false,"i",playerid); |
//Add this code at your script where you want to use it .
new timer1[playerid][GZONE] = SetTimerEx("SetZone",30000,false,"i",playerid);
new Float:health;
GetPlayerHealth(playerid,health);
if (health < 0)
{
KillTimer(timer1);
}