cmd(cc, playerid, params[]) { if (!IsPlayerAdmin(playerid)) return 1; new red = random(256), green = random(256), blue = random(256), colour = 0xFFFFFFAA, string[128]; colour = (colour & 0x00FFFFFF) | (red << 24); colour = (colour & 0xFF00FFFF) | (green << 16); colour = (colour & 0xFFFF00FF) | (blue << ; for (new i; i < 80; ++i) SendClientMessageToAll(colour, " "); GetPlayerName(playerid, string, sizeof (string)); format(string, sizeof (string), "Admin %s cleared the chat!", string); SendClientMessageToAll(colour, string); return 1; } |
C:\Users\intel\Desktop\New Folder\Roleplay Base Script\gamemodes\lfgr.pwn(1686) : error 001: expected token: "-identifier-", but found "-integer value-" C:\Users\intel\Desktop\New Folder\Roleplay Base Script\gamemodes\lfgr.pwn(1687) : warning 217: loose indentation C:\Users\intel\Desktop\New Folder\Roleplay Base Script\gamemodes\lfgr.pwn(1687) : error 017: undefined symbol "colour" C:\Users\intel\Desktop\New Folder\Roleplay Base Script\gamemodes\lfgr.pwn(1687) : warning 215: expression has no effect C:\Users\intel\Desktop\New Folder\Roleplay Base Script\gamemodes\lfgr.pwn(1687 -- 168 : error 017: undefined symbol "string" C:\Users\intel\Desktop\New Folder\Roleplay Base Script\gamemodes\lfgr.pwn(168 : warning 215: expression has no effect C:\Users\intel\Desktop\New Folder\Roleplay Base Script\gamemodes\lfgr.pwn(168 : error 001: expected token: ";", but found "]" C:\Users\intel\Desktop\New Folder\Roleplay Base Script\gamemodes\lfgr.pwn(168 : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 5 Errors. |
cmd(cc, playerid, params[])
{
if(!IsPlayerAdmin(playerid)) return 1;
for(new i = 0; i < 50; i++) {SendClientMessageToAll(0x33FF33AA," ");}
new name[MAX_PLAYER_NAME],string[128];
GetPlayerName(playerid,name,MAX_PLAYER_NAME);
format(string,128,"Administrator %s has cleared the chat.",name);
SendClientMessageToAll(0xFFFFFFAA,string);
return 1;
}