27.03.2016, 21:42
This is the error
Error (11308-11310)
Error (17642)
Error (18260)
PHP код:
C:\Users\Kevin11\Desktop\Server\pawno\include\ActorStreamer.inc(187) : warning 213: tag mismatch
C:\Users\Kevin11\Desktop\Server\pawno\include\ActorStreamer.inc(195) : warning 213: tag mismatch
C:\Users\Kevin11\Desktop\Server\pawno\include\ActorStreamer.inc(207) : warning 213: tag mismatch
C:\Users\Kevin11\Desktop\Server\pawno\include\ActorStreamer.inc(211) : warning 213: tag mismatch
C:\Users\Kevin11\Desktop\Server\pawno\include\ActorStreamer.inc(213) : warning 213: tag mismatch
C:\Users\Kevin11\Desktop\Server\gamemodes\RCRP.pwn(11308) : warning 235: public function lacks forward declaration (symbol "OnActorDeath")
C:\Users\Kevin11\Desktop\Server\gamemodes\RCRP.pwn(11310) : error 017: undefined symbol "SetActorRespawnTime"
C:\Users\Kevin11\Desktop\Server\gamemodes\RCRP.pwn(11313) : warning 235: public function lacks forward declaration (symbol "OnPlayerTargetActor")
C:\Users\Kevin11\Desktop\Server\gamemodes\RCRP.pwn(17702) : error 025: function heading differs from prototype
C:\Users\Kevin11\Desktop\Server\gamemodes\RCRP.pwn(18263) : warning 203: symbol is never used: "DOF2_Exit"
PHP код:
public OnActorDeath(actorid, killerid, reason)
{
SetActorRespawnTime(actorid, 5000);
}
PHP код:
public OnFilterScriptExit()
{
return 1;
}
PHP код:
stock FindClosestVehicle(playerid)
{
new
Float:x, Float:y, Float:z,
closest = -1;
for(new a = 0; a < MAX_VEHICLES; a++)
{
GetVehiclePos(a, x, y, z);
if(a != GetPlayerVehicleID(playerid) && IsPlayerInRangeOfPoint(playerid, 10.0, x, y, z))
{
closest = a;
}
}
if(closest != -1) return closest;
return INVALID_VEHICLE_ID;
}