if(dialogid == 8 && response)
{
if(strlen(inputtext) == 0) return SendClientMessage(playerid,COLOR_GREY,"|> You must enter a license plate!");
if(strlen(inputtext) > 5) return ShowPlayerDialog(playerid,8,DIALOG_STYLE_INPUT,"Enter the license plate!","Please enter your desired plate (5 characters max):", "Ok","Back");
new carid = GetPlayerVehicleID(playerid);
new string[16], string2[32];
SetVehicleNumberPlate(carid, "%s", inputtext);
format(string2, sizeof(string2), "|> New license plate: %s",inputtext);
SendClientMessage(playerid,COLOR_YELLOW2,string2);
SafeGivePlayerMoney(playerid,-100000);
SBizzInfo[13][sbTill] += 100000;
SBizzInfo[13][sbProducts]--;
OnPropUpdate();
}
|
Hello everyone,
I wanted to inform you that there is a bug in SetVehicleNumberPlate This is my script to the custom SetVehicleNumberPlate Код:
if(dialogid == 8 && response)
{
if(strlen(inputtext) == 0) return SendClientMessage(playerid,COLOR_GREY,"|> You must enter a license plate!");
if(strlen(inputtext) > 5) return ShowPlayerDialog(playerid,8,DIALOG_STYLE_INPUT,"Enter the license plate!","Please enter your desired plate (5 characters max):", "Ok","Back");
new carid = GetPlayerVehicleID(playerid);
new string[16], string2[32];
SetVehicleNumberPlate(carid, "%s", inputtext);
format(string2, sizeof(string2), "|> New license plate: %s",inputtext);
SendClientMessage(playerid,COLOR_YELLOW2,string2);
SafeGivePlayerMoney(playerid,-100000);
SBizzInfo[13][sbTill] += 100000;
SBizzInfo[13][sbProducts]--;
OnPropUpdate();
}
Sorry for my bad english im am italian |
SetVehicleNumberPlate(carid, inputtext);
|
Err, you're doin' it wrong:
Код:
SetVehicleNumberPlate(carid, inputtext); How did you even compiled this? |
SetVehicleNumberPlate(carid,"SF %d%d%d",rand1,rand2,rand3);
|
And for this?
Код:
SetVehicleNumberPlate(carid,"SF %d%d%d",rand1,rand2,rand3); ![]() |
format(string,sizeof(string),"AB %% %s",something);
AB % (string in the variable "something")