sscanf to sscanf2
#1

Ive changed from sscanf to sscanf2. But do i have to change every single command or is there a easier way?
like this:
pawn Код:
// before NOT WORKING:
new Message[128], string[ 128 ];
if( sscanf( params, "z", Message) )
{
    SendClientMessage( playerid, WHITE, "SYNTAX: /do [action]" );
}
   
// after WORKING:  
new Message[128], string[ 128 ];
if( sscanf( params, "s[128]", Message) )
{
    SendClientMessage( playerid, WHITE, "SYNTAX: /do [action]" );
}
Reply
#2

pawn Код:
new Message[128];
if(sscanf(params, "s[128]", Message))
      return SendClientMessage( playerid, WHITE, "SYNTAX: /do [action]" );
Reply
#3

No there isn't, you must do them manually.
Reply
#4

Quote:
Originally Posted by Zh3r0
Посмотреть сообщение
No there isn't, you must do them manually.
Okay :/. Well thanks for your reply.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)