Vehicle tuning not saving[MySQL]
#5

Quote:
Originally Posted by Unte99
Посмотреть сообщение
Код:
// This function returns "true" is the given player is the leader of the convoy
stock Convoy_IsLeader(playerid, Convoy)
{
	printf("APlayerData[playerid][InConvoy]=%i",APlayerData[playerid][InConvoy]);
	printf("AConvoys[Convoy][Members][0]=%i",AConvoys[Convoy][Members][0]);
    // Check if the player is part of a convoy
    if ((APlayerData[playerid][InConvoy] == true) && (AConvoys[Convoy][Members][0] = playerid))
        return true; // Player is in a convoy AND he's the leader of it
    else
        return false; // Player is a member of the convoy (or not in the same convoy)
}
Check what the server log prints.
PHP код:
[22:29:07APlayerData[playerid][InConvoy]=1
[22:29:07AConvoys[Convoy][Members][0]=
Its corect, playerid = 0 , and InConvoy = true
Nothing wrong
Reply


Messages In This Thread
Vehicle tuning not saving[MySQL] - by Banditul18 - 21.02.2017, 17:05
Re: Vehicle tuning not saving[MySQL] - by Mencent - 21.02.2017, 17:55
Re: Vehicle tuning not saving[MySQL] - by Banditul18 - 21.02.2017, 18:54
Re: Vehicle tuning not saving[MySQL] - by Unte99 - 21.02.2017, 19:13
Re: Vehicle tuning not saving[MySQL] - by Banditul18 - 21.02.2017, 19:37
Re: Vehicle tuning not saving[MySQL] - by Vince - 21.02.2017, 20:17
Re: Vehicle tuning not saving[MySQL] - by PowerPC603 - 21.02.2017, 20:44
Re: Vehicle tuning not saving[MySQL] - by Banditul18 - 21.02.2017, 21:30
Re: Vehicle tuning not saving[MySQL] - by PowerPC603 - 21.02.2017, 22:00
Respuesta: Vehicle tuning not saving[MySQL] - by ErickV - 21.02.2017, 22:35

Forum Jump:


Users browsing this thread: 1 Guest(s)