28.12.2012, 11:08
When I compile my script with this code I get random errors. But when I comment it out, or delete it from the script, it compiles perfect. What am I doing wrong?
pawn Код:
CMD:maskon(playerid, params[])
{
if(!IsPlayerLoggedIn(playerid)) return SendClientMessage(playerid, COLOR_GREY, "You need to login first before using any command.");
if(!PlayerInfo[playerid][pMask]) return SendClientMessage(playerid, COLOR_GRAD1, "You don't have a mask");
if(PlayerInfo[playerid][pLevel] < 2) return SendClientMessage(playerid, COLOR_GRAD1, " You need to be level 2 or above it use it.");
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
ShowPlayerNameTagForPlayer(playerid, i, false);
}
}
PlayerInfo[playerid][pMaskuse] = 1;
SendClientMessage(playerid, COLOR_WHITE, "You are now wearing your mask.");
return 1;
)