#1

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

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

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?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)