This command fucks my script
#3

Код:
if(!strcmp(params, "taxi", true))
	{
	    new playerb;
	    if(!IsATaxidriver(playerid)) return SendClientMessage(playerid, COLOR_WHITE, "You are not a Taxi driver.");
	    if(AcceptedTaxi[playerid] == 1) return SendClientMessage(playerid, COLOR_GREY, "You have already accepted a taxi call.");
	    if(sscanf(params, "s[128]i", params, playerb)) return SendClientMessage(playerid, COLOR_GREY, "/accept taxi [ID]");
	    if(!IsPlayerLoggedIn(playerb) && !IsPlayerNPC(playerb)) return SendClientMessage(playerid, COLOR_GREY, "Invalid player id.");
	    if(OrderedTaxi[playerb] == 1)
		{
			format(string, sizeof(string), "You have accepted %s's Taxi call, He is now marked on your radar", RPN(playerb));
			SendClientMessage(playerid, COLOR_YELLOW, string);
			format(string, sizeof(string), "Taxi Driver %s is now on his way to you", RPN(playerid));
			SendClientMessage(playerb, COLOR_YELLOW, string);
			CP[playerid] = 8779;
			AcceptedTaxi[playerid] = 1;
			new Float:PosX, Float:PosY, Float:PosZ;
			GetPlayerPos(playerb, PosX, PosY, PosZ);
			SetPlayerCheckpoint(playerid, PosX, PosY, PosZ, 4.0);
			return 1;				}    <---- what is this doing here?
		}
		else if(OrderedTaxi[playerb] == 0)
		{
		    SendClientMessage(playerid, COLOR_GREY, "This player hasn't ordered a Taxi");
		    return 1;
		}
	}*/
Reply


Messages In This Thread
This command doesn't work - by NeXoR - 27.03.2016, 18:30
Re: This command fucks my script - by Crystallize - 27.03.2016, 18:36
Re: This command fucks my script - by Amads - 27.03.2016, 18:47
Re: This command fucks my script - by N0FeaR - 27.03.2016, 18:49
Re: This command fucks my script - by NeXoR - 27.03.2016, 19:15
Re: This command fucks my script - by N0FeaR - 27.03.2016, 20:25
Re: This command fucks my script - by NeXoR - 27.03.2016, 20:30
Re: This command fucks my script - by N0FeaR - 27.03.2016, 23:21
Re: This command fucks my script - by NeXoR - 28.03.2016, 11:49
Re: This command fucks my script - by thefirestate - 28.03.2016, 14:35

Forum Jump:


Users browsing this thread: 1 Guest(s)