Why my cmd not working?
#1

Guys i cant identify why my this cmd of accepting jobs not working can you please help me with that?

IG when i type this cmd it says Unknown command?

Код:
if(strcmp(cmd, "/join", true) == 0)
	{
	    if(IsPlayerConnected(playerid))
	    {
			if(PlayerInfo[playerid][pJob] == 0)
			{
                if(gTeam[playerid] == 20 || gTeam[playerid] == 21 || gTeam[playerid] == 24 || gTeam[playerid] == 25)
			    {
			        SendClientMessage(playerid, COLOR_GREY, "   You must be a Civilian (Not Wanted) or a Family Member to get a Job !");
			        return 1;
			    }
			    if (GetPlayerState(playerid) == 1 && PlayerToPoint(3.0, playerid,359.5408,206.7693,1008.3828))
				{
				    SendClientMessage(playerid, COLOR_WHITE, "* You are about to become a Detective, and get a 5 hour Contract.")
				    SendClientMessage(playerid, COLOR_WHITE, "* If you are sure to become a Detective, type /accept job.");
				    GettingJob[playerid] = 1;
				}
				else if (GetPlayerState(playerid) == 1 && PlayerToPoint(3.0, playerid,347.7374,193.7241,1014.1875))
				{
				    SendClientMessage(playerid, COLOR_WHITE, "* You are about to become a Lawyer, and get a 5 hour Contract.");
				    
				    SendClientMessage(playerid, COLOR_WHITE, "* If you are sure to become a Lawyer, type /accept job.");
				    GettingJob[playerid] = 2;
				}
				else if (GetPlayerState(playerid) == 1 && PlayerToPoint(3.0, playerid,1215.1304,-11.8431,1000.9219))
				{
				    SendClientMessage(playerid, COLOR_WHITE, "* You are about to become a Whore, and get a 5 hour Contract.");
				  SendClientMessage(playerid, COLOR_WHITE, "* If you are sure to become a Whore, type /accept job.");
				    GettingJob[playerid] = 3;
				}
				else if (GetPlayerState(playerid) == 1 && PlayerToPoint(3.0, playerid,2072.5486,-1582.8029,13.4741))
				{
				    SendClientMessage(playerid, COLOR_WHITE, "* You are about to become a Drugs Dealer, and get a 5 hour Contract.");
				   SendClientMessage(playerid, COLOR_WHITE, "* If you are sure to become a Drugs Dealer, type /accept job.");
				    GettingJob[playerid] = 4;
				}
				/*else if (GetPlayerState(playerid) == 1 && PlayerToPoint(3.0, playerid,1109.3318,-1796.3042,16.5938))
				{
				    SendClientMessage(playerid, COLOR_WHITE, "* You are about to become a Car Jacker, and get a 5 hour Contract.");
				    SendClientMessage(playerid, COLOR_WHITE, "* If you are sure to become a Car Jacker, type /accept job.");
				    GettingJob[playerid] = 5;
				}*/
				else if (GetPlayerState(playerid) == 1 && PlayerToPoint(3.0, playerid,2077.52,-2013.56,13.54))
				{
				    SendClientMessage(playerid, COLOR_WHITE, "* You are about to become a Car Mechanic, and get a 5 hour Contract.");
				   SendClientMessage(playerid, COLOR_WHITE, "* If you are sure to become a Car Mechanic, type /accept job.");
				    GettingJob[playerid] = 7;
		  		}
				else if (GetPlayerState(playerid) == 1 && PlayerToPoint(3.0, playerid,2226.1716,-1718.1792,13.5165))
				{
				    SendClientMessage(playerid, COLOR_WHITE, "* You are about to become a Bodyguard, and get a 5 hour Contract.");
				    SendClientMessage(playerid, COLOR_WHITE, "* If you are sure to become a Bodyguard, type /accept job.");
				    GettingJob[playerid] = 8;
		  		}
		  		else if (GetPlayerState(playerid) == 1 && PlayerToPoint(3.0, playerid,213.8549,-230.5761,1.7786))
		  		{
		  		    SendClientMessage(playerid, COLOR_WHITE, "* You are about to become a Materials Smuggler, and get a 5 hour Contract.");
				 SendClientMessage(playerid, COLOR_WHITE, "* If you are sure to become a Materials Smuggler, type /accept job.");
				    GettingJob[playerid] = 22;
		  		}
		  		/*else if (GetPlayerState(playerid) == 1 && PlayerToPoint(3.0, playerid,594.2437,-1249.4027,18.2232))
		  		{
		  		    SendClientMessage(playerid, COLOR_WHITE, "* You are about to become a Car Dealer, and get a 5 hour Contract.");
				    SendClientMessage(playerid, COLOR_WHITE, "* If you are sure to become a Car Dealer, type /accept job.");
				    GettingJob[playerid] = 10;
		  		}*/
		  		else if (GetPlayerState(playerid) == 1 && PlayerToPoint(3.0, playerid,766.0804,14.5133,1000.7004))
		  		{
		  		    SendClientMessage(playerid, COLOR_WHITE, "* You are about to become a Boxer, and get a 5 hour Contract.");
				    SendClientMessage(playerid, COLOR_WHITE, "* If you are sure to become a Boxer, type /accept job.");
				    GettingJob[playerid] = 12;
		  		}
		  		else if (GetPlayerState(playerid) == 1 && PlayerToPoint(3.0, playerid,1154.2208,-1770.8203,16.5992))
		  		{
		  		    SendClientMessage(playerid, COLOR_WHITE, "* You are about to become a Bus Driver, and get a 5 hour Contract.");
				    SendClientMessage(playerid, COLOR_WHITE, "* If you are sure to become a Bus Driver, type /accept job.");
				    GettingJob[playerid] = 14;
		  		}
		  		/*else if (GetPlayerState(playerid) == 1 && PlayerToPoint(3.0, playerid,1784.58,-1297.52,13.37))
		  		{
		  		    SendClientMessage(playerid, COLOR_WHITE, "* You are about to become a Paper Boy, and get a 5 hour Contract.");
				 
				    GettingJob[playerid] = 15;
		  		}*/
		  		else if (GetPlayerState(playerid) == 1 && PlayerToPoint(3.0, playerid,2439.7710,-2120.9285,13.5469))
		  		{
		  		    SendClientMessage(playerid, COLOR_WHITE, "* You are about to become a Trucker, and get a 5 hour Contract.");
				   
				    SendClientMessage(playerid, COLOR_WHITE, "* If you are sure to become a Trucker, type /accept job.");
				    GettingJob[playerid] = 16;
				}
				else if (GetPlayerState(playerid) == 1 && PlayerToPoint(3.0, playerid,2101.7620,-1812.5922,13.5547))
		  		{
		  		    SendClientMessage(playerid, COLOR_WHITE, "* You are about to become a Pizza Boy, and get a 5 hour Contract.");
				 SendClientMessage(playerid, COLOR_WHITE, "* If you are sure to become a Pizza Boy, type /accept job.");
				    GettingJob[playerid] = 17;
				}
				else if (GetPlayerState(playerid) == 1 && PlayerToPoint(3.0, playerid,-382.6660,-1426.5121,26.2410))
		  		{
		  		    SendClientMessage(playerid, COLOR_WHITE, "* You are about to become a Farmer, and get a 5 hour Contract.");
				    SendClientMessage(playerid, COLOR_WHITE, "* If you are sure to become a Farmer, type /accept job.");
				    GettingJob[playerid] = 18;
				}
				else if (GetPlayerState(playerid) == 1 && PlayerToPoint(3.0, playerid,2022.1492,-1108.7837,26.2031))
				{
				    if(PlayerInfo[playerid][pMember] == 16 || PlayerInfo[playerid][pLeader] == 16)
				    {
				    	SendClientMessage(playerid, COLOR_WHITE, "* You are about to become a Drugs Smuggler, and get a 5 hour Contract.");
				    	SendClientMessage(playerid, COLOR_WHITE, "* If you are sure to become a Drugs Smuggler, type /accept job.");
				    	GettingJob[playerid] = 20;
					}
				}
				else if (GetPlayerState(playerid) == 1 && PlayerToPoint(3.0, playerid,1611.5129,-1893.6997,13.5469))
		  		{
		  		    SendClientMessage(playerid, COLOR_WHITE, "* You are about to become a Street sweeper, and get a 5 hour Contract.");
				    SendClientMessage(playerid, COLOR_WHITE, "* If you are sure to become a Street sweeper, type /accept job.");
				    GettingJob[playerid] = 21;
				}
		  		else
		  		{
		  		    SendClientMessage(playerid, COLOR_GREY, "   You are not even near a place to get a Job !");
		  		}
			}
			else
			{
			    SendClientMessage(playerid, COLOR_GREY, "   You already have a Job, use /quitjob first !");
			}
		}
	    return 1;
	}
Any help would be great
Reply
#2

Are you using command includes? if yes, use their cmd feature.
Reply
#3

Quote:
Originally Posted by XGreen
Are you using command includes? if yes, use their cmd feature.
sorry but i dont understand you can you explain what you said?

sorry my english is not good...
Reply
#4

Try ; https://sampforum.blast.hk/showthread.php?tid=459934
Reply
#5

Is there any other way cause i have many cmds and it will take time to convert it in zcmd... can you help me
or CANyou edit this cmd to work
i also made another cmd edditing it /takejobbut this time it says You are not a mats smuggler

if you want i can upload its video to check it.....
Reply
#6

Show your all includes
Reply
#7

ok here are my includes.rar file this files contains all includes that i have

Includes.rar

these are my files...
Reply
#8

Are just newbie in scripting? well, if you dont understand anything on our saying, kindly read the newbie guide here: https://sampwiki.blast.hk/wiki/Category:Tutorials
Reply
#9

Quote:
Originally Posted by GTLS
Посмотреть сообщение
ok here are my includes.rar file this files contains all includes that i have

Includes.rar

these are my files...
I mean in script
like you put at top of script
#include <a_samp>
etc etc...
Reply
#10

Deleted
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)