Taxi Payment Script
#1

Hello,

I was wondering whats the issue in this code.

Код:
	if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 538)
	{
		for(new i=0; i<MAX_PLAYERS; i++)
		{
	    	new pveh = GetPlayerVehicleID(playerid);
  			new PName[24];
			GetPlayerName(i, PName, 24);
			if(AccountGetInt(PName[i], "Job") == 2)
    	    {
    	        if(GetPlayerVehicleID(i) == pveh)
				{
					if(i == PLAYER_STATE_DRIVER)
					{
					    GiveMoney(playerid, -AccountGetInt(PName[i], "DriverFee"));
					    GiveMoney(i, AccountGetInt(PName[i], "DriverFee"));
					    new string[60];
					    format(string, sizeof(string), "You have paid Taxi Driver %s $%d", PName[i], AccountGetInt(PName[i], "DriverFee"));
						SendClientMessage(playerid, COLOR_YELLOW, string);
					    format(string, sizeof(string), "You were paid $%d by your passenger.", AccountGetInt(PName[i], "DriverFee"));
						SendClientMessage(playerid, COLOR_YELLOW, string);
					}
				 }
    	    }
   		}

	}
Reply


Messages In This Thread
Taxi Payment Script - by SkyWinder - 24.07.2012, 12:42
Re: Taxi Payment Script - by doreto - 24.07.2012, 12:45
Re: Taxi Payment Script - by SkyWinder - 24.07.2012, 12:57
Re: Taxi Payment Script - by Akira297 - 24.07.2012, 12:59
Re: Taxi Payment Script - by SkyWinder - 24.07.2012, 13:00
Re: Taxi Payment Script - by Cjgogo - 24.07.2012, 13:30
Re: Taxi Payment Script - by SkyWinder - 24.07.2012, 13:35
Re: Taxi Payment Script - by Cjgogo - 24.07.2012, 13:51
Re: Taxi Payment Script - by SkyWinder - 24.07.2012, 14:04
Re: Taxi Payment Script - by Cjgogo - 24.07.2012, 14:13

Forum Jump:


Users browsing this thread: 2 Guest(s)