[MySQL] Vehicle Load only for Player on Connect
#1

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
Reply
#2

I suggest use OnPlayerspawn, but how is connected your users to vehicle?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)