No message?
#2

Is the player supposed to enter a url? If so, then sscanf should have given a warning for not specifying a length using "s" specifier but it's also wrong because input is integer and not a string as it should have.
sscanf is not needed though:
PHP код:
CMD:setjingle(playeridparams[])
{
    if(!
IsRadioMember(playerid)) return SCM(playeridCOLOR_GREY"You are not a member of RSF.");
    if(
isnull(params)) return SendUsageMessage(playerid"/setjingle [jingle stream url] - Abusing will get you punished!");
    
    
//strcat((jingle[0] = EOS, jingle), params, sizeof (jingle));
    
PlayAudioStreamForPlayer(playeridparams);
    
SendClientMessage(playeridCOLOR_UPDATED"The jingle URL has successfully been updated!");
    return 
1;

if "jingle" is a global string and you need to copy the url a player input to it, uncomment the line. Also "newsjingle" is not used for anything in the command.
Reply


Messages In This Thread
No message? - by JaydenJason - 14.05.2015, 16:01
Re: No message? - by Konstantinos - 14.05.2015, 16:06
Re: No message? - by AdHaM612 - 14.05.2015, 16:07
Re: No message? - by Sellize - 14.05.2015, 16:07
Re: No message? - by Pottus - 14.05.2015, 16:32
Re: No message? - by JaydenJason - 14.05.2015, 16:43
Re: No message? - by JaydenJason - 15.05.2015, 10:29
Re: No message? - by rappy93 - 15.05.2015, 10:50
Re: No message? - by JaydenJason - 15.05.2015, 11:33
Re: No message? - by JaydenJason - 15.05.2015, 14:10

Forum Jump:


Users browsing this thread: 1 Guest(s)