# command without "/"
#5

one question , could i do this, it would be a little easier:

pawn Код:
//OnPlayerText
if(enableCmd[playerid] && IsPlayerInCheckpoint(playerid))
{
    if(!strcmp(text, "", true))
    {
        switch(text)
        {
            case 1: // player typed in 1
            case 2: // player typed in 2
            etc.....
        }
    }
}
would that work?

EDIT: also how can i stop the "1" from displaying? it says on chat "Ethan: 1" when i do it, can i stop that?
Reply


Messages In This Thread
# command without "/" - by StrickenKid - 30.03.2009, 22:51
Re: # command without "/" - by LarzI - 30.03.2009, 22:58
Re: # command without "/" - by StrickenKid - 30.03.2009, 23:09
Re: # command without "/" - by LarzI - 30.03.2009, 23:16
Re: # command without "/" - by StrickenKid - 30.03.2009, 23:19
Re: # command without "/" - by LarzI - 30.03.2009, 23:23
Re: # command without "/" - by StrickenKid - 30.03.2009, 23:28
Re: # command without "/" - by LarzI - 30.03.2009, 23:29
Re: # command without "/" - by StrickenKid - 30.03.2009, 23:30

Forum Jump:


Users browsing this thread: 1 Guest(s)