09.12.2013, 19:01
Queria saber como colocar esse sistema de Mensagens Aleatуrias em textdraw:
Grato.
Grato.
new byDannielCooper[6][128] = {
"by DannielCooper",
"by DannielCooper",
"by DannielCooper",
"by DannielCooper",
"by DannielCooper",
"by DannielCooper"
};
forward byDannielCooper2();
public byDannielCooper2()
{
new dannielstring[28];
new random1 = random(sizeof(Mensagens));
new random2 = random(sizeof(Cores));
for(new i; i<MAX_PLAYERS; i++) {
format(dannielstring, sizeof(dannielstring), "%s", byDannielCooper[1]);
TextDrawCreate(DC[i]);
TextDrawAlignment(DC[i], 2);
TextDrawBackgroundColor(DC[i], 255);
TextDrawFont(DC[i], 1);
TextDrawLetterSize(DC[i], 0.810000, 2.799999);
TextDrawColor(DC[i], -1);
TextDrawSetOutline(DC[i], 1);
TextDrawSetProportional(DC[i], 1);
return 1;
}
C:\Users\Ricardo\Desktop\novo gm- backup\pawno\BRL.pwn(53115) : error 017: undefined symbol "Mensagens"
C:\Users\Ricardo\Desktop\novo gm- backup\pawno\BRL.pwn(53115) : error 029: invalid expression, assumed zero
C:\Users\Ricardo\Desktop\novo gm- backup\pawno\BRL.pwn(53115) : warning 215: expression has no effect
C:\Users\Ricardo\Desktop\novo gm- backup\pawno\BRL.pwn(53120) : error 017: undefined symbol "DC"
C:\Users\Ricardo\Desktop\novo gm- backup\pawno\BRL.pwn(53120) : warning 215: expression has no effect
C:\Users\Ricardo\Desktop\novo gm- backup\pawno\BRL.pwn(53120) : error 001: expected token: ";", but found "]"
C:\Users\Ricardo\Desktop\novo gm- backup\pawno\BRL.pwn(53120) : error 029: invalid expression, assumed zero
C:\Users\Ricardo\Desktop\novo gm- backup\pawno\BRL.pwn(53120) : fatal error 107: too many error messages on one line
pawn Код:
|
new Text:DC[MAX_PLAYERS];
new random1 = random(sizeof(Mensagens));
new random1 = random(sizeof(byDannielCooper));
C:\Users\Ricardo\Desktop\novo gm- backup\pawno\BRL.pwn(53121) : warning 213: tag mismatch
C:\Users\Ricardo\Desktop\novo gm- backup\pawno\BRL.pwn(53121) : warning 202: number of arguments does not match definition
C:\Users\Ricardo\Desktop\novo gm- backup\pawno\BRL.pwn(53121) : warning 202: number of arguments does not match definition
C:\Users\Ricardo\Desktop\novo gm- backup\pawno\BRL.pwn(53132) : error 030: compound statement not closed at the end of file (started at line 53115)