SA-MP Forums Archive
help,y_stringhash.. - 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: help,y_stringhash.. (/showthread.php?tid=495177)



help,y_stringhash.. - OTACON - 16.02.2014

Hi everyone, as I can make it till osiguiente with y_stringhash?.

pawn Код:
COMMAND:command(playerid, params[]){

    if(!sscanf(params,"s[20]",params[0])){
        SendClientMessage(playerid,-1,"INFO: Use the command /command [options]");
        return true;
    }

    switch(YHash(params[0])){
        case _H<option1>:{} // /command [option1]
        case _H<option2>:{} // /command [option2]
        case _H<option3>:{} // /command [option3]
        case _H<option4>:{} // /command [option4]
       
        case _H<option5>:{} // /command [option5] [option1] [option2]
        //here in option 5 options I put 2 and up.
    }
   
    return true;
}
from already thank you very much.


sorry for my english :/