- 0
Problema /v pe MySQL R40
-
Similar Content
-
- 2 replies
- 249 views
-
- 2 answers
- 818 views
-
Problema turf
By Soryn.,
- 3 answers
- 443 views
-
- 0 replies
- 184 views
-
- 2 replies
- 349 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; }
Link to comment
Share on other sites
24 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.