24.07.2012, 12:42
Hello,
I was wondering whats the issue in this code.
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); } } } } }