3D Label attaching to vehicle
#21

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

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

bump...
Reply
#24

what doesnt work?
Reply
#25

i do /changecarlabel AED 111

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

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;
}
Reply
#27

Works, but..

/changecarlabel ADD132

Then..

Shows "ADD132"

if you do /changecarlabel ADD 382

then

Shows "ADD"
Reply
#28

bump.. :S
Reply
#29

bump.....
Reply
#30

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


Forum Jump:


Users browsing this thread: 3 Guest(s)