29.12.2015, 23:18
Hello,all!Im running my Roleplay(RP) server.I created a filterscript when admins talk with OOC Chat(/b) i fixed all errors but only one left.I tried to fix it but this is what i got.
WTF I need to do??
Here is the normal code:
{ down on if(PlayerInfo[i][pAdmin] > 1,is placed wrong.WTF?
PHP код:
E:\PAL Offical Things\Project Albania Roleplay Server\gamemodes\palrp.pwn(15317) : error 029: invalid expression, assumed zero
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
Here is the normal code:
PHP код:
CMD:b(playerid, params[])
{
if(gPlayerLogged{playerid} == 0)
{
SendClientMessageEx(playerid, COLOR_GREY, "You're not logged in.");
return 1;
}
if(isnull(params)) return SendClientMessageEx(playerid, COLOR_WHITE, "USAGE: /b [local ooc chat]");
new string[128];
format(string, sizeof(string), "%s: (( %s ))", GetPlayerNameEx(playerid), params);
ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
foreach(Player, i)
{
if(PlayerInfo[i][pAdmin] > 1
{
new szAntiprivacy[128];
format(szAntiprivacy, sizeof(szAntiprivacy), "(BE) %s: %s", GetPlayerNameEx(playerid), params);
SendClientMessageEx(i, COLOR_GREEN, szAntiprivacy);
}
}
return 1;
}