A textdraw - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: A textdraw (
/showthread.php?tid=616388)
A textdraw -
Frank901 - 04.09.2016
Hey, does someone know how i can make it like 0000000(Example; like cash textdraw is)
Picture:
https://www.upload.ee/image/6131813/sa-mp-024.png
That number over there to make it like 0000000.
Thanks.
Re: A textdraw -
Fairuz - 04.09.2016
Well I took this from CNRSF script..
It will add 8 '0',you can edit them as you want..
PHP код:
format(finalExperience, sizeof(finalExperience), "%08d", playerData[playerid][playerXP]);
Re: A textdraw -
Frank901 - 04.09.2016
I can see, can you tell where it supposed to be, not exactly just a file name.
Re: A textdraw -
Fairuz - 04.09.2016
Paste the code when the XP textdraw is update on here,I will help you.
Re: A textdraw -
Frank901 - 04.09.2016
Код:
public OnPlayerUpdate(playerid)
{
if(!Player[playerid][onDuty])
updateWanted(playerid);
if(Player[playerid][onDerby])
{
new Float:x, Float:y, Float:z, msg[256];
format(msg, sizeof(msg), "%s is falled from the map.", GetName(playerid));
GetPlayerPos(playerid, x, y, z);
if(z < -1.00)
{
foreach(new i : Player)
{
if(Player[i][onDerby])
Info(i, msg);
}
loadData(playerid);
Player[playerid][onDerby] = false;
}
}
if(Player[playerid][onFallout])
{
new Float:x, Float:y, Float:z, msg[512];
format(msg, sizeof(msg), "%s has dropped out of Fallout event.", GetName(playerid));
GetPlayerPos(playerid, x, y, z);
if(z < 2.00)
{
foreach(new i : Player)
{
if(Player[i][onFallout])
Info(i, msg);
}
loadData(playerid);
SetCameraBehindPlayer(playerid);
Player[playerid][onFallout] = false;
}
}
if(GetPVarInt(playerid,"YEAH") == 1)
{
new
Float:VPos[3],
Float:Rotation
;
GetVehiclePos(GetPlayerVehicleID(playerid), VPos[0], VPos[1], VPos[2]);
Rotation = PointAngle(playerid, VPos[0], VPos[1], GetPVarFloat(playerid, "Spongebob"), GetPVarFloat(playerid, "Mario"));
if(!Player[playerid][truckingMission])
AttachObjectToVehicle(GPSObject[playerid], GetPlayerVehicleID(playerid), 0.0, 0.0, 1.5, 0.0, 90.0, Rotation);
else
AttachObjectToVehicle(GPSObject[playerid], GetPlayerVehicleID(playerid), 0.0, 0.0, 3.5, 0.0, 90.0, Rotation);
}
return 1;
}
Thats mine OnPlayerUpdate.
Re: A textdraw -
Fairuz - 04.09.2016
I don't see you're update the XP textdraw on that code...
Re: A textdraw -
Frank901 - 04.09.2016
Thats the thing ,i can't find it where it its