Police & Trucker Channels
#1

I tried to create a Police and Trucker channels, but when I compile the gamemode I get errors.
Remember I'm new into this.
Line 23 is nothing just to notice that.


Errors
Код:
C:\Users\Documents\GT Testing\pawno\include\PlayerCommands.inc(12) : error 017: undefined symbol "ClassTrucker"
C:\Users\Documents\GT Testing\pawno\include\PlayerCommands.inc(16) : error 079: inconsistent return types (array & non-array)
C:\Users\Documents\GT Testing\pawno\include\PlayerCommands.inc(20) : error 079: inconsistent return types (array & non-array)
C:\Users\Documents\GT Testing\pawno\include\PlayerCommands.inc(23) : warning 225: unreachable code
C:\Users\Documents\GT Testing\pawno\include\PlayerCommands.inc(23) : warning 217: loose indentation
C:\Users\Documents\GT Testing\pawno\include\PlayerCommands.inc(23) : error 029: invalid expression, assumed zero
C:\Users\Documents\GT Testing\pawno\include\PlayerCommands.inc(23) : error 017: undefined symbol "cmd_pr"
C:\Users\Documents\GT Testing\pawno\include\PlayerCommands.inc(23) : error 029: invalid expression, assumed zero
C:\Users\Documents\GT Testing\pawno\include\PlayerCommands.inc(23) : fatal error 107: too many error messages on one line
Trucker Channel
pawn Код:
CMD:tr(playerid, params[])
{
    if (APlayerData[playerid][LoggedIn] == true)
    if (APlayerData[playerid][PlayerClass] == ClassTrucker)
    SendAdminText(playerid, "/tr", params);
    new string[256], pName[MAX_PLAYER_NAME];
    {
        if(isnull(params))  return SendClientMessage(playerid, 0xFFFFFF, "/tr [message]");
        GetPlayerName(playerid, pName, sizeof(pName));
        format(string, sizeof(string), "{1B9FE0}(Trucker Channel)%s: %s", pName, params);
        SendClientMessageToAll(0xFFFFFFF, string);
        return 1;
}
Police Channel
pawn Код:
CMD:pr(playerid, params[])
{
    if (APlayerData[playerid][LoggedIn] == true)
    if (APlayerData[playerid][PlayerClass] == ClassPolice)
    SendAdminText(playerid, "/pr", params);
    new string[256], pName[MAX_PLAYER_NAME];
    {
        if(isnull(params))  return SendClientMessage(playerid, 0xFFFFFF, "/pr [message]");
        GetPlayerName(playerid, pName, sizeof(pName));
        format(string, sizeof(string), "{1B9FE0}(Police Channel)%s: %s", pName, params);
        SendClientMessageToAll(0xFFFFFFF, string);
        return 1;
}
Reply


Messages In This Thread
Police & Trucker Channels - by NathNathii - 07.04.2013, 02:41
Re: Police & Trucker Channels - by Kitten - 07.04.2013, 02:54
Re: Police & Trucker Channels - by NathNathii - 07.04.2013, 02:58
Re: Police & Trucker Channels - by BlackID - 07.04.2013, 03:01
Re: Police & Trucker Channels - by NathNathii - 07.04.2013, 03:02
Re: Police & Trucker Channels - by NathNathii - 07.04.2013, 03:16
Re: Police & Trucker Channels - by BlackID - 07.04.2013, 03:23
Re: Police & Trucker Channels - by NathNathii - 07.04.2013, 03:23

Forum Jump:


Users browsing this thread: 1 Guest(s)