Change isnull to sccanf? - 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: Change isnull to sccanf? (
/showthread.php?tid=425732)
Change isnull to sccanf? -
.Campionull. - 26.03.2013
Код:
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;
}
Re: Change isnull to sccanf? -
glbracer - 26.03.2013
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.
Re: Change isnull to sccanf? -
.Campionull. - 28.03.2013
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