13.02.2009, 17:53
Oh come on, I guess you see an erroring line without even knowing the line..
Take a good look at it, you'll see it should be:
Also, there has to be one more bracket, here's the correct code:
And I guess the rest of the OnPlayerCommandText comes after this. Or it'll still give errors :P
Код:
if(PlayerData[playerid][AdminLevel] >= 1) && text[0]=='#') {
Код:
if(PlayerData[playerid][AdminLevel] >= 1 && text[0]=='#') {
pawn Код:
public OnPlayerText(playerid, text[])
{
if(PlayerData[playerid][Muted] == 1)
{
return 0;
}
else
{
if(PlayerData[playerid][AdminLevel] >= 1 && text[0]=='#')
{
new tmp[256], string[256], idx, pname2[MAX_PLAYERS];
tmp = strtok(params, idx);
GetPlayerName(playerid,pname2,sizeof(pname2));
format(string, sizeof(string), "[ADMIN] %s: %s", pname2, params);
AdminMessage(COLOR_PINK, string);
}
return true;
}