help,y_stringhash..
#1

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 :/
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)