SA-MP Forums Archive
<< Message showing twice. >> - 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: << Message showing twice. >> (/showthread.php?tid=257771)



<< Message showing twice. >> - GangsTa_ - 27.05.2011

This happens at registering before the tutorial, the message 'Immigration' Then 'First question' are showing twice, I don't know why. Here's the code.

pawn Код:
if(PlayerInfo[playerid][pTut] == 0)
{
    gOoc[playerid] = 1; gNews[playerid] = 1; gFam[playerid] = 1;
    SetPlayerInterior(playerid, 14);
    PlayerInfo[playerid][pInt] = 14;
    SetPlayerPos(playerid, -1833.7283,17.8261,1061.1436);
    SetPlayerFacingAngle(playerid, 190.0868);
    SetPlayerCameraPos(playerid, -1833.6638,14.9237,1061.1436);
    SetPlayerCameraLookAt(playerid, -1833.7283,17.8261,1061.1436);
    TogglePlayerControllable(playerid, 0);
    RegistrationStep[playerid] = 1;
    SendClientMessage(playerid, COLOR_YELLOW, "{FF0000}Immigration: {FFFFFF}Welcome to Los Santos, you will be transfered to immigration.");
    SendClientMessage(playerid, COLOR_YELLOW, "{FF0000}First Question: {FFFFFF}Are you{FF0000}Male {FFFFFF}or {FF0000}Female? {FFFFFF}(Type in).");
    return 1;
}