SA-MP Forums Archive
Crash - 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: Crash (/showthread.php?tid=446146)



Crash - DAVIDXP - 24.06.2013

Hi SA-MP.com,I'm working at new Project and i have a problem with crash, on this code:
pawn Код:
//others codes                
                new Text[ 24 ];
        if ( sscanf( inputtext, "s[ 24 ]", Text ) )
//others code
The problem is this:
When i'm enter o my server, i type the password, spawn skin, my game is crashing.
For more arguments that this linies give me crash, i have deleted the code, and i played 1 hour, without problems..
And when i'm registering with this code, in console i have:
pawn Код:
[07:42:08] sscanf warning: Invalid data length.
[07:42:08] sscanf warning: Invalid character in data length.
What is wrong guys?


Re: Crash - KingHual - 24.06.2013

Код:
if ( sscanf( inputtext, "s[ 24 ]", Text ) )
should be
Код:
if ( sscanf( inputtext, "s[24]", Text ) )



Re: Crash - DAVIDXP - 24.06.2013

Quote:
Originally Posted by king_hual
Посмотреть сообщение
Код:
if ( sscanf( inputtext, "s[ 24 ]", Text ) )
should be
Код:
if ( sscanf( inputtext, "s[24]", Text ) )
With:
pawn Код:
[07:42:08] sscanf warning: Invalid data length.
[07:42:08] sscanf warning: Invalid character in data length.
I solved, but i also have CRASH .. Can u help me with this?