need little help for race last checkpoint
#1

case 30:
{
DisablePlayerRaceCheckpoint(playerid);
AccInfo[playerid][races] +=1;
GameTextForPlayer(playerid,"30/30~n~Checkpoints",2000,6);
PlayerPlaySound(playerid,1097,0.0,0.0,0.0);
new pname[MAX_PLAYER_NAME], string[256 + MAX_PLAYER_NAME];
GetPlayerName(playerid, pname, sizeof(pname));
format(string, sizeof(string),"[NGP]: {80FFFF}%s {FF0000}Has Won The Race,In totals They Won {80FFFF}%d {FF0000}Races",pname,AccInfo[playerid][races]);
SendClientMessageToAll(LIGHTBLUE,string);
SetPlayerVirtualWorld(playerid, 0);
SetTimer("racesound",4000,false);
Racer[playerid] = 0;
racestart = 1;
}

when i finish last checkpoint i win but 2nd player is in race why
Reply
#2

Why is racestart = 1; ? Shouldn't it be racestart = 0; ?

Try it.
Reply
#3

Yeah I agreed with karan...It should be 0....

PHP код:
case 30:
{
DisablePlayerRaceCheckpoint(playerid);
AccInfo[playerid][races] == 0;
GameTextForPlayer(playerid,"30/30~n~Checkpoints",2000,6);
PlayerPlaySound(playerid,1097,0.0,0.0,0.0);
new 
pname[MAX_PLAYER_NAME], string[256 MAX_PLAYER_NAME];
GetPlayerName(playeridpnamesizeof(pname));
format(stringsizeof(string),"[NGP]: {80FFFF}%s {FF0000}Has Won The Race,In totals They Won {80FFFF}%d {FF0000}Races",pname,AccInfo[playerid][races]);
SendClientMessageToAll(LIGHTBLUE,string);
SetPlayerVirtualWorld(playerid0);
SetTimer("racesound",4000,false);
Racer[playerid] = 0;
racestart 1;

Reply
#4

ah i found it thanks when i set it to 0 it will be fixed
Reply
#5

Why not use race checkpoints instead? It's much easier than what it seems like you're trying to do
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)