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


Messages In This Thread
Change isnull to sccanf? - by .Campionull. - 26.03.2013, 17:00
Re: Change isnull to sccanf? - by glbracer - 26.03.2013, 17:06
Re: Change isnull to sccanf? - by .Campionull. - 28.03.2013, 19:51

Forum Jump:


Users browsing this thread: 2 Guest(s)