[Help] What is this error all about?!
#3

no, not that. here's the real deal:
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
dcmd(bcast, 5, cmdtext);
return 0;
}

dcmd_bcast(playerid, params[])
{
new text[40],
time,
font,
style;
if (sscanf(params, "siii", text, time, font, style))
return SendClientMessage(playerid, 0xFF0000AA, "Usage: \"/bcast <text> <time> <font> <style>\""), 1;
else
{
DisplayTextForAll(text[30], time, font, style);
return 1;
}
return 0;
}
a function must return a value... he just had 1 of '}' too much
Reply


Messages In This Thread
[Help] What is this error all about?! - by Ace_Menace - 30.06.2009, 10:04
Re: [Help] What is this error all about?! - by Grim_ - 30.06.2009, 10:09
Re: [Help] What is this error all about?! - by Ignas1337 - 30.06.2009, 10:22
Re: [Help] What is this error all about?! - by Grim_ - 30.06.2009, 10:25

Forum Jump:


Users browsing this thread: 2 Guest(s)