[pomoc]Nemogu da porpavim ovaj error,

Započeo Mlinky, Novembar 21, 2010, 14:38:48 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Ja mislim da prema ovome nebi smijelo biti greske ali izbaci mi ovo:
C:\Documents and Settings\antonio\Desktop\SA-MP Server\gamemodes\vrggm.pwn(524) : error 010: invalid function or declaration
C:\Documents and Settings\antonio\Desktop\SA-MP Server\gamemodes\vrggm.pwn(526) : error 010: invalid function or declaration
C:\Documents and Settings\antonio\Desktop\SA-MP Server\gamemodes\vrggm.pwn(529) : error 010: invalid function or declaration
C:\Documents and Settings\antonio\Desktop\SA-MP Server\gamemodes\vrggm.pwn(531) : error 010: invalid function or declaration
C:\Documents and Settings\antonio\Desktop\SA-MP Server\gamemodes\vrggm.pwn(535) : error 010: invalid function or declaration

ovo dobijem nakon compile a ovako mi izgleda to
public OnPlayerCommandText(playerid, cmdtext[])
{
    new cmd[256];
// new tmp[256];
// new string[256];
// new sendername[MAX_PLAYER_NAME];
new idx;
cmd = strtok(cmdtext, idx);
//\=====|AdminKomande|=====
if(strcmp(cmd, "/adminhelp", true) == 0)
    {
    if(IsPlayerConnected(playerid))
        {
    SendClientMessage(playerid, COLOR_RED, "GRESKA:Nisi admin da mozes koristiti komandu /adminhelp!");
    return 1;
        }
if (PlayerInfo[playerid][pAdmin] >= 1)
   {
    ShowPlayerDialog(playerid, 4, DIALOG_STYLE_MSGBOX, "AdminHelp", "/admincommands [LEVEL ADMINA](1,2,3,4,5)-Vidite listu admin komanda", "U redu", "Odustani");
}
}
return 1;
}
if(strcmp(cmd, "/admincommands1", true) == 0)
    {
    if(IsPlayerConnected(playerid))
        {
    SendClientMessage(playerid, COLOR_RED, "GRESKA:Nisi admin da mozes koristiti komandu /admincommands1!");
    return 1;
        }
if (PlayerInfo[playerid][pAdmin] >= 1)
   {
    ShowPlayerDialog(playerid, 4, DIALOG_STYLE_MSGBOX, "AdminCommands", "Commands:", "U redu", "Odustani");
}
return 1;
}
//


evo naso sam :D
Poslednja Izmena: Novembar 21, 2010, 16:07:57 POSLE PODNE od Mlinky


warning 209: function "OnPlayerCommandText" should return a value

sada imam pak taj error

na kraj stavi "OnPlayerCommandText" stavi return 0;