14.10.2016, 14:36
PHP код:
timer RespawnZombieForPlayer[TimerRespawnZombie[playerid]](playerid)
{
new Float:xa,Float:ya,Float:za,Float:aa;
for(new i = 0;i<MAX_ZOMBIE_FOR_PLAYER;i++)
{
if(FCNPC_IsDead(ZombieForPlayerID[playerid][i]))
{
FCNPC_Respawn(ZombieForPlayerID[playerid][i]);
}
if(FCNPC_IsSpawned(ZombieForPlayerID[playerid][i]) && ZombieIsAttack[ZombieForPlayerID[playerid][i]] == 0)
{
GetPlayerPos(playerid,xa,ya,za);
aa=float(random(360));
xa=xa+DistanceZSpawn[playerid]*floatsin(aa,degrees);
ya=ya+DistanceZSpawn[playerid]*floatcos(aa,degrees);
za=za+0.7;
FCNPC_SetPosition(ZombieForPlayerID[playerid][i],xa,ya,za+0.7);
FCNPC_SetAngle(ZombieForPlayerID[playerid][i],aa);
FCNPC_Stop(ZombieForPlayerID[playerid][i]);
FCNPC_StopAttack(ZombieForPlayerID[playerid][i]);
ZombieAttackPID[ZombieForPlayerID[playerid][i]] = playerid;
}
}
return 1;
}
PHP код:
new Float:x,Float:y,Float:z,Float:a;
PHP код:
new Float:xa,Float:ya,Float:za,Float:aa;
PHP код:
mysqlgm.pwn(14658) : error 010: invalid function or declaration
mysqlgm.pwn(14658 -- 14661) : error 010: invalid function or declaration
mysqlgm.pwn(14658 -- 14663) : error 010: invalid function or declaration
mysqlgm.pwn(14658 -- 14663) : fatal error 107: too many error messages on one line