22.12.2010, 11:23
Hello everyone,
I wanted to inform you that there is a bug in SetVehicleNumberPlate
This is my script to the custom SetVehicleNumberPlate
When I go to try to put it on the plate is written % s help me know?
Sorry for my bad english im am italian
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