[MySQL] Vehicle Load only for Player on Connect - 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: [MySQL] Vehicle Load only for Player on Connect (
/showthread.php?tid=305952)
[MySQL] Vehicle Load only for Player on Connect -
rospar - 24.12.2011
Hello....
I have a Vehicle System but the problem is
i would on onplayerconnect that his cars load..
I hope for your help.
This is my query:
Код:
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid,name,MAX_PLAYER_NAME);
for(new i; i<=MAX_CARS; i++)
{
format(VehInfo[i][Owner], 34, "%s", mysql_GetStringWithInt("vehicles", "owner", "id", i));
if(strmatch(VehInfo[i][besitzer], name))
{
// here will load the information from the db
Re: [MySQL] Vehicle Load only for Player on Connect -
BrandyPenguin - 24.12.2011
I suggest use OnPlayerspawn, but how is connected your users to vehicle?