SA-MP Forums Archive
y does it double the client message? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: y does it double the client message? (/showthread.php?tid=221465)



y does it double the client message? - -•♥♠♦♣-•Arshavin•-♥♠♦♣•- - 05.02.2011

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!


Re: y does it double the client message? - -•♥♠♦♣-•Arshavin•-♥♠♦♣•- - 05.02.2011

resp0nse please!


Re: y does it double the client message? - Riddick94 - 05.02.2011

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


Re: y does it double the client message? - -•♥♠♦♣-•Arshavin•-♥♠♦♣•- - 05.02.2011

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


Re: y does it double the client message? - DRIFT_HUNTER - 05.02.2011

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)"


Re: y does it double the client message? - -•♥♠♦♣-•Arshavin•-♥♠♦♣•- - 05.02.2011

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


Re: y does it double the client message? - -•♥♠♦♣-•Arshavin•-♥♠♦♣•- - 05.02.2011

respond please!


Re: y does it double the client message? - -•♥♠♦♣-•Arshavin•-♥♠♦♣•- - 05.02.2011

please help!


Re: y does it double the client message? - Scenario - 05.02.2011

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.