Problem with radio
#1

Hello, I wanna to do radio system for cops, there's no have any errors.
that's my code:
PHP код:
if(strcmp("/r",cmdtext,true) == 0)
{
new 
text[256];
if(
dini_Int(FFile(playerid),"Cop") == 0) return SendClientMessage(playerid,0xFFFFFFFF,"{0b84ff}Error:{ffffff} Sorry, but the command does not exist. {0b84ff}/help {ffffff}or {0b84ff}/helpme{ffffff} if needed.");
{
    for(new 
0MAX_PLAYERSi++)
    {
        if(
IsPlayerConnected(i))
        {
if(
dini_Int(FFile(i),"Cop") == 1){
            
text strrest(cmdtextidx);
            if(!
strlen(text)) return SendClientMessage(playerid0xFFFFFF00"USAGE: /r [TEXT]");
                
format(string256"{ffec8b}** [Police] Officer %s: %s **"GetName(playerid), text);
                return 
SendClientMessage(i0x006BFFFFstring);
    }
}
}
}

but in the server it's doesn't work what may I do?
Reply


Messages In This Thread
Problem with radio - by bnnb8 - 09.10.2014, 07:46
Re: Problem with radio - by Rudy_ - 09.10.2014, 07:59
Re: Problem with radio - by bnnb8 - 09.10.2014, 11:06
Re: Problem with radio - by bnnb8 - 13.10.2014, 09:06
Re: Problem with radio - by bnnb8 - 07.11.2014, 14:16
Re: Problem with radio - by bnnb8 - 13.11.2014, 09:03
Re: Problem with radio - by Banana_Ghost - 13.11.2014, 09:10

Forum Jump:


Users browsing this thread: 2 Guest(s)