10.07.2014, 19:58
(
Последний раз редактировалось Aerotactics; 10.07.2014 в 20:47.
)
I have a very similar setup working in another FS, the only difference is it outputs using 3Dtext labels, and not player textdraws. I don't understand why it's not working, as it is nearly exactly the same as the other script, yet written from scratch. The issue is that it always outputs zero in that %d.
EDIT: RESOLVED! For some reason, after updating my GM from the one over FTP, the script worked.
pawn Код:
stock UpdateGas(playerid)
{
new vehicleid = GetPlayerVehicleID(playerid);
new str[128];
format(str,sizeof(str),"Gasoline: %d",vInfo[vehicleid][gas]);
PlayerTextDrawSetString(playerid, Textdraw6[playerid], str);
return 1;
}