SA-MP Forums Archive
SendClientMessage Prob - 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: SendClientMessage Prob (/showthread.php?tid=73009)



SendClientMessage Prob - Amoken - 12.04.2009

Hello I got a prob when I send a message that looks like this
Код:
if(PlayerInfo[playerid][pJob] == 24)
{
if(minuite == 0)
{
SendClientMessage(playerid, COLOR_GREY, "SMS [BAR]: The truck with loads of drugs has just arrived.");
return 1;
}
}
the problem is that when I use any but any command the message repeats, any advice or idea?


Re: SendClientMessage Prob - MenaceX^ - 12.04.2009

What's minuite?
if(minuite == 0)


Re: SendClientMessage Prob - Rks25 - 12.04.2009

is this placed in a command, and does the command return 1;?


Re: SendClientMessage Prob - illay - 12.04.2009

pawn Код:
if(PlayerInfo[playerid][pJob] == 24 && minuite == 0){
        /* SendClientMessage */
        return SendClientMessage(playerid, COLOR_GREY, "SMS [BAR]: The truck with loads of drugs has just arrived.");
    }
}



Re: SendClientMessage Prob - illay - 12.04.2009

pawn Код:
new
    munute = 50;

minute --; //??
pawn Код:
new
    Timer[1];
   
Timer[0]=SetTimer("Cycle",Seconds /*10000= 10 sec. */,false);



Re: SendClientMessage Prob - Amoken - 12.04.2009

minuite is /time on the server its a variable that already exist......... Also there is another prob, when the min is 0 or 5 or 10 I get the client message by typing anything with a / infront