SA-MP Forums Archive
3D Label attaching to vehicle - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: 3D Label attaching to vehicle (/showthread.php?tid=186357)

Pages: 1 2


Re: 3D Label attaching to vehicle - Typhome - 30.10.2010

wtf i didnt nothing and compile succesfully without warnings & errors. Nice, thanks for helping.


Re: 3D Label attaching to vehicle - Typhome - 30.10.2010

Код:
if(strcmp(cmd,"/changecarlabel",true)==0)
	{
		if(IsPlayerAdmin(playerid))
		{
			tmp = strtok(cmdtext, idx);
			if(!strlen(tmp))
			{
				SendClientMessage(playerid, COLOR_GRAD2, "[asd] /changecarlabel <plate>");
				return 1;
			}
			new level;
			level = strval(tmp);
	    	for(new h = 56; h < sizeof(CarInfo); h++)
			{
				new string5[256];
				format(string5, sizeof string5, "Name: %s\nPlate: %s", CarInfo[h][cDescription], level);
				Update3DTextLabelText(CarLabels[vehicleid], 0xFFFFFFAA, string5);
				SendClientMessage(playerid,VALGE, "[asd] Plate changed!");
				OnPropUpdate();
			}
		}
	    return 1;
	}
Help :S


Re: 3D Label attaching to vehicle - Typhome - 30.10.2010

bump...


Re: 3D Label attaching to vehicle - WillyP - 30.10.2010

what doesnt work?


Re: 3D Label attaching to vehicle - Typhome - 30.10.2010

i do /changecarlabel AED 111

Then its counts at Name: (model name) when into "Sentinel" and Plate: (Putted into empty)


Re: 3D Label attaching to vehicle - MadeMan - 30.10.2010

pawn Код:
if(strcmp(cmd,"/changecarlabel",true)==0)
{
    if(IsPlayerAdmin(playerid))
    {
        tmp = strtok(cmdtext, idx);
        if(!strlen(tmp))
        {
            SendClientMessage(playerid, COLOR_GRAD2, "[asd] /changecarlabel <plate>");
            return 1;
        }
        new string5[128];
        format(string5, sizeof string5, "Name: %s\nPlate: %s", CarInfo[vehicleid][cDescription], tmp);
        Update3DTextLabelText(CarLabels[vehicleid], 0xFFFFFFAA, string5);
        SendClientMessage(playerid,VALGE, "[asd] Plate changed!");
        OnPropUpdate();
    }
    return 1;
}



Re: 3D Label attaching to vehicle - Typhome - 30.10.2010

Works, but..

/changecarlabel ADD132

Then..

Shows "ADD132"

if you do /changecarlabel ADD 382

then

Shows "ADD"


Re: 3D Label attaching to vehicle - Typhome - 31.10.2010

bump.. :S


Re: 3D Label attaching to vehicle - Typhome - 31.10.2010

bump.....


Re: 3D Label attaching to vehicle - Steven82 - 31.10.2010

Quote:
Originally Posted by Typhome
Посмотреть сообщение
Works, but..

/changecarlabel ADD132

Then..

Shows "ADD132"

if you do /changecarlabel ADD 382

then

Shows "ADD"
You can't put a space in it. Just use something like


pawn Код:
ADD-132
Now if you do that above ^ it won't just show ADD.