Help | Command problem
#1

when i do the command that turns on the countdown public it supposed to send a message every second like :
PHP код:
"[%s] GMX in %d" 
%s = sendername
%d = cd
now , the sendername always catches the name of id 0 in the server and not the real sendername..
please help !!


PHP код:
forward CountDown(cd);
public 
CountDown(cd)
{
    new 
playerid;
    new 
sendername[MAX_PLAYER_NAME];
    
GetPlayerName(playeridsendernamesizeof(sendername));
    new 
cdt[32];
    
format(cdtsizeof(cdt), "~b~GMX ~g~in ~y~%d"cd);
    
GameTextForAll(cdt10003);
    
format(cdtsizeof(cdt), "[%s] GMX in %d"sendernamecd);
    
SendClientMessageToAll(COLOR_REDcdt);
    if(
cd 1)
    {
       
cd--;
       
GMXCD SetTimerEx("CountDown"10000"%d"cd);
    }
    else
    {
       
GameTextForAll("~r~GMX"10003);
       
SendClientMessageToAll(COLOR_BLUE"{FF0000}GMX");
       
SendClientMessageToAll(COLOR_BLUE"{1100FF}GMX");
       
SendClientMessageToAll(COLOR_BLUE"{E6FF00}GMX");
       
SendClientMessageToAll(COLOR_BLUE"{FF0000}G{1100FF}M{E6FF00}X");
       
SendClientMessageToAll(COLOR_BLUE"{E6FF00}G{FF0000}M{1100FF}X");
       
SendClientMessageToAll(COLOR_BLUE"{1100FF}G{E6FF00}M{FF0000}X");
       
SendClientMessageToAll(COLOR_BLUE"{E6FF00}GMX");
       
SendClientMessageToAll(COLOR_BLUE"{1100FF}GMX");
       
SendClientMessageToAll(COLOR_BLUE"{FF0000}GMX");
       
GameModeExit();
    }

Reply


Messages In This Thread
Help | Command problem - by arad55 - 13.10.2011, 21:16
Re: Help | Command problem - by SVRP - 13.10.2011, 21:38
Re: Help | Command problem - by arad55 - 13.10.2011, 21:45
Re: Help | Command problem - by AeroBlast - 13.10.2011, 22:12
Re: Help | Command problem - by arad55 - 13.10.2011, 23:12
Re: Help | Command problem - by SVRP - 13.10.2011, 23:28
Re: Help | Command problem - by arad55 - 14.10.2011, 01:28

Forum Jump:


Users browsing this thread: 1 Guest(s)