SA-MP Forums

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

 
 
Thread Tools Display Modes
Old 18/06/2010, 08:05 AM   #1
Karl115
Huge Clucker
 
Join Date: Dec 2008
Posts: 233
Reputation: 2
Default [HELP] Tazer Gun

I found this SD Tazer script and i am trying to put it in my script when i do i get 10 errors. Can you help me remove the errors pls i realy need this.

These are the errors:
Code:
 


C:\DOCUME~1\Owner\Desktop\GALAXY~1\larpKbu.pwn(69797) : error 054: unmatched closing brace ("}")

C:\DOCUME~1\Owner\Desktop\GALAXY~1\larpKbu.pwn(69798) : error 010: invalid function or declaration

C:\DOCUME~1\Owner\Desktop\GALAXY~1\larpKbu.pwn(69800) : error 010: invalid function or declaration

C:\DOCUME~1\Owner\Desktop\GALAXY~1\larpKbu.pwn(69802) : error 010: invalid function or declaration

C:\DOCUME~1\Owner\Desktop\GALAXY~1\larpKbu.pwn(69805) : error 010: invalid function or declaration

C:\DOCUME~1\Owner\Desktop\GALAXY~1\larpKbu.pwn(69807) : error 010: invalid function or declaration

C:\DOCUME~1\Owner\Desktop\GALAXY~1\larpKbu.pwn(69809) : warning 218: old style prototypes used with optional semicolumns

C:\DOCUME~1\Owner\Desktop\GALAXY~1\larpKbu.pwn(69810) : error 021: symbol already defined: "format"


C:\DOCUME~1\Owner\Desktop\GALAXY~1\larpKbu.pwn(69811) : error 021: symbol already defined: "ProxDetector"

C:\DOCUME~1\Owner\Desktop\GALAXY~1\larpKbu.pwn(69813) : error 010: invalid function or declaration

C:\DOCUME~1\Owner\Desktop\GALAXY~1\larpKbu.pwn(69818) : error 010: invalid function or declaration
Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase


10 Errors.
This is the script :
Code:
}
		if(strcmp(cmd, "/armtazer", true) == 0)
		{
		  if(PlayerInfo[playerid][pFaction] != 255 && FactionInfo[PlayerInfo[playerid][pFaction]][fType] == 1 || PlayerInfo[playerid][pFaction] != 255 && FactionInfo[PlayerInfo[playerid][pFaction]][fType] == 2)
			{
			  if(Gduty[playerid] != 1)
		  	{
	        SendClientMessage(playerid, COLOR_INDIGO, "You have to be on Duty");
	        return 1;
				}
				if(GetPlayerWeapon(playerid) == 23)
				{
				  InfoBoxForPlayer(playerid, "~g~Tazer~n~~n~Tazers is armed!");
					format(string, sizeof(string), "%s withdraws and arms his tazer.", GetPlayerNameEx(playerid));
					ProxDetector(20.0, playerid, string,COLOR_GREEN,COLOR_GREEN,COLOR_GREEN,COLOR_GREEN,COLOR_GREEN);
				}
				else
				{
				  SendClientMessage(playerid, COLOR_INDIGO, "You need a tazer");
				}
			}
			return 1;
		}
Help!
Karl115 is offline  
Old 18/06/2010, 08:14 AM   #2
Karl115
Huge Clucker
 
Join Date: Dec 2008
Posts: 233
Reputation: 2
Default Re: [HELP] Tazer Gun

i can't under stand why ?? where should i put this script? in the last line right?
Karl115 is offline  
Old 18/06/2010, 08:30 AM   #3
wEstSid€
Big Clucker
 
Join Date: Jun 2010
Posts: 137
Reputation: 0
Default Re: [HELP] Tazer Gun

Quote:
Originally Posted by Karl115
i can't under stand why ?? where should i put this script? in the last line right?
Dont double post !!
Wait to someone to reply,if you dont get a reply
in 24 hours then you can post again.
wEstSid€ is offline  
Old 18/06/2010, 08:37 AM   #4
Carvos
Little Clucker
 
Join Date: Apr 2010
Posts: 30
Reputation: 0
Default Re: [HELP] Tazer Gun

Did you only copy the /armtazer part of the SouthWest-RP script?
Carvos is offline  
Old 18/06/2010, 08:45 AM   #5
Cameltoe
High-roller
 
Cameltoe's Avatar
 
Join Date: Apr 2010
Location: Norway
Posts: 1,782
Reputation: 24
Default Re: [HELP] Tazer Gun

put it under OnPlayerCommandText
__________________

Quote:
Originally Posted by Cameltoe View Post
Share the progress so others who are looking for the same also find's their answer.
Quote:
Originally Posted by teomakedonija View Post
ahaha i don't want
Rep++;
Cameltoe is offline  
Old 18/06/2010, 08:53 AM   #6
NiiRV4N4
Huge Clucker
 
Join Date: Mar 2010
Posts: 235
Reputation: 0
Default Re: [HELP] Tazer Gun

Quote:
Originally Posted by Carvos
Did you only copy the /armtazer part of the SouthWest-RP script?
HE probably did
NiiRV4N4 is offline  
Old 18/06/2010, 09:01 AM   #7
Karl115
Huge Clucker
 
Join Date: Dec 2008
Posts: 233
Reputation: 2
Default Re: [HELP] Tazer Gun

Quote:
Originally Posted by NiiRV4N4
Quote:
Originally Posted by Carvos
Did you only copy the /armtazer part of the SouthWest-RP script?
HE probably did
Yah i did because i couldn't fidn the FS..
Karl115 is offline  
Old 18/06/2010, 09:11 AM   #8
Karl115
Huge Clucker
 
Join Date: Dec 2008
Posts: 233
Reputation: 2
Default Re: [HELP] Tazer Gun

I got 4 errors now any one can help me to fix it??


Code:
C:\DOCUME~1\Owner\Desktop\GALAXY~1\LARPK1~1.PWN(20762) : error 017: undefined symbol "pFaction"
C:\DOCUME~1\Owner\Desktop\GALAXY~1\LARPK1~1.PWN(20762) : error 017: undefined symbol "pFaction"
C:\DOCUME~1\Owner\Desktop\GALAXY~1\LARPK1~1.PWN(20762) : error 029: invalid expression, assumed zero
C:\DOCUME~1\Owner\Desktop\GALAXY~1\LARPK1~1.PWN(20762) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase


4 Errors.
Karl115 is offline  
Old 18/06/2010, 10:00 AM   #9
Karl115
Huge Clucker
 
Join Date: Dec 2008
Posts: 233
Reputation: 2
Default Re: [HELP] Tazer Gun

[quote=Karl115 ]
I got 4 errors now any one can help me to fix it??



Code:
C:\DOCUME~1\Owner\Desktop\GALAXY~1\LARPK1~1.PWN(20762) : error 017: undefined symbol "pFaction"
why i get the error pFaction - id faction 1 is police so it is good?
Karl115 is offline  
Old 18/06/2010, 10:04 AM   #10
Cameltoe
High-roller
 
Cameltoe's Avatar
 
Join Date: Apr 2010
Location: Norway
Posts: 1,782
Reputation: 24
Default Re: [HELP] Tazer Gun

Lol xD triple posting won't get you anywhere else then banned..
__________________

Quote:
Originally Posted by Cameltoe View Post
Share the progress so others who are looking for the same also find's their answer.
Quote:
Originally Posted by teomakedonija View Post
ahaha i don't want
Rep++;
Cameltoe 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
tazer TouR Help Archive 3 24/06/2010 07:21 PM
Tazer command! Antonio [G-RP] Help Archive 2 23/05/2010 03:06 AM
Tazer by a weapon? acade Help Archive 13 04/03/2010 09:44 PM
SDPistol : Tazer help chneubeul Help Archive 6 23/12/2009 10:22 PM
>>> /Tazer and /getincar monster010 Help Archive 2 08/07/2009 11:00 AM


All times are GMT. The time now is 02:03 PM.


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