- 0
Problema /v pe MySQL R40
-
Similar Content
-
- 1 answer
- 372 views
-
- 8 answers
- 810 views
-
Problema billboards (la expirarea billboard-ului nu seteaza variabila Billboard 0 jucatorului offline)
By cstef4n,
- 2 answers
- 556 views
-
- 1 answer
- 981 views
-
Gamemode Hardgaming Versiunea a 4-a (no-mysql) 1 2
By n0dEv,
- luatil cai kald.
- hardgaming v4
- (and 90 more)
- 42 replies
- 12.044 views
-
-
Recently Browsing 0 members
- No registered users viewing this page.

Question
Mariusik[]
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; }24 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