PlayerTextDraws
#2

Код:
public vhealth_td_update(playerid)
{
    new tdstring[32], Float:vHealth;
    GetVehicleHealth(GetPlayerVehicleID(playerid), vHealth);
 
    format(tdstring, sizeof(tdstring), "Vehicle Health: %0f", vHealth);
 
    PlayerTextDrawSetString(playerid, pVehicleHealthTD[playerid], tdstring); // <<< Update the text to show the vehicle health
    return 1;
}
from Samp-wiki(https://sampwiki.blast.hk/wiki/PlayerTextDrawSetString)- they are using[playerid]. I firstly thought same as you but when I saw this example I was like wtf. So the example is wrong?
Reply


Messages In This Thread
PlayerTextDraws - by Roko_foko - 27.06.2012, 19:53
Re: PlayerTextDraws - by Roko_foko - 27.06.2012, 19:57
Re: PlayerTextDraws - by Vince - 27.06.2012, 20:01
Re: PlayerTextDraws - by Roko_foko - 27.06.2012, 20:10
Re: PlayerTextDraws - by Roko_foko - 27.06.2012, 21:31
Re: PlayerTextDraws - by Roko_foko - 27.06.2012, 21:36
Re: PlayerTextDraws - by vassilis - 27.06.2012, 21:53
Re: PlayerTextDraws - by vassilis - 27.06.2012, 22:16

Forum Jump:


Users browsing this thread: 1 Guest(s)