Change isnull to sccanf?
#1

Код:
if (strcmp("/s", cmdtext, true, 10) == 0)
{
    new i = strval( params );
>   if( isnull( params ) || !isnumeric( params ) || !(1 <= i <= 200 ))
>   {
>       return SendClientMessage( playerid, 0xFFFF00AA, "[USAGE] /s [1 - 200]" );
>   }
    GetPlayerPos( playerid, g_fPos[ playerid ][ i ][ 0 ], g_fPos[ playerid ][ i ][ 1 ], g_fPos[ playerid ][ i ][ 2 ] );
    GetPlayerFacingAngle( playerid, g_fPos[ playerid ][ i ][ 3 ] );
    GameTextForPlayer( playerid, "~g~Saved!", 1000, 4 );
    return 1;
}
Reply
#2

I'm sure you've heard this a billion times before, but try a different command process than OPCT & sscanf. Try ZCMD, one of the best. There's not much anyone could/would do if you're using OPCT, it'd take me more time to fix that command than it would for you to download ZCMD and use that.
Reply
#3

Quote:
Originally Posted by glbracer
Посмотреть сообщение
I'm sure you've heard this a billion times before, but try a different command process than OPCT & sscanf. Try ZCMD, one of the best. There's not much anyone could/would do if you're using OPCT, it'd take me more time to fix that command than it would for you to download ZCMD and use that.
All my commands are in strcmp and dcmd i cant use ZCMD.
When i include zcmd all my commands will stop working
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)