sscanf warning: string buffer overflow
#4

Quote:
Originally Posted by NeXoR
Посмотреть сообщение
params[6] is a tip someone told me to do on the forums, didn't really work so I removed it, forgot to remove it from the armour parameter

Here is the option var
PHP код:
CMD:seteventinfo(playeridparams[])
{
    if(!
IsAllowed(playerid3)) return NoAuth(playerid);
    new 
option[32];
    if(
sscanf(params"s[10]"option))
    {
        
SendClientMessage(playeridCOLOR_WHITE"UASGE: /seteventinfo [option]");
        
SendClientMessage(playeridCOLOR_GREY"Available Options: Health || Armour || Weapon || Position || Text");
        return 
1;
    } 
Match the 'option' string size with all the parameters below. (ex. if you've assigned 10 cells, change the [32] to [10])
Reply


Messages In This Thread
sscanf warning: string buffer overflow - by NeXoR - 19.11.2016, 08:40
Re: sscanf warning: string buffer overflow - by ranme15 - 19.11.2016, 09:04
Re: sscanf warning: string buffer overflow - by NeXoR - 19.11.2016, 09:19
Re: sscanf warning: string buffer overflow - by ranme15 - 19.11.2016, 09:22
Re: sscanf warning: string buffer overflow - by NeXoR - 19.11.2016, 09:26
Re: sscanf warning: string buffer overflow - by SyS - 19.11.2016, 09:32
Re: sscanf warning: string buffer overflow - by Stinged - 19.11.2016, 10:14
Re: sscanf warning: string buffer overflow - by NeXoR - 19.11.2016, 19:29
Re: sscanf warning: string buffer overflow - by Dayrion - 20.11.2016, 00:00
Re: sscanf warning: string buffer overflow - by Stinged - 20.11.2016, 05:54

Forum Jump:


Users browsing this thread: 1 Guest(s)