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
#2

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

EDIT:
Reply
#4

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

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

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.
Reply
#7

But please help i'm begging you
Reply
#8

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!
Reply
#9

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
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)