24.10.2012, 11:13
PHP код:
public RandomMessage()
{
TextDrawSetString(Text1, RandomMessages[random(sizeof(RandomMessages))]); // We need this to make the timer working
return 1;
}
Код:
E:\ALL SETUPS\SAMP NEEDs\samp03e_svr_R2_win32\gamemodes\ImpulsiveX.pwn(171) : error 017: undefined symbol "RandomMessages" E:\ALL SETUPS\SAMP NEEDs\samp03e_svr_R2_win32\gamemodes\ImpulsiveX.pwn(171) : error 017: undefined symbol "RandomMessages" E:\ALL SETUPS\SAMP NEEDs\samp03e_svr_R2_win32\gamemodes\ImpulsiveX.pwn(171) : error 029: invalid expression, assumed zero E:\ALL SETUPS\SAMP NEEDs\samp03e_svr_R2_win32\gamemodes\ImpulsiveX.pwn(171) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors.
this is my random message in gamemodeinit
PHP код:
new Text:Text1;
forward RandomMessage();
public RandomMessage()
{
TextDrawSetString(Text1, RandomMessages[random(sizeof(RandomMessages))]); // We need this to make the timer working
return 1;
}
new RandomMessages[][] =
{
"",
"~y~Community Name: ~w~Your Text ~r~here.",
"~y~Community Name: ~w~Your Text ~y~here.",
"~y~Community Name: ~w~Your Text ~b~here."
};
//Ongamemodeinit
SetTimer("RandomMessage",5000,1);
///My textdraw for randommessage
Text1 = TextDrawCreate(0,412.4," ");
TextDrawFont(Text1 , 2);
TextDrawLetterSize(Text1 , 0.3, 0.9);
TextDrawColor(Text1, 0xFFFFFFFF);
TextDrawSetOutline(Text1 , 1);
TextDrawSetProportional(Text1 , 1);
TextDrawSetShadow(Text1, 3);
TextDrawBackgroundColor(Text1,0x000000FF);