Warning 209
#1

Код:
warning 209: function "cmd_cmh" should return a value
Here's the scripts
pawn Код:
CMD:cmh(playerid)
{
    for(new msg; msg < 51; msg++)
    return 1;
}
Reply
#2

You're using a wrong syntax for ZCMD. replace your code with this (the correct syntax)
pawn Код:
CMD:cmh(playerid, params[])
{
    for(new msg; msg < 51; msg++)
    return 1;
}
Reply
#3

pawn Код:
CMD:cmh(playerid)
to
pawn Код:
CMD:cmh(playerid, params[])
And it'll work fine, be more carefull in the future, hope this helps.
Reply
#4

i changed the code, but "warning 209: function "cmd_cmh" should return a value"
Reply
#5

Код:
for(new msg; msg < 51; msg++)
Continue what you were doing ?

EDIT: If you want "msg" to be 51 then just use "msg = 51;" no need to loop.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)