Whats wrong with this?:
#1

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

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

I mean, Is there any error, In it?
Reply
#4

where the eror?
Reply
#5

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.
Reply
#6

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

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

So, any help..?
Reply
#9

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....
Reply
#10

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


Forum Jump:


Users browsing this thread: 1 Guest(s)