/tow command
#1

i have the Tow Car Company faction and the /tow command not work
please help me with another command for this faction!


i'm sory for my english but i'm from romania!
Reply
#2

Provide your PAWN code. I will take a look at it.
Reply
#3

Код:
//-------------------------------------[TOW]--------------------------------------------
	if(strcmp(cmdtext, "/tow", true) == 0)
	{
	    if(IsPlayerConnected(playerid))
	    {
			if(PlayerInfo[playerid][pMember] == 14 || PlayerInfo[playerid][pLeader] == 14)
			{
			    if(IsPlayerInVehicle(playerid, 272) || IsPlayerInVehicle(playerid, 273) || IsPlayerInVehicle(playerid, 274) || IsPlayerInVehicle(playerid, 275))
				{
				    if(IsTrailerAttachedToVehicle(GetPlayerVehicleID(playerid)))
					{
					    if(PlayerInfo[playerid][pTow] >= 1)
					    {
					        PlayerInfo[playerid][pTow] -= 1;
					    	CP[playerid] = 111;
							SetPlayerCheckpoint(playerid, 2412.4646,-1426.3083,23.9848, 5.0);
							SendClientMessage(playerid, COLOR_YELLOW, "Drive to Warehouse to destroy the towed car.");
						}
						else
						{
						    SendClientMessage(playerid, COLOR_GRAD1, "	You cannot tow any car till PayDay.");
						}
					}
					else
					{
					    SendClientMessage(playerid, COLOR_GRAD1, "   You dont towed a car !");
					}
				}
				else
				{
					SendClientMessage(playerid, COLOR_GRAD1, "   You are not in a Tow Truck !");
				}
			}
		}
	}
That is command
Reply
#4

Provide the error codes when you compiled the script.

EDIT: Why you are so slow man? You want help or what?

Read this by the way. You may find the solution. If you cannot do that then let me know. I will try fix the code for you.
Reply
#5

Код:
	
if(strcmp(cmdtext, "/tow", true) == 0)
	{
	    if(IsPlayerConnected(playerid))
	    {
			if(PlayerInfo[playerid][pMember] == 13 || PlayerInfo[playerid][pLeader] == 13)
			{
   			if(IsPlayerInVehicle(playerid, 156 ) || IsPlayerInVehicle(playerid, 157) || IsPlayerInVehicle(playerid, 159) || IsPlayerInVehicle(playerid, 160))
				{
				    if(IsTrailerAttachedToVehicle(GetPlayerVehicleID(playerid)))
					{
					    	CP[playerid] = 111;
							SetPlayerCheckpoint(playerid, 2412.4646,-1426.3083,23.9848, 5.0);
							SendClientMessage(playerid, COLOR_YELLOW, "Drive to Warehouse to destroy the towed car.");
					}
					else
					{
					    SendClientMessage(playerid, COLOR_GRAD1, "   You dont towed a car !");
					}
				}
				else
				{
					SendClientMessage(playerid, COLOR_GRAD1, "   You are not in a Tow Truck !");
				}
			}
	}
Ia de-aici , asta sigur merge , la mine functioneaza.. nu esti Ne0 de pe B-Zone ?
Reply
#6

Oh my god.. this is English section. Speak Romanian in Romanian section. Also this isn't the solution. He should read wiki of SA-MP and investigate the problem to find out the solution...
Reply
#7

Ba da gabb mersi mult de tot
Am luat o pauza cred ca m-a dat afara din fbi
Incerc pentru a doua oara sa imi deschid un srv de samp dar nush ce va iesi de data asta trebuie sa am mai multa rabdar mai ales cu playerii!
Reply
#8

It still doesn't work

Other help please?
Reply
#9

WHAT IS THE ERROR?
Reply
#10

I write /tow and no work
i need a new good command for tat faction to tow cars
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)