04.01.2012, 18:59
(
Последний раз редактировалось Setkus; 05.01.2012 в 16:56.
Причина: Help with admin!
)
Hey, guys!
I have a problem with zcmd. So here is the code, and i have some errors:
All I want is that only admins can use this commands. But if I put in the command fly this:
and when I go into game and type that command it says this command is only for admin. I am admin in this server
Here is the error:
Whats the problem? Could you help me? Thanks
Sorry for my bad english
I have a problem with zcmd. So here is the code, and i have some errors:
pawn Код:
if(playerDB[playerid][admin])
{
CMD:fly(playerid, params[])
{
SetPlayerSpecialAction(playerid,SPECIAL_ACTION_USEJETPACK);
SendClientMessage(playerid,0xEA0000FF,"* You got Jet-Pack");
return 1;
}
return 1;
}
pawn Код:
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,COLOR_ORANGE,"Si komanda tik administracijai.");
Here is the error:
pawn Код:
D:\GTASA~1\ghjhj\GAMEMO~1\band7.pwn(17658) : error 010: invalid function or declaration
D:\GTASA~1\ghjhj\GAMEMO~1\band7.pwn(17662) : error 054: unmatched closing brace ("}")
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
2 Errors.
Sorry for my bad english