17.10.2016, 16:10
hey guys i have a sistem faction point when you are duty on taxi and a player enter your car , after he exit your vehicle it should give you a factionpoint but is not giving a faction point ... why?
this gametext have the same variable and it's working , but when he need to get the faction point is not working
Код HTML:
if(TaxiDriver[playerid] != -1) { new money = floatround(TaxiDist[playerid])/100*FarePrice[TaxiDriver[playerid]]; format(gString, sizeof(gString), "~w~The ride cost~n~~r~$%s",FormatNumber(money)); GameTextForPlayer(playerid, gString, 5000, 1); format(gString, sizeof(gString), "~w~Passenger left the taxi~n~~g~Earned $%s",FormatNumber(money)); GameTextForPlayer(TaxiDriver[playerid], gString, 5000, 1); GivePlayerCash(playerid, -money); DriverMoney[TaxiDriver[playerid]] += money; TaxiDriver[playerid] = -1; TaxiDist[playerid] = 0.0; for(new i = 0; i <= 3; i++) PlayerTextDrawHide(playerid, TaxiTD[i][playerid]); if(!strmatch(GetIPEx( playerid ), GetIPEx( TaxiDriver[playerid] ))) { format(gString, sizeof(gString), "Jucatorul %s transportat la destinatie pentru %s$", GetName(playerid),FormatNumber(money)); GiveFactionPoint(TaxiDriver[playerid], 5, gString); } }
Код HTML:
format(gString, sizeof(gString), "~w~Passenger left the taxi~n~~g~Earned $%s",FormatNumber(money)); GameTextForPlayer(TaxiDriver[playerid], gString, 5000, 1);