error 017: undefined symbol "playerid"
#1

hi i have 1 error with hospital spawning after death.

error:
PHP код:
(173) : error 017undefined symbol "playerid" 
code:
PHP код:
public OnPlayerDeath(playeridkilleridreason)
{
    
Died[playerid] = true;
    return 
1;
}
forward BlockHealMe(playerid);
public 
BlockHealMe(playerid) return QuickCure[playerid] = true1;
forward Recovered();
public 
Recovered()
{
    for(new 
0MAX_PLAYERSp++)
    {
        if(
Died[playerid])
        {
            
HospitalTime[p]++;
            new 
Float:life;
            
GetPlayerHealth(plife);
            
ApplyAnimation(p"CRACK""crckdeth2"4.010000);
            switch(
HospitalTime[p])
            {
                case 
.. 59:
                {
                    
SetPlayerHealth(plife+1);
                }
                case 
60:
                {
                    
Died[p] = false;
                    
SendClientMessage(p0xA9C4E4AA"");
                    
SendClientMessage(p0xA9C4E4AA"{DD2222}Doctor{FFFFFF} says: You are restore. Be careful.");
                    
ClearAnimations(p);
                    
SetPlayerPos(p1175.0963, -1318.35899280.5693);
                    
SetCameraBehindPlayer(p);
                    
SetPlayerFacingAngle(p177.8791);
                    
SetPlayerInterior(p1);
                    
HospitalTime[p] = 0;
                }
            }
        }
    }
    return 
1;

and 173 line:
PHP код:
if(Died[playerid]) 
Reply


Messages In This Thread
error 017: undefined symbol "playerid" - by Makaak - 01.05.2014, 06:00
Re: error 017: undefined symbol "playerid" - by Eth - 01.05.2014, 06:12
Re: error 017: undefined symbol "playerid" - by SickAttack - 01.05.2014, 06:20

Forum Jump:


Users browsing this thread: 1 Guest(s)