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



params - sam29 - 29.09.2015

hi,

I want that when there is "*" in the params that the commands is not execute. What can I use ?

thxs


AW: params - Kaliber - 29.09.2015

Simple if check:

PHP код:
if(strfind(params,"*") != -1)
{
    
//Here the * was found
    
return 1;




Re: params - PrO.GameR - 29.09.2015

use strfind
PHP код:
if(strfind(params,"*")!=-1
{
return 
1;

Edit: Kaliber beat me to it xD