SA-MP Forums Archive
no set holder - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: no set holder (/showthread.php?tid=584312)



no set holder - Jimmi - 03.08.2015

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;
                  }



Re: no set holder - Jimmi - 04.08.2015

up


Re: no set holder - MarvinPWN - 04.08.2015

What exactly do you want?
I don't know what you mean.


Re: no set holder - Jimmi - 04.08.2015

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.


Re: no set holder - Jimmi - 05.08.2015

uppppp


Re: no set holder - SpikeSpigel - 05.08.2015

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 ?


Re: no set holder - Jimmi - 05.08.2015

yes...
I give the car but not appear like it's mine


Re: no set holder - SpikeSpigel - 05.08.2015

How it doesn't appear like isn't yours ? You can't lock,unlock it ? Or it doesn't on your /v info command ?


Re: no set holder - Jimmi - 08.08.2015

So. When I buy car aduauga car in vehicles but not table gives me the key ...


Re: no set holder - Jimmi - 09.08.2015

uppp