SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help > Help Archive

 
 
Thread Tools Display Modes
Old 08/11/2009, 02:26 PM   #1
Tigerbeast11
Gangsta
 
Join Date: Aug 2009
Posts: 771
Reputation: 5
Default Whats wrong with this?[7 warnings][3 errors][1 fatal error]

This is under OnPlayerDeath

pawn Code:
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:

Code:
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
Tigerbeast11 is offline  
Old 08/11/2009, 02:28 PM   #2
member
Huge Clucker
 
Join Date: Sep 2007
Posts: 365
Reputation: 0
Default Re: Whats wrong with this?[7 warnings][3 errors][1 fatal error]

pawn Code:
new float:x,float:y,float:z;

Should be:

pawn Code:
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
member is offline  
Old 08/11/2009, 02:32 PM   #3
Tigerbeast11
Gangsta
 
Join Date: Aug 2009
Posts: 771
Reputation: 5
Default Re: Whats wrong with this?[7 warnings][3 errors][1 fatal error]

Cheers! And thnx for the quick reply!
Tigerbeast11 is offline  
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
fatal error 107: too many error messages on one line _Vortex Help Archive 2 08/04/2010 02:03 AM
[ERROR] Help whats wrong ? tony_fitto Help Archive 2 06/03/2010 12:26 AM
fatal error 111: user error: Unkown cell size indra Help Archive 4 11/08/2009 10:27 AM
3 warnings whats wrong with this code? killdahobo99 Help Archive 4 01/08/2009 12:53 AM
Fatal Errors, Mystery to All [HELP] Delphinus Help Archive 7 30/06/2009 06:45 PM


All times are GMT. The time now is 09:26 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.