What's wrong here..
#1

I made this:
Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if(!strcmp(cmdtext, "/help", true))
    {
        SendClientMessage(playerid, 0xFFFFFFFF, "To be updated.");
        return 1;
        // Returning 1 informs the server that the command has been processed.
        // OnPlayerCommandText won't be called in other scripts.
    }
    return 0;
    // Returning 0 informs the server that the command hasn't been processed by this script.
    // OnPlayerCommandText will be called in other scripts until one returns 1.
    // If no scripts return 1, the 'SERVER: Unknown Command' message will be shown.
}

if(!strcmp(cmdtext, "/help", true))
{
	if(IsPlayerConnected(playerid))
    {
        SendClientMessage(playerid, 0xFFFFFFFF, "To be updated.");
	}
 	return 1;
}
And I get this errors:
Код:
F:\Jocuri, programe\Game-Mode\samp03x_svr_R2_win32\gamemodes\game.pwn(97) : error 010: invalid function or declaration
F:\Games\Game-Mode\....\gamemodes\game.pwn(99) : error 010: invalid function or declaration
F:\Games\Game-Mode\....\gamemodes\game.pwn(103) : error 010: invalid function or declaration
What to do?
Reply


Messages In This Thread
What's wrong here.. - by Bost - 30.11.2013, 16:37
Re: What's wrong here.. - by Konstantinos - 30.11.2013, 16:41
Re: What's wrong here.. - by Bost - 30.11.2013, 17:18
Re: What's wrong here.. - by Konstantinos - 30.11.2013, 18:19
Re: What's wrong here.. - by Bost - 30.11.2013, 18:30
Re: What's wrong here.. - by Konstantinos - 30.11.2013, 18:41
Re: What's wrong here.. - by Bost - 30.11.2013, 19:03
Re: What's wrong here.. - by Mitchy - 30.11.2013, 23:10

Forum Jump:


Users browsing this thread: 1 Guest(s)