invalid function
#1

PHP код:
timer RespawnZombieForPlayer[TimerRespawnZombie[playerid]](playerid)
{
    new 
Float:xa,Float:ya,Float:za,Float:aa;
    for(new 
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;

This was working fine.. then it starting giving me problem with
PHP код:
new Float:x,Float:y,Float:z,Float:a
prece level.... so i changed em
PHP код:
new Float:xa,Float:ya,Float:za,Float:aa
and all the rest in this func now it gives me this error

PHP код:
mysqlgm.pwn(14658) : error 010invalid function or declaration
mysqlgm
.pwn(14658 -- 14661) : error 010invalid function or declaration
mysqlgm
.pwn(14658 -- 14663) : error 010invalid function or declaration
mysqlgm
.pwn(14658 -- 14663) : fatal error 107too many error messages on one line 
Line 14658 is function's first line
Reply


Messages In This Thread
invalid function - by iLearner - 14.10.2016, 14:36
Re: invalid function - by Hansrutger - 14.10.2016, 14:50
Re: invalid function - by iLearner - 14.10.2016, 15:14

Forum Jump:


Users browsing this thread: 1 Guest(s)