07.07.2013, 07:12
in that code i always get string buffer overflow example i wrote a this command /credit 0 name drich or /credit 0 location drich then the string overflow will appear but when i type /credit 0 name dric or /credit 0 location dric it does not appear and i think the problem is in this line
new name[32];
if(sscanf(params, "is[10]s[32]",i,option,name))
and this line
new loc[32];
if(sscanf(params, "is[10]s[32]",i,option,loc))
new name[32];
if(sscanf(params, "is[10]s[32]",i,option,name))
and this line
new loc[32];
if(sscanf(params, "is[10]s[32]",i,option,loc))