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]; if (PlayerInfo[playerid][pMask] == 0) { format(string, sizeof(string), "%s: (( %s ))", GetPlayerNameEx(playerid), params); ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5); } else if (PlayerInfo[playerid][pMask] == 1) { format(string, sizeof(string), "Stranger: (( %s ))", params); ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5); } foreach(Player, i) { if(PlayerInfo[i][pAdmin] > 1 && BigEar[i] == 2) { new szAntiprivacy[128]; format(szAntiprivacy, sizeof(szAntiprivacy), "(BE) %s: %s", GetPlayerNameEx(playerid), params); SendClientMessageEx(i, COLOR_FADE1, szAntiprivacy); } } return 1; }
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];
if (PlayerInfo[playerid][pMask] == 0) {
format(string, sizeof(string), "%s: (( %s ))", GetPlayerNameEx(playerid), params);
ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
}
else if(PlayerInfo[i][pAdmin] > 1) {
format(string, sizeof(string), "{336633}%s: (( %s ))", GetPlayerNameEx(playerid), params);
ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
}
else if (PlayerInfo[playerid][pMask] == 1) {
format(string, sizeof(string), "Stranger: (( %s ))", params);
ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
}
foreach(Player, i)
{
if(PlayerInfo[i][pAdmin] > 1 && BigEar[i] == 2)
{
new szAntiprivacy[128];
format(szAntiprivacy, sizeof(szAntiprivacy), "(BE) %s: %s", GetPlayerNameEx(playerid), params);
SendClientMessageEx(i, COLOR_FADE1, szAntiprivacy);
}
}
return 1;
}
PHP Code:
|
error 017: undefined symbol "i"
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];
if (PlayerInfo[playerid][pMask] == 0 && PlayerInfo[playerid][pAdmin] < 1) {
format(string, sizeof(string), "%s: (( %s ))", GetPlayerNameEx(playerid), params);
ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
}
else if(PlayerInfo[playerid][pAdmin] > 1) {
format(string, sizeof(string), "{336633}%s: (( %s ))", GetPlayerNameEx(playerid), params);
ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
}
else if (PlayerInfo[playerid][pMask] == 1) {
format(string, sizeof(string), "Stranger: (( %s ))", params);
ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
}
foreach(Player, i)
{
if(PlayerInfo[i][pAdmin] > 1 && BigEar[i] == 2)
{
new szAntiprivacy[128];
format(szAntiprivacy, sizeof(szAntiprivacy), "(BE) %s: %s", GetPlayerNameEx(playerid), params);
SendClientMessageEx(i, COLOR_FADE1, szAntiprivacy);
}
}
return 1;
}
CMD:b(playerid, params[])
{
if(isnull(params))
return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /b [text]");
new
string[128];
if(PlayerInfo[playerid][pAdminDuty])
{
format(string, sizeof(string), "{336633}%s: (( %s ))", GetPlayerNameEx(playerid), params);
ProxDetector(20.0, playerid, string,COLOR_WHITE,COLOR_WHITE,COLOR_WHITE,COLOR_WHITE,COLOR_WHITE);
}
else
{
format(string, sizeof(string), "%s: (( %s ))", GetPlayerNameEx(playerid), params);
ProxDetector(20.0, playerid, string,COLOR_WHITE,COLOR_WHITE,COLOR_WHITE,COLOR_WHITE,COLOR_WHITE);
}
foreach(new i : Player)
{
if(PlayerInfo[i][pAdmin] >= 1 && BigEar[i] == 2)
{
format(string, sizeof(string), "(BE) %s: %s", GetPlayerNameEx(playerid), params);
SendClientMessage(i, COLOR_FADE1, string);
}
}
return true;
}
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];
if (PlayerInfo[playerid][pMask] == 0 && PlayerInfo[playerid][pAdmin] < 1) {
format(string, sizeof(string), "%s: (( %s ))", GetPlayerNameEx(playerid), params);
ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
}
else if(PlayerInfo[playerid][pAdmin] > 1) {
format(string, sizeof(string), "{336633}%s:{dadada} (( %s ))", GetPlayerNameEx(playerid), params);
ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
}
else if (PlayerInfo[playerid][pMask] == 1) {
format(string, sizeof(string), "Stranger: (( %s ))", params);
ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
}
foreach(Player, i)
{
if(PlayerInfo[i][pAdmin] > 1 && BigEar[i] == 2)
{
new szAntiprivacy[128];
format(szAntiprivacy, sizeof(szAntiprivacy), "(BE) %s: %s", GetPlayerNameEx(playerid), params);
SendClientMessageEx(i, COLOR_FADE1, szAntiprivacy);
}
}
return 1;
}
error 031: Undefined symbol pAdminDuty
error 029: invalid expression, assumed zero
if(PlayerInfo[playerid][pAdminDuty])
Yes, rename it to the variable your script uses. If you don't have one for admin duty then just set it to pAdmin or whatever.
|