Something is wrong :D
#1

i get this error:

Код:
D:\Documents and Settings\victor\Desktop\SAMP Server\pawno\A51.pwn(281) : error 029: invalid expression, assumed zero
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
Here is line 281:

Код:
gTeam[playerid]=TEAM_ARMY;
I Already did:

Код:
new gTeam[MAX_PLAYERS];
So whats wrong?
Reply
#2

Sometimes the line where is the error is not the same line reported in the error message. The error is probably one or few lines before line 281.
Reply
#3

I'm guessing it should be this:

gTeam[playerid] = TEAM_ARMY;
Reply
#4

Tried replacing but got 2 more erros ;(
Reply
#5

These are the lines before the line with error:

Код:
public OnPlayerRequestClass(playerid,classid)
{
    if(classid == 124 || classid == 125 || classid == 126 || classid == 127) 
    {
      GameTextForPlayer(playerid,"~g~Army",1000,5);
			SetPlayerPos(playerid, 926.8054, 2068.9204, 10.8203);
  			SetPlayerCameraPos(playerid, 931.2484, 2068.7336, 10.8203);
			SetPlayerFacingAngle(playerid,261.9358);
			SetPlayerCameraLookAt(playerid, 926.8054, 2068.9204, 10.8203);
			gTeam[playerid]=TEAM_ARMY;
			SetPlayerColor(playerid, TEAM_ARMY_COLOR);
    }
    else if(classid == 287 || classid == 191 || classid == 179 || classid == 70)
    {
    	SetPlayerPos(playerid, 222.1631, 1822.7833, 6.4141);
     	SetPlayerCameraPos(playerid, 226.6862, 1822.7711, 7.4141);
     	SetPlayerFacingAngle(playerid,269.6395);
      	SetPlayerCameraLookAt(playerid,222.1631, 1822.7833, 6.4141);
     }
		return 1;
}
Please help me,i want to get finished with this.
Reply
#6

((BUMP))
Please someone answer for me,i need answers.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)