Command doesn't work.
#10

Quote:
Originally Posted by ReD_HunTeR
Посмотреть сообщение
pawn Код:
else if(!strcmp(settings, "Radio", true))
    {
        if(!PlayerHasItem(playerid,"Statie Radio")) return SendClientMessage(playerid, -1, "You don't have radio");
        new str[128];
        if(pInfo[playerid][rChat] == 1)
        {
            pInfo[playerid][rChat] = 0;
            format(str, sizeof(str), "* %s uses fingers and clicks ON.", PlayerName(playerid));
            ProxDetector(30, playerid, str, COLOR_PURPLE);
        }
        else
        {
            pInfo[playerid][rChat] = 1;
            format(str, sizeof(str), "* %s uses fingers and cliks OFF.", PlayerName(playerid));
            ProxDetector(30, playerid, str, COLOR_PURPLE);
        }
        return 1;
    }
you dont have to use multi variables for string, one is enough, and it happend cuz u were storing value in str2, and sending str which is empty
Oh, yes, I didn't see that str is not str2. Thanks!
Reply


Messages In This Thread
Command doesn't work. - by Zeus666 - 24.10.2018, 11:24
Re: Command doesn't work. - by Ermanhaut - 24.10.2018, 11:48
Re: Command doesn't work. - by Infin1ty - 24.10.2018, 11:49
Re: Command doesn't work. - by Infin1ty - 24.10.2018, 11:52
Re: Command doesn't work. - by Ermanhaut - 24.10.2018, 11:56
Re: Command doesn't work. - by Zeus666 - 24.10.2018, 12:16
Re: Command doesn't work. - by Undef1ned - 24.10.2018, 15:48
Re: Command doesn't work. - by Zeus666 - 24.10.2018, 19:26
Re: Command doesn't work. - by ReD_HunTeR - 24.10.2018, 19:34
Re: Command doesn't work. - by Zeus666 - 24.10.2018, 19:36

Forum Jump:


Users browsing this thread: 6 Guest(s)