30.07.2017, 17:12
Код:
else if(!strcmp(tmp, "job", true, 3)) { if(!IsPlayerInAnyVehicle(playerid)) return SendClientError(playerid, "You are not in any vehicle!"); if(GetAdminLevel(playerid) < 10) return SendClientError(playerid, CANT_USE_CMD); if(!strlen(tmp2) || IsNumeric(tmp2) || strlen(tmp2) > MAX_PLAYER_NAME) return SCP(playerid, "job [name]"); dini_IntSet(CarFile(GetPlayerVehicleID(playerid)), "jobname", tmp2); SendClientInfo(playerid, "Success: The job has been updated to this vehicle."); myStrcpy(Vehicles[GetPlayerVehicleID(playerid)][jobname], tmp2); }