A textdraw
#1

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.
Reply
#2

Well I took this from CNRSF script..
It will add 8 '0',you can edit them as you want..

PHP код:
format(finalExperiencesizeof(finalExperience), "%08d"playerData[playerid][playerXP]); 
Reply
#3

I can see, can you tell where it supposed to be, not exactly just a file name.
Reply
#4

Paste the code when the XP textdraw is update on here,I will help you.
Reply
#5

Код:
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.
Reply
#6

I don't see you're update the XP textdraw on that code...
Reply
#7

Thats the thing ,i can't find it where it its
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)