Why cant compile this ?
#1

PHP код:
CMD:dance(playeridparams[])
{
if(
id == 1)
            {
                
SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DANCE1);// Dancing Styles
            
}
            else if(
id == 2)
            {
                
SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DANCE2);// Dancing Styles
            
}
            else if(
id == 3)
            {
                
SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DANCE3);// Dancing Styles
            
}
            else if(
id == 4)
            {
                
SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DANCE4);// Dancing Styles
            
}
            else
            {
                
SendClientMessage(playeridCOLOR_WHITE"USAGE: /an dance [ID]");
                
SendClientMessage(playeridCOLOR_LIGHTBLUE"1,2,3,4");
            }
return 
1;

I got:
PHP код:
C:\Users\Niko\Desktop\DeathMatch server by bustern\gamemodes\DeathMatch.pwn(823) : error 017undefined symbol "id"
C:\Users\Niko\Desktop\DeathMatch server by bustern\gamemodes\DeathMatch.pwn(827) : error 017undefined symbol "id"
C:\Users\Niko\Desktop\DeathMatch server by bustern\gamemodes\DeathMatch.pwn(831) : error 017undefined symbol "id"
C:\Users\Niko\Desktop\DeathMatch server by bustern\gamemodes\DeathMatch.pwn(835) : error 017undefined symbol "id" 
Reply


Messages In This Thread
Why cant compile this ? - by bustern - 04.09.2013, 09:30
Re: Why cant compile this ? - by TonyII - 04.09.2013, 09:36
Re: Why cant compile this ? - by Threshold - 04.09.2013, 10:06

Forum Jump:


Users browsing this thread: 1 Guest(s)