hey guys.
here is my script. no errors but when i got at location and press /car register - it shows me like its an unknown command.
Код HTML:
else if(!strcmp(tmp,"register",true,10))
{
if(strcmp(PlayerName(playerid),Vehicles[GetPlayerVehicleID(playerid)][carowner],false))
return SendClientError(playerid,"You do not own this vehicle!");
if(IsPlayerInRangeOfPoint(playerid,5.0,1286.7982,-1349.8966,13.5704))
{
new registration = GenerateRegistration();
new string[128];
new vehicleid = GetPlayerVehicleID(playerid);
//Reg Formatting
format(string, sizeof(string), "SA %d", registration);
// Setting & Saving the number plate
SetVehicleNumberPlate(vehicleid, string);
format(Vehicles[playerid][vReg], 64, "%s", string);
dini_IntSet(CarFile(GetPlayerVehicleID(playerid)), "registred", 1);
// Confirmation message
format(string, sizeof(string), "Your license plate was set to {FF9900}%s{AFAFAF}.", string);
SendClientMessage(playerid, COLOR_GREY, string);
return 1;
}
return 1;
}
Код HTML:
if(Vehicles[i][vReg] == 1)
{
format(iStr,sizeof(iStr)," {d30404}SA%s",i);
SetVehicleNumberPlate(i,iStr);
}