22.11.2013, 16:50
I'm creating a mute command, it works great, but the only problem, is that i can't get it to "work" fully(OnPlayerText problem)
I keep getting this error, and this warning:
Here's the OnPlayerText script ->
I tried removing the "if(PlayerInfo[playerid][pMuted] == 0)", but they i still couldn't use the "return 0;"
I keep getting this error, and this warning:
Код:
test.pwn(1010) : error 029: invalid expression, assumed zero test.pwn(1016) : warning 225: unreachable code
pawn Код:
//I have other scripts here..
if(PlayerInfo[playerid][pMuted] == 0)
format(string, sizeof(string), "[%d]%s: %s", playerid, name, text);
SendClientMessageToAll(-1, string);
else //Line 1010
{
if(PlayerInfo[playerid][pMuted] == 1)
SendClientMessage(playerid, COLOR_RED, "[MUTE] - You can't talk while you're muted!");
return 0;
}
return 1; //Line 1016
}