SA-MP Forums Archive
sscanf to sscanf2 - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: sscanf to sscanf2 (/showthread.php?tid=244201)



sscanf to sscanf2 - FrankC - 26.03.2011

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]" );
}



Re: sscanf to sscanf2 - TomTroX - 26.03.2011

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



Re: sscanf to sscanf2 - Zh3r0 - 26.03.2011

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


Re: sscanf to sscanf2 - FrankC - 26.03.2011

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