Sry for double post, I found a /n chat but when I put it in my gamemode it gives me an error something like this "error 017: undefined symbol "QUEOff" "
Here is the pawno code:
pawn Код:
if(strcmp(cmd, "/n", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if ((noque) && PlayerInfo[playerid][pAdmin] < 1)
{
SendClientMessage(playerid, COLOR_GRAD2, " The Questions channel has been disabled by an Admin !");
return 1;
}
if(PlayerInfo[playerid][pMuted] == 1)
{
SendClientMessage(playerid, TEAM_CYAN_COLOR, " You can't speak, you have been silenced !");
return 1;
}
GetPlayerName(playerid, sendername, sizeof(sendername));
new length = strlen(cmdtext);
while ((idx < length) && (cmdtext[idx] <= ' '))
{
idx++;
}
new offset = idx;
new result[64];
while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
{
result[idx - offset] = cmdtext[idx];
idx++;
}
result[idx - offset] = EOS;
if(!strlen(result))
{
SendClientMessage(playerid, COLOR_GRAD2, "USAGE: (/n) [Text]");
return 1;
}
format(string, sizeof(string), "(( Newbie %s: %s ))", sendername, result);
QUEOff(COLOR_RED,string);
printf("%s", string);
}
return 1;
}
if(strcmp(cmd, "/an", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pAdmin] >= 1) {
if(gPlayerLogged[playerid] == 0)
{
SendClientMessage(playerid, COLOR_GREY, " You havent logged in yet !");
return 1;
}
if ((noque) && PlayerInfo[playerid][pAdmin] < 1)
{
SendClientMessage(playerid, COLOR_GRAD2, " The Questions channel has been disabled by an Admin !");
return 1;
}
if(PlayerInfo[playerid][pMuted] == 1)
{
SendClientMessage(playerid, TEAM_CYAN_COLOR, " You can't speak, you have been silenced !");
return 1;
}
GetPlayerName(playerid, sendername, sizeof(sendername));
new length = strlen(cmdtext);
while ((idx < length) && (cmdtext[idx] <= ' '))
{
idx++;
}
new offset = idx;
new result[64];
while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
{
result[idx - offset] = cmdtext[idx];
idx++;
}
result[idx - offset] = EOS;
if(!strlen(result))
{
SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /an [Text]");
return 1;
}
format(string, sizeof(string), "(( Admin %s: %s ))", sendername, result);
QUEOff(COLOR_RED,string);
printf("%s", string);
}
return 1;
} else
{
SendClientMessage(playerid, COLOR_GRAD1, " you are not authorized to use that command!");
}
}
if(strcmp(cmd, "/non", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if (PlayerInfo[playerid][pAdmin] >= 1 && (!noque))
{
noque = 1;
BroadCast(COLOR_RED, " Questions chat channel disabled");
}
else if (PlayerInfo[playerid][pAdmin] >= 1 && (noque))
{
noque = 0;
BroadCast(COLOR_YELLOW, " Questions chat channel enabled");
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, " you are not authorized to use that command!");
}
}
return 1;
}
If anyone knows how can I rezolve that problem pls post it here...