Help with sscanf and OnDialogResponse!
#2

You need add array for ids for example
under define
pawn Код:
new RacePlayer[MAX_PLAYERS] = {INVALID_PLAYER_ID, ...};
then in cmd race2
pawn Код:
RacePlayer[target] = playerid;
//dialog here
and if player Y accept

pawn Код:
new target = RacePlayer[playerid];
if(IsPlayerConnected(target) && !g_PlayerInRace[target]) // if player is still connected and is not in race
{
    // your code
}
if not, set
pawn Код:
RacePlayer[playerid] = INVALID_PLAYER_ID;
Reply


Messages In This Thread
Help with sscanf and OnDialogResponse! - by Dragonic - 05.08.2015, 23:06
Re: Help with sscanf and OnDialogResponse! - by Jefff - 06.08.2015, 00:11
Re: Help with sscanf and OnDialogResponse! - by Dragonic - 06.08.2015, 00:37
Re: Help with sscanf and OnDialogResponse! - by Dragonic - 06.08.2015, 09:07
Re: Help with sscanf and OnDialogResponse! - by MrSwift - 06.08.2015, 09:09
Re: Help with sscanf and OnDialogResponse! - by Jefff - 06.08.2015, 12:53

Forum Jump:


Users browsing this thread: 1 Guest(s)