- 0
O mica problema... (bug)
-
Similar Content
-
Recently Browsing 0 members
- No registered users viewing this page.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.
Question
Shad0wdpbgd
Salut, am aceasta problema banala si nu stiu cum sa o rezolv. Daca poate sa ma ajute cineva, multumesc.
Problema: cand intru intr-o masina care nu este personala tot imi arata "this infernus (id: blabla) is owned by dasd".
COD: (comanda /spawncar)
YCMD:spawncar(playerid, params[], help)
{
if(!Iter_Contains(ServerAdmins, playerid))
return sendPlayerError(playerid, "Nu ai acces la aceasta comanda!");
if(Iter_Count(AdminVehicles) >= MAX_ADMIN_VEHICLES)
return sendPlayerError(playerid, "Nu poti crea un vehicul deoarece s-a atins numarul maxim de vehicule (%d).", MAX_ADMIN_VEHICLES);
new modelid, firstcolor, secondcolor;
if(sscanf(params, "ddd", modelid, firstcolor, secondcolor))
return sendPlayerSyntax(playerid, "/spawncar <model id> <first color> <second color>");
if(PlayerInfo[playerid][pDrivingLicense] == 0)
return sendPlayerError(playerid, "Nu ai licenta de condus!");
if(modelid < 400 || modelid > 611)
return sendPlayerError(playerid, "Invalid model id! (400 - 611)");
if(firstcolor < 0 || firstcolor > 255)
return sendPlayerError(playerid, "Invalid first color (0 - 255).");
if(secondcolor < 0 || secondcolor > 255)
return sendPlayerError(playerid, "Invalid second color (0 - 255).");
new Float:x, Float:y, Float:z, Float:angle;
GetPlayerPos(playerid, x, y, z);
GetPlayerFacingAngle(playerid, angle);
new carid = CreateVehicle(modelid, x, y, z, angle, firstcolor, secondcolor, -1);
SetVehicleNumberPlate(carid, "AdmCar");
PutPlayerInVehicle(playerid, carid, 0);
Iter_Add(AdminVehicles, carid);
vehicle_fuel[carid] = 100.0;
//problema vehicle_personal[carid] = -1;
sendAdmin(COLOR_DARKRED, "Warning: Admin %s spawned a %s (ID: %d).", getName(playerid), getVehicleName(modelid), carid);
return true;
}
si Examen
vehicle_personal[PlayerInfo[playerid][pExamenVehicle]] = -1;
// vehicle_personal[MAX_VEHICLES]
15 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now