SA-MP Forums Archive
Whats wrong with this?[7 warnings][3 errors][1 fatal error] - 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: Whats wrong with this?[7 warnings][3 errors][1 fatal error] (/showthread.php?tid=107153)



Whats wrong with this?[7 warnings][3 errors][1 fatal error] - Tigerbeast11 - 08.11.2009

This is under OnPlayerDeath

pawn Код:
if(gTeam[playerid] == gTeam[killerid])
        {
            new float:x,float:y,float:z;
              GetPlayerPos(killerid,x,y,z);//Line 328
              SetPlayerPos(killerid,x,y,z+15);
              SetPlayerHealth(killerid,0);
              GameTextForPlayer(killerid,"Do Not Team-Kill!",4500,0);
              GameTextForPlayer(playerid,"Sorry for Team-Killing you!",4500,0);
I get these errors:

Код:
C:\DOCUME~1\mani\Desktop\Server\GAMEMO~1\Armed.pwn(328) : warning 213: tag mismatch
C:\DOCUME~1\mani\Desktop\Server\GAMEMO~1\Armed.pwn(328) : warning 213: tag mismatch
C:\DOCUME~1\mani\Desktop\Server\GAMEMO~1\Armed.pwn(328) : warning 213: tag mismatch
C:\DOCUME~1\mani\Desktop\Server\GAMEMO~1\Armed.pwn(329) : warning 213: tag mismatch
C:\DOCUME~1\mani\Desktop\Server\GAMEMO~1\Armed.pwn(329) : warning 213: tag mismatch
C:\DOCUME~1\mani\Desktop\Server\GAMEMO~1\Armed.pwn(329) : warning 213: tag mismatch
C:\DOCUME~1\mani\Desktop\Server\GAMEMO~1\Armed.pwn(430) : error 028: invalid subscript (not an array or too many subscripts): "GetPlayerTeam"
C:\DOCUME~1\mani\Desktop\Server\GAMEMO~1\Armed.pwn(430) : warning 215: expression has no effect
C:\DOCUME~1\mani\Desktop\Server\GAMEMO~1\Armed.pwn(430) : error 001: expected token: ";", but found "]"
C:\DOCUME~1\mani\Desktop\Server\GAMEMO~1\Armed.pwn(430) : error 029: invalid expression, assumed zero
C:\DOCUME~1\mani\Desktop\Server\GAMEMO~1\Armed.pwn(430) : fatal error 107: too many error messages on one line



Re: Whats wrong with this?[7 warnings][3 errors][1 fatal error] - member - 08.11.2009

pawn Код:
new float:x,float:y,float:z;
Should be:

pawn Код:
new Float:x,Float:y,Float:z; // Capitalised
For the other errors, you are not showing the correct lines. Post the error lines:

328-329
and line 430


Re: Whats wrong with this?[7 warnings][3 errors][1 fatal error] - Tigerbeast11 - 08.11.2009

Cheers! And thnx for the quick reply!