Pawno Crashes After adding a cmd
#1

pawn Код:
new masked[MAX_PLAYERS];

CMD:mask(playerid, params[])
{
if(masked[playerid] == 0)
{
masked[playerid] = 1;
SendClientMessage(playerid, -1,"You are now masked.");
}
else
{
masked[playerid] = 0;
SendClientMessage(playerid, -1,"You are no longer masked.");
}
return 1;
}

OnPlayerText(playerid, text[])
{
if(masked[playerid] == 1)
{
new string[128];
format(string, sizeof(string),"A Stranger says: %s", text);
SendClientMessageToAll(-1, string);
}
else
{
new string[128], name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string),"%s says: %s", name, text);
SendClientMessageToAll(-1, string);
}
return 0;
}
I got this command for my friend but when i compile it my Pawno Crashes He is using NGRP Script Please Help Us
Reply


Messages In This Thread
Pawno Crashes After adding a cmd - by VIPAwesome - 09.03.2012, 05:26
Re: Pawno Crashes After adding a cmd - by eesh - 09.03.2012, 05:40
Re: Pawno Crashes After adding a cmd - by VIPAwesome - 09.03.2012, 05:40
Re: Pawno Crashes After adding a cmd - by Mark™ - 09.03.2012, 05:41
Re: Pawno Crashes After adding a cmd - by VIPAwesome - 09.03.2012, 05:45
Re: Pawno Crashes After adding a cmd - by Mark™ - 09.03.2012, 05:47
Re: Pawno Crashes After adding a cmd - by VIPAwesome - 09.03.2012, 05:49
Re: Pawno Crashes After adding a cmd - by Ballu Miaa - 09.03.2012, 06:11
Re: Pawno Crashes After adding a cmd - by VIPAwesome - 09.03.2012, 08:06

Forum Jump:


Users browsing this thread: 1 Guest(s)