Jump to content

Mariusik[]

Membru
  • Posts

    37
  • Joined

  • Last visited

Everything posted by Mariusik[]

  1. [23:09:55] Number of vehicle models: 0 [23:09:55] 0 - [23:09:55] Vehicles: 2 [23:10:46] [connection] 127.0.0.1:60840 requests connection cookie. [23:10:47] [connection] incoming connection: 127.0.0.1:60840 id: 0 [23:10:48] [join] Mariusik has joined the server (0:127.0.0.1)
  2. daca o pun sub prinft("Vehicles... apare 0 -, dar daca o pun sub Total_Veh_Created nu apare
  3. nu am sistem de clan. o sa incerc si revin
  4. la ongamemodeinit mysql_format(handle, gQuery, sizeof(gQuery), "SELECT * FROM `cars`"); mysql_tquery(handle, gQuery, "LoadPlayerCar", "");
  5. da se incarca dar am pus la LoadPlayerCar() createvehicle, bla bla si nu o creeaza..
  6. forward GetVehNumber(playerid); public GetVehNumber(playerid) { new nr = 0; for(new i = 1; i <= CarInfo[cID]; i++) if(strmatch(CarInfo[cOwner], GetName(playerid)) && !CarInfo[cType]) nr ++; return nr; }
  7. In consola imi arata ca masinile s-au incarcat bine din baza de date, dar cand dau /v zice ca nu am masini personale CMD:v(playerid, params[]) { new string[60],string1[512],string2[700]; if(GetVehNumber(playerid) == 0) { return SendClientMessage( playerid, COLOR_ERROR, "Tu nu ai vehicule personale!" ); } else { format(string,sizeof(string), "Garajul lui %s (%d/%d Sloturi)", GetName(playerid), GetVehNumber(playerid), PlayerData[playerid][pCar]); new header[64] = "Slot\tNume\tStatus"; for(new i = 1; i <= Total_Veh_Created; i++) { if(strmatch(CarInfo[i][cOwner], GetName(playerid))) { if(IsVehSpawned(i) == 1) format(string1,sizeof(string1), "%s\tAscuns\n",VehicleNames[CarInfo[i][cModel] -400]); else format(string1,sizeof(string1), "%d\t%s\tAscuns\n",VehicleNames[CarInfo[i][cModel] -400]); strcat(string2,string1); } } strins(string2, header, 0); ShowPlayerDialog(playerid,DIALOG_GARAGE,DIALOG_STYLE_TABLIST_HEADERS, string, string2, "Alege","Iesi"); } return 1; } function LoadPlayerCar() { new row_count; if(!cache_get_row_count(row_count)) { new veh = 0; for(new i = 0; i < row_count; i++) { veh++; cache_get_value_name_int(i, "ID", CarInfo[veh][cID]); cache_get_value_name_int(i, "Model", CarInfo[veh][cModel]); cache_get_value_name(i, "Owner", CarInfo[veh][cOwner]); cache_get_value_name_int(i, "Type", CarInfo[veh][cType]); cache_get_value_name_float(i, "PosX", CarInfo[veh][cPosX]); cache_get_value_name_float(i, "PosY", CarInfo[veh][cPosY]); cache_get_value_name_float(i, "PosZ", CarInfo[veh][cPosZ]); cache_get_value_name_float(i, "PosR", CarInfo[veh][cPosR]); cache_get_value_name_float(i, "Km", CarInfo[veh][cKm]); cache_get_value_name_int(i, "Lock", CarInfo[veh][cLock]); cache_get_value_name_int(i, "Price", CarInfo[veh][cPrice]); cache_get_value_name_int(i, "Insurance", CarInfo[veh][cInsurance]); cache_get_value_name_int(i, "ColorOne", CarInfo[veh][cColorOne]); cache_get_value_name_int(i, "ColorTwo", CarInfo[veh][cColorTwo]); cache_get_value_name_int(i, "Spawuned", CarInfo[veh][cSpawuned]); Total_Veh_Created = CarInfo[veh][cID]; } } for(new i = 1; i < MAX_VEHICLES; i++) OwnedVeh(i) = 0; printf("Vehicles: %d", row_count); return 1; }
  8. Mutat in categoria care trebiue ( )
×
×
  • Create New...

Important Information

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.