SA-MP Forums Archive
Something is wrong :D - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Something is wrong :D (/showthread.php?tid=104468)



Something is wrong :D - Danikov - 24.10.2009

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?


Re: Something is wrong :D - yom - 24.10.2009

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.


Re: Something is wrong :D - Adamrcook - 25.10.2009

I'm guessing it should be this:

gTeam[playerid] = TEAM_ARMY;


Re: Something is wrong :D - Danikov - 25.10.2009

Tried replacing but got 2 more erros ;(


Re: Something is wrong :D - Danikov - 25.10.2009

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.


Re: Something is wrong :D - Danikov - 26.10.2009

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