invalid function or declaration NEED HELP
#3

For the warning, it tells you that you should return a value to "OnPlayerCommandText" e.g: false. For the error, you forget to open a block for the "OnPlayerCommandText" callback.

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/city", cmdtext, true, 10) == 0)
    {
        SetPlayerPos(playerid, -2912.19921875,-985,11);
        GameTextForPlayer(playerid, "Drive Slowly",5000,5);
        return 1;
    }
    if (strcmp("/skcr", cmdtext, true, 10) == 0)
    {
        SetPlayerPos(playerid, -2516.3000488281,-1111.0999755859,991.20001220703);
        GameTextForPlayer(playerid, "Sky Cage Road",5000,5);
    }
    return false;
}
Reply


Messages In This Thread
invalid function or declaration NEED HELP - by Killer786 - 02.11.2011, 15:15
Re: invalid function or declaration NEED HELP - by Norn - 02.11.2011, 15:16
Re: invalid function or declaration NEED HELP - by SmiT - 02.11.2011, 15:18
Re: invalid function or declaration NEED HELP - by Killer786 - 02.11.2011, 15:50
Re: invalid function or declaration NEED HELP - by array13 - 02.11.2011, 15:52

Forum Jump:


Users browsing this thread: 3 Guest(s)