SA-MP Forums Archive
Pawno Crashes After adding a cmd - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Pawno Crashes After adding a cmd (/showthread.php?tid=324329)



Pawno Crashes After adding a cmd - VIPAwesome - 09.03.2012

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


Re: Pawno Crashes After adding a cmd - eesh - 09.03.2012

I dont see anything wrong with the code. BTW do you have a "public" beside OnPlayerText?


Re: Pawno Crashes After adding a cmd - VIPAwesome - 09.03.2012

EDIT:


Re: Pawno Crashes After adding a cmd - Mark™ - 09.03.2012

Nobody's going to help you since you're using ng-rp leaked script.


Re: Pawno Crashes After adding a cmd - VIPAwesome - 09.03.2012

I'm not using it my friend using it his SA-MP forum name is Paul_Saint


Re: Pawno Crashes After adding a cmd - Mark™ - 09.03.2012

Quote:
Originally Posted by VIPAwesome
Посмотреть сообщение
I'm not using it my friend using it his SA-MP forum name is Paul_Saint
Who cares ? The cmd you provided here is from that leaked script.


Re: Pawno Crashes After adding a cmd - VIPAwesome - 09.03.2012

But please help i'm begging you


Re: Pawno Crashes After adding a cmd - Ballu Miaa - 09.03.2012

Dont beg brother! try using the command only in the game mode and not the part under OnPlayerText. Dont use that and then compile the script. Hope it helps. Peace!


Re: Pawno Crashes After adding a cmd - VIPAwesome - 09.03.2012

Quote:
Originally Posted by Ballu Miaa
Посмотреть сообщение
Dont beg brother! try using the command only in the game mode and not the part under OnPlayerText. Dont use that and then compile the script. Hope it helps. Peace!
Thank You Brother