07.10.2012, 08:42
How do I make a random message | automatically with format?
I want to write the time the message ..
Here is my code:
I tried this:
Error:
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
pawn Код:
"{FFEE00}[Auto Message]: {00F7FF}/HelpMe цшйк тжшд ? дчщ",GetTimeEx,
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.