y does it double the client message?
#1

pawn Код:
if (health < 1000)
            {
                DisablePlayerRaceCheckpoint(playerid);
                DestroyDynamicRaceCP(dtcp[19]);
                DestroyVehicle(dscar);
                IsInDrivingTest[playerid] = 0;
                SendClientMessage(playerid, red,"This vehicle has too much damaged! Failed.");
                GameTextForPlayer(playerid, "~r~Failed!",6000,1);
                dvlicense[playerid] = 0;
                return 1;
            }

AND

pawn Код:
if(IsPlayerInRangeOfPoint(playerid, 7.0, 1019.9844,1371.1270,10.4467))
    {
        //DIALOG_STYLE_LIST
        PlayerPlaySound(playerid, 1054 , 0.0, 0.0, 10.0);
        if(checkpointid == dtcp[18])
        {
            DisablePlayerRaceCheckpoint(playerid);
            SendClientMessage(playerid,White,"Now head back to driving school!");
            DestroyDynamicRaceCP(dtcp[18]);
        }
        dtcp[19] = CreateDynamicRaceCP(1, 1140.0406,1370.9948,10.3881 , 0, 0, 0, 5.0, -1, -1, -1, 99999);
    }

please help when he enteres this cehckpoint this client messages i see it twice PLEASE HELP!
no errors no warning!
Reply
#2

resp0nse please!
Reply
#3

Checkpoints i think getting refresh - so it can be a problem. Or I do not understand you.
Reply
#4

look on play enter race cp
i did sendclient message( bal bla
so when i enter this race cp i find
2 send client message
with bal bla
Reply
#5

If i get you right you want to say that you see both RESULTS if you fail


pawn Код:
if(IsPlayerInRangeOfPoint(playerid, 7.0, 1019.9844,1371.1270,10.4467))
{
    PlayerPlaySound(playerid, 1054 , 0.0, 0.0, 10.0);
    if(checkpointid == dtcp[18])
    {
        if (health < 1000)
        {
            DisablePlayerRaceCheckpoint(playerid);
            DestroyDynamicRaceCP(dtcp[19]);
            DestroyVehicle(dscar);
            IsInDrivingTest[playerid] = 0;
            SendClientMessage(playerid, red,"This vehicle has too much damaged! Failed.");
            GameTextForPlayer(playerid, "~r~Failed!",6000,1);
            dvlicense[playerid] = 0;
            return 1;
        }
        else
        {
            DisablePlayerRaceCheckpoint(playerid);
            SendClientMessage(playerid,White,"Now head back to driving school!");
            DestroyDynamicRaceCP(dtcp[18]);
        }
    }
    dtcp[19] = CreateDynamicRaceCP(1, 1140.0406,1370.9948,10.3881 , 0, 0, 0, 5.0, -1, -1, -1, 99999);
}
And i think you should change vehicle HP from 1000 to about 900-950 " if (health < 1000)"
Reply
#6

nonononononono the Now head back to driving school is the cp before the last cp!
then when he enters the last cp it responses if he fails or passes when he pass it works when he fails it get me double client message with You have failed You have failed under each others Oo
Reply
#7

respond please!
Reply
#8

please help!
Reply
#9

1) Quit bumping this thread; your problem is not any more important than another persons.

2) You are most likely sending the message, or performing the function(s), inside of a loop.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)