undefined symbol.
#1

guys... what's wrong with this code? :3

PHP код:
CheckPlayerFactName(playerid)
{
    new 
fact pInfo[playerid][pFaction];
    new 
noneSAPDSAMDSANASAGS;
    if(
fact 1)
    {
        return 
none;
    }
    if(
fact == 1)
    {
        return 
SAPD;
    }
    if(
fact == 2)
    {
        return 
SAMD;
    }
    if(
fact == 3)
    {
        return 
SANA;
    }
    if(
fact == 4)
    {
        return 
SAGS;
    }
    return 
0;
}
CMD:locker(playeridparams[])
{
    new 
fname CheckPlayerFactName(playerid);
    if(!
IsPLogged(playerid)) return Error(playerid4);
    switch(
fname)
    {
        case 
none// error: UNDEFINED SYMBOL
        
{
            
SCM(playeridCOLOR_LIGHTBLUE"SERVER: {FFFFFF}You're not joined in any faction");
        }
        case 
SAPD// error: UNDEFINED SYMBOL
        
{
            
SCM(playeridCOLOR_LIGHTBLUE"Faction: {FFFFFF}You've opened SAPD locker");
        }
        case 
SAMD// error: UNDEFINED SYMBOL
        
{
            
SCM(playeridCOLOR_LIGHTBLUE"Faction: {FFFFFF}You've opened SAMD locker");
        }
        case 
SANA// error: UNDEFINED SYMBOL
        
{
            
SCM(playeridCOLOR_LIGHTBLUE"Faction: {FFFFFF}You've opened SANA locker");
        }
        case 
SAGS// error: UNDEFINED SYMBOL
        
{
            
SCM(playeridCOLOR_LIGHTBLUE"Faction: {FFFFFF}You've opened SAGS locker");
        }
    }
    return 
1;

I can't think again xD
Reply


Messages In This Thread
undefined symbol. - by KinxpIn - 31.12.2018, 17:09
Re: undefined symbol. - by RogueDrifter - 31.12.2018, 17:13
Re: undefined symbol. - by KinxpIn - 31.12.2018, 17:14
Re: undefined symbol. - by RogueDrifter - 31.12.2018, 17:15
Re: undefined symbol. - by KinxpIn - 31.12.2018, 17:41

Forum Jump:


Users browsing this thread: 1 Guest(s)