I did a ds but I have a problem. Not set in 3 key players car1 2 id.
Код:
if(dialogid == 180 && PlayerInfo[playerid][pCar1] == 999)
{
PlayerInfo[playerid][pCar1] = idd;
format(string, sizeof(string), "UPDATE players SET Car='%d' WHERE id=%d", PlayerInfo[playerid][pCar1], PlayerInfo[playerid][pSQLID]);
mysql_query(string);
GivePlayerMoneyEx(playerid, - VehDSpret[playerid]);
new string1[128];
format(string1, sizeof(string1), "Felicitari! Ai achizitionat un vehicul! Valoare: %d | slot #1]!", vInfo[idd][vPrice]);
SendClientMessage(playerid, -1, string1);
SendClientMessage(playerid, -1, "Tasteaza /vinfo pentru a afla locatia noului tau vehicul!");
return 1;
}
else if(dialogid == 181)
{
PlayerInfo[playerid][pCar2] = idd;
format(string, sizeof(string), "UPDATE players SET Car2='%d' WHERE id=%d", PlayerInfo[playerid][pCar2], PlayerInfo[playerid][pSQLID]);
mysql_query(string);
GivePlayerMoneyEx(playerid, - VehDSpret[playerid]);
new string1[128];
format(string1, sizeof(string1), "Felicitari! Ai achizitionat o motocicleta! Valoare: %d | slot #2]!", vInfo[idd][vPrice]);
SendClientMessage(playerid, -1, string1);
SendClientMessage(playerid, -1, "Tasteaza /vinfo pentru a afla locatia noului tau vehicul!");
return 1;
}
else if(dialogid == 182)
{
PlayerInfo[playerid][pCar3] = idd;
format(string, sizeof(string), "UPDATE players SET Car3='%d' WHERE id=%d", PlayerInfo[playerid][pCar3], PlayerInfo[playerid][pSQLID]);
mysql_query(string);
GivePlayerMoneyEx(playerid, - VehDSpret[playerid]);
new string1[128];
format(string1, sizeof(string1), "Felicitari! Ai achizitionat o barca! Valoare: %d | slot #3]!", vInfo[idd][vPrice]);
SendClientMessage(playerid, -1, string1);
SendClientMessage(playerid, -1, "Tasteaza /vinfo pentru a afla locatia noului tau vehicul!");
return 1;
}
else if(dialogid == 183)
{
PlayerInfo[playerid][pCar3] = idd;
format(string, sizeof(string), "UPDATE players SET Car3='%d' WHERE id=%d", PlayerInfo[playerid][pCar3], PlayerInfo[playerid][pSQLID]);
mysql_query(string);
GivePlayerMoneyEx(playerid, - VehDSpret[playerid]);
new string1[128];
format(string1, sizeof(string1), "Felicitari! Ai achizitionat un avion/elicopter! Valoare: %d | slot #3]!", vInfo[idd][vPrice]);
SendClientMessage(playerid, -1, string1);
SendClientMessage(playerid, -1, "Tasteaza /vinfo pentru a afla locatia noului tau vehicul!");
return 1;
}
I don't know what you mean.
Well I'm going to go in the game to buy a vehicle. In the table of vehicles gives the car but I do not give the key to the car. I mean there is no WIP that I bought carx players car.
First.. can you speak english correct ? Let me get what are you trying to say. When you buy a vehicle you dont own the keys of the specified car ?
yes...
How it doesn't appear like isn't yours ? You can't lock,unlock it ? Or it doesn't on your /v info command ?
So. When I buy car aduauga car in vehicles but not table gives me the key ...