/report cmd make crash the server
#6

Not sure if this will cause a crash but I've found a problem in the first few lines:

PHP код:
new Target;
    new 
Reason[128];
    new 
string2[250];
    if(!
sscanf(params"u[24]s[250]",TargetReason)) //You have "s" set to a length of 250 but Reason is only 128. So you need to change s[250 to s[128]. Also, "u" does not need a length. Just do "us[128]" 
Also, string2 seems to never be used unless I'm just missing it and all your strings are pretty big. 128 should be a perfect length for all of them since that is the max the SA:MP client can show in one line.
Reply


Messages In This Thread
/report cmd make crash the server - by Face9000 - 08.04.2013, 17:51
Re: /report cmd make crash the server - by ReVo_ - 08.04.2013, 17:56
Re: /report cmd make crash the server - by Face9000 - 08.04.2013, 18:21
Re: /report cmd make crash the server - by Scenario - 08.04.2013, 18:28
Re: /report cmd make crash the server - by Gomuk - 27.04.2013, 01:10
Re: /report cmd make crash the server - by Chenko - 27.04.2013, 15:55

Forum Jump:


Users browsing this thread: 3 Guest(s)