SA-MP Forums Archive
Whats wrong with this?: - 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?: (/showthread.php?tid=269742)



Whats wrong with this?: - Mr.1337 - 17.07.2011

I want to make a command, for hitmen, When they type /hitmanhq, They can choose, to go to upstairs, Or their interior, I got some errors, btw, here is the code.
At the top of the script:
Код:
#define Hitman123 5305
The command thingy: ( Btw, Im using ZCMD ):

Код:
CMD:hitmanhq(playerid, params[]) {
if(PlayerInfo[playerid][pLeader] == 8) && PlayerInfo[playerid][pMember] ==8)
{
ShowPlayerDialog( playerid, Hitman123, DIALOG_STYLE_LIST, "Hitman HQ", "Rooftop\nInterior", "Select", "Cancel"
Somewhere in the script:

Код:
if(dialogid == Hitman123)
	{
	   if(response == 1)
	   {
		 switch(listitem)
		 {
			case 0:
			{
			SetPlayerPos(playerid, 1830.68,-1302.82,120.27);
			return 1;
		}
			case 1:
			{
			SetPlayerPos(playerid, 1830.68,-1302.82,120.27);
			return 1;
		}
So, whats the error in it?


Re: Whats wrong with this?: - Kush - 17.07.2011

Quote:
Originally Posted by Mr.1337
Посмотреть сообщение
So, whats the error in it?
That's what you should be telling us..


Re: Whats wrong with this?: - Mr.1337 - 17.07.2011

I mean, Is there any error, In it?


Re: Whats wrong with this?: - Skaizo - 17.07.2011

where the eror?


Re: Whats wrong with this?: - Mr.1337 - 17.07.2011

Before adding the lines, which i posted, I have no errors
When i add them, these errors appears:

Код:
error 017: undefined symbol "ProxDetector"
error 017: undefined symbol "ProxDetector"
error 017: undefined symbol "ProxDetector"
error 017: undefined symbol "ProxDetector"
error 017: undefined symbol "ProxDetector"
error 017: undefined symbol "ProxDetector"
error 017: undefined symbol "GivePlayerCash"
error 017: undefined symbol "ProxDetector"
error 017: undefined symbol "GivePlayerCash"
error 017: undefined symbol "ProxDetector"
error 017: undefined symbol "ProxDetector"
error 017: undefined symbol "ProxDetector"
error 017: undefined symbol "ProxDetector"
error 017: undefined symbol "ProxDetector"
error 017: undefined symbol "ProxDetector"
error 017: undefined symbol "ProxDetector"
error 017: undefined symbol "ProxDetector"
error 017: undefined symbol "ProxDetector"
error 017: undefined symbol "GivePlayerCash"
error 017: undefined symbol "ProxDetector"
error 017: undefined symbol "GivePlayerCash"
error 017: undefined symbol "GivePlayerCash"
error 017: undefined symbol "GivePlayerCash"
error 017: undefined symbol "NOPCheck"
error 017: undefined symbol "NOPCheck"

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


26 Errors.



Re: Whats wrong with this?: - Famalamalam - 17.07.2011

26 errors.... looks like you forgot to close a statement somewhere.


Re: Whats wrong with this?: - Mr.1337 - 17.07.2011

Quote:
Originally Posted by Famalamalam
Посмотреть сообщение
26 errors.... looks like you forgot to close a statement somewhere.
Mhmm, You mean missing brackets?


Re: Whats wrong with this?: - Mr.1337 - 17.07.2011

So, any help..?


Re: Whats wrong with this?: - Kaperstone - 18.07.2011

Quote:
Originally Posted by Mr.1337
Посмотреть сообщение
Before adding the lines, which i posted, I have no errors
When i add them, these errors appears:

Код:
error 017: undefined symbol "ProxDetector"
error 017: undefined symbol "ProxDetector"
error 017: undefined symbol "ProxDetector"
error 017: undefined symbol "ProxDetector"
error 017: undefined symbol "ProxDetector"
error 017: undefined symbol "ProxDetector"
error 017: undefined symbol "GivePlayerCash"
error 017: undefined symbol "ProxDetector"
error 017: undefined symbol "GivePlayerCash"
error 017: undefined symbol "ProxDetector"
error 017: undefined symbol "ProxDetector"
error 017: undefined symbol "ProxDetector"
error 017: undefined symbol "ProxDetector"
error 017: undefined symbol "ProxDetector"
error 017: undefined symbol "ProxDetector"
error 017: undefined symbol "ProxDetector"
error 017: undefined symbol "ProxDetector"
error 017: undefined symbol "ProxDetector"
error 017: undefined symbol "GivePlayerCash"
error 017: undefined symbol "ProxDetector"
error 017: undefined symbol "GivePlayerCash"
error 017: undefined symbol "GivePlayerCash"
error 017: undefined symbol "GivePlayerCash"
error 017: undefined symbol "NOPCheck"
error 017: undefined symbol "NOPCheck"

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


26 Errors.
where you put this?
under what..?
show as this(just for example...)
Код:
public onPlayerCommandText(Blah,Blah,Blah)
{
CMD:kill(Blah)
SetPlayerHealth(playerid, -1);
}
return 0;
}
you dont have to post here all what inside the 'public' thing...
dont worry... we are not stealing any scripts here...
but if you want then no one will know what this script is about... just change the names or somthing like thet....


Re: Whats wrong with this?: - Kush - 18.07.2011

Do what mean said, and place your command all the way below the script.