/try help ASAP
#1

Okay I made a /try command for my FS and it does not let me type a action, Example Luis_Foxx Tries to turn on the Computer but fails

Code;
pawn Code:
if(!strcmp("/try", cmdtext, true, 5))
    {
        new getplayer[128];
        new str[128];
        new str1[128];
        GetPlayerName(playerid, getplayer, sizeof(getplayer));
        format(str, sizeof(str), "%s Tries to: %s and succeeds", getplayer, str[0]);
        format(str1, sizeof(str1), "%s Tries to %s but fails", getplayer, str1[0]);
        switch(random(3))
        {
            case 1:
            {
                SendClientMessage(playerid, COLOR_PURPLE, str);
            }
            case 2:
            {
                SendClientMessage(playerid, COLOR_PURPLE, str1);
            }
        }
        return 1;
    }
Reply


Messages In This Thread
/try help ASAP - by Luis- - 19.10.2010, 20:57
Re: /try help ASAP - by Cameltoe - 19.10.2010, 20:59
Re: /try help ASAP - by iggy1 - 19.10.2010, 21:00
Respuesta: /try help ASAP - by The_Moddler - 19.10.2010, 21:06
Re: /try help ASAP - by Luis- - 19.10.2010, 21:09
Re: /try help ASAP - by iggy1 - 19.10.2010, 21:12
Re: /try help ASAP - by Cameltoe - 19.10.2010, 21:16
Respuesta: /try help ASAP - by The_Moddler - 19.10.2010, 21:37
Re: /try help ASAP - by Cameltoe - 19.10.2010, 21:50
Re: /try help ASAP - by iggy1 - 19.10.2010, 21:52
Re: /try help ASAP - by Cameltoe - 19.10.2010, 22:05
Respuesta: Re: /try help ASAP - by The_Moddler - 19.10.2010, 22:14

Forum Jump:


Users browsing this thread: 7 Guest(s)