Argument type mismatch (argument 1)
#13

Quote:
Originally Posted by Threshold
View Post
You shouldn't have the return in "return SendClientMessage..."
Yes, you may. Return statements extend the purpose of assigning true or false values. Anything proceeding the return statement is omitted.

pawn Code:
Function1()
{
    new bool:test = true;
    if(test == true) print("1");
    print("0");
}
pawn Code:
Function2()
{
    new bool:test = true;
    if(test == true) return print("1");
    print("0");
    return true;
}
pawn Code:
main()
{
    Function1();
    print("------");
    Function2();
}
@§с†¶e®РµРe:

pawn Code:
if(isnull(params)) return SendClientMessage(playerid, 0xFF0000AA, "Usage: /radio <ur radio>");
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)