Help - AutoMessage
#1

How do I make a random message | automatically with format?
I want to write the time the message ..
Here is my code:
pawn Код:
new RandomMessages[][] = {
   "{FFEE00}[Auto Message]: {00F7FF}/HelpMe цшйк тжшд ? дчщ",
   "{FFEE00}[Auto Message]: {00F7FF}/DM шецд мдймзн чцъ ? дчщ",
   "{FFEE00}[Auto Message]: {00F7FF}/TDM шецд мдймзн бчбецеъ ? дчщ",
   "{FFEE00}[Auto Message]: {00F7FF}/Zombie шецд мдймзн рвг жеобйн ? дчщ",
   "{FFEE00}[Auto Message]: {00F7FF}.щйоше тм зечй дщшъ ббчщд",
   "{FFEE00}[Auto Message]: {FF0000}! жлше, айп мдщъощ бц'йийн",
   "{FFEE00}[Auto Message]: {FF0000}! жлше, айп мрцм бавйн мойрйдн",
   "{FFEE00}[Auto Message]: {00F7FF}! дощк ощзч одрд",
   "{FFEE00}[Auto Message]: {00FF7B}*******.** {00F7FF}бчше бфешен щмре"
};
pawn Код:
forward Help();
public Help(){
new AutoM = random(sizeof(RandomMessages));
SendClientMessageToAll(-1,RandomMessages[AutoM]);
return 1;}
pawn Код:
SetTimer("Help",600010,1); // OnGameModeInit
I tried this:
pawn Код:
"{FFEE00}[Auto Message]: {00F7FF}/HelpMe цшйк тжшд ? дчщ",GetTimeEx,
Error:
pawn Код:
C:\Documents and Settings\User\Desktop\server\gamemodes\Dark.pwn(91) : error 017: undefined symbol "GetTimeEx"
C:\Documents and Settings\User\Desktop\server\gamemodes\Dark.pwn(100) : error 010: invalid function or declaration
C:\Documents and Settings\User\Desktop\server\gamemodes\Dark.pwn(920) : warning 203: symbol is never used: ""
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase




2 Errors.
Reply


Messages In This Thread
Help - AutoMessage - by benel1 - 07.10.2012, 08:42
Re: Help - AutoMessage - by doreto - 07.10.2012, 08:53
Re: Help - AutoMessage - by benel1 - 07.10.2012, 09:01
Re: Help - AutoMessage - by AndreT - 07.10.2012, 09:18
Re: Help - AutoMessage - by benel1 - 07.10.2012, 09:32

Forum Jump:


Users browsing this thread: 1 Guest(s)