Problem with private admin chat
#3

try
pawn Код:
if( text[ 0 ] == '!' )
also
pawn Код:
if( sscanf( text, "s[128]" ,Zinute ) ) return SendUsageText( playerid, " ! [Tavo Ћinutė] " );
can be simplified to
pawn Код:
// remove new Zinute[128];
if(strlen(text) < 2) return SendUsageText( playerid, " ! [Tavo Ћinutė] " );
//then you just use 'text' in the format instead of 'Zinute'
//if you don't want the '!' in the message, you will need to do more formatting
I also notice that the size of 'string' is only 20, you might want to make it at least 128
While you are checking things, look at changing return 1; to return 0; under OnPlayerText, that might make things work better.
Reply


Messages In This Thread
Private admin chat does not work - by RenisiL - 12.10.2010, 13:55
Re: Problem with private admin chat - by RenisiL - 13.10.2010, 03:43
Re: Problem with private admin chat - by Rachael - 13.10.2010, 03:45

Forum Jump:


Users browsing this thread: 1 Guest(s)