20.08.2015, 00:51
hey guys.
im trying to make an vehicle registration but i cant
here is my script. no errors but when i got at location and press /car register - it shows me like its an unknown command.
pls if u know a good register car system tell me i really need it
Thanks in advance
im trying to make an vehicle registration but i cant

here is my script. no errors but when i got at location and press /car register - it shows me like its an unknown command.
pls if u know a good register car system tell me i really need it

Thanks in advance
Код 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); }