error 029: invalid expression, assumed zero
#1

Hey,
I am very new to scripting so don't blame me if its just a typo, anyways I get these errors when I try to compile...

Код:
C:\Users\Dylan\Desktop\samp03x_svr_R1-2_win32 (1)\gamemodes\Crash_Tag_Team_Racing.pwn(105) : error 029: invalid expression, assumed zero
C:\Users\Dylan\Desktop\samp03x_svr_R1-2_win32 (1)\gamemodes\Crash_Tag_Team_Racing.pwn(109) : error 029: invalid expression, assumed zero
C:\Users\Dylan\Desktop\samp03x_svr_R1-2_win32 (1)\gamemodes\Crash_Tag_Team_Racing.pwn(262) : error 029: invalid expression, assumed zero
C:\Users\Dylan\Desktop\samp03x_svr_R1-2_win32 (1)\gamemodes\Crash_Tag_Team_Racing.pwn(266) : error 029: invalid expression, assumed zero
Код:
     SetPlayerToTeamColor(playerid)
     {
         if(gTeam[playerid] == TEAM_ZOMBIES) //line 105
         {
         SetPlayerColor(playerid, COLOR_RED);
         }
        else if(gTeam[playerid] == TEAM_POLICE) //line 109
         {
         SetPlayerColor(playerid, COLOR_BLUE);
         }
     }
Код:
public OnPlayerUpdate(playerid)
{
    if(gTeam[playerid] == TEAM_ZOMBIES) //line 262
        {
        SetPlayerColor(playerid, COLOR_RED);
        }
    else if(gTeam[playerid] == TEAM_POLICE) //line 266
       {
        SetPlayerColor(playerid, COLOR_BLUE);
       }
    else
        {
        SetPlayerColor(playerid, COLOR_WHITE);
        }
    return 1;
}
Reply
#2

Ahh nvm guys, forgot to add the team's ids in the define :P
Reply
#3

Haha well tell yourself thank you and then tell yourself you are welcome Zues lol. Don't worry about it people make mistakes, its natural for you to run here and ask us for help. When you can't figure out whats up with the errors.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)