10.01.2012, 17:10
Hey guys i keep getting a waring on this system. It is made to spawn 1 of 3 fires from a list. I keep getting a warning code and it doesn't work any help?
OnGameModeInit
New
Код:
C:\Users\HCC\Desktop\Linux-Server\gamemodes\vx-rp.pwn(17530) : warning 203: symbol is never used: "RandomFireSpawn" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Warning.
pawn Код:
new FireTimer[MAX_PLAYERS];
forward FireTimer(playerid)
public FireTimer()
{
if(IsPlayerConnected(playerid))
{
CreateObject(18691, RandomFireSpawn[0], RandomFireSpawn[1], RandomFireSpawn[2],0, 0, 0, 0);
SetPlayerMapIcon(playerid, 19, RandomFireSpawn[0],RandomFireSpawn[1],RandomFireSpawn[2], 55, COLOR_WHITE, 0);
if(groupVariables[playerVariables[playerid][pGroup]][gGroupType] != 3)
{
SendClientMessage(playerid, COLOR_GREEN, "Dispatch: A Fire Has Been Located Please Respond We Have Set A Icon.");
}
}
return 1;
}
//Now, for the health.
new FireHPTimer[MAX_PLAYERS];
forward HealthFire(playerid)
public HealthFire(playerid);
{
if(IsPlayerConnected(playerid))
{
if(IsPlayerInRangeOfPoint(playerid,5.0,RandomFireSpawn[0],RandomFireSpawn[1],RandomFireSpawn[2]))
{
FireHPTimer[playerid] = SetTimerEx("FireHealthTime", 25000, false, "i", playerid);//Set for 25 seconds.
}
}
return 1;
}
forward FireHealthTime(playerid)
public FireHealthTime(playerid)
{
if(IsPlayerConnected(playerid))
{
new Float:health;
GetPlayerHealth(playerid, health);
SetPlayerHealth(playerid, health-25.0);//In 25 seconds, if not treated he will loose 25 HP
}
return 1;
}
}
pawn Код:
SetTimer("FireTimer", 10000, true);
pawn Код:
new RandomFireSpawn[0] = {
{1190.1833 ,-1328.3470 ,13.5680},
//{ X, Y, Z },
//{ X, Y, Z },
};//This is of the X, Y, Z of fire spawns.