[HELP] Ask && Report
#4

Have you actually replaced your messages with "bla bla," if so then you should let us see the original code as you could have messed up within your format(). The other messages don't particularly matter, but just in-case you've tried to add an %/placeholder where they shouldn't be...

For the love of god, you don't need 256-cell strings.

and

pawn Код:
new question;
    if(sscanf(params, "z", question))
is probably the source of your crash, change your code to:

pawn Код:
new question[128];
    if(sscanf(params, "z", question)) // question needs to be a string, not an integer
and for your other command...

pawn Код:
dcmd_report(playerid, params[])
{
    new targetid, reason;

    if(sscanf(params, "uz", targetid, reason)) return SendClientMessage(playerid, COLOR_USAGE, "bla bla");
Fix for it...

pawn Код:
dcmd_report(playerid, params[])
{
    new targetid, reason[128];

    if(sscanf(params, "uz", targetid, reason)) return SendClientMessage(playerid, COLOR_USAGE, "bla bla");
Reply


Messages In This Thread
[HELP] Ask && Report - by Larsey123IsMe - 28.01.2011, 02:02
Re: [HELP] Ask && Report - by Leon_Rahil! - 28.01.2011, 02:12
Re: [HELP] Ask && Report - by Larsey123IsMe - 28.01.2011, 02:15
Re: [HELP] Ask && Report - by Calgon - 28.01.2011, 02:41
Re: [HELP] Ask && Report - by Larsey123IsMe - 28.01.2011, 02:49
Re: [HELP] Ask && Report - by Calgon - 28.01.2011, 02:54
Re: [HELP] Ask && Report - by Krx17 - 28.01.2011, 02:54
Re: [HELP] Ask && Report - by Larsey123IsMe - 28.01.2011, 02:55

Forum Jump:


Users browsing this thread: 3 Guest(s)