Whats wrong with this?[7 warnings][3 errors][1 fatal error]
#1

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
Reply
#2

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
Reply
#3

Cheers! And thnx for the quick reply!
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)