Help me :)
#1

C:\Documents and Settings\Administrator\Desktop\Samp Server\filterscripts\Group.pwn(4) : fatal error 100: cannot read from file: "zcmd"

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Error.

COMMAND:groupleader(playerid, params[])
{
if(group[playerid][order] != 1) return SendClientMessage(playerid, 0xFF0000, "You are not the leader of the group, you cannot change the leader!");
new cid;
if(isnull(params)) return SendClientMessage(playerid, 0xFF0000, "Usage: {FFFFFF}/Groupleader{FF0000} (playerid)");
cid = strval(params);
if(!IsPlayerConnected(cid)) return SendClientMessage(playerid, 0xFF0000, "Player Is not connected!");
if(cid == playerid) return SendClientMessage(playerid, 0xFF0000, "You are already group leader, silly.");
if(group[playerid][gid] != group[cid][gid]) return SendClientMessage(playerid, 0xFF0000, "Player Is not in your group!");
ChangeMemberOrder(group[playerid][gid], 1);
group[playerid][order] = GroupMembers(group[playerid][gid]);
return 1;
}

__________________________________________________ ______________________________

group[playerid][order] = GroupMembers(group[playerid][gid]);
Reply
#2

pawn Код:
COMMAND:groupleader(playerid, params[])
{
if(group[playerid][order] != 1) return SendClientMessage(playerid, 0xFF0000, "You are not the leader of the group, you cannot change the leader!");
new cid;
if(isnull(params)) return SendClientMessage(playerid, 0xFF0000, "Usage: {FFFFFF}/Groupleader{FF0000} (playerid)");
cid = strval(params);
if(!IsPlayerConnected(cid)) return SendClientMessage(playerid, 0xFF0000, "Player Is not connected!");
if(cid == playerid) return SendClientMessage(playerid, 0xFF0000, "You are already group leader, silly.");
if(group[playerid][gid] != group[cid][gid]) return SendClientMessage(playerid, 0xFF0000, "Player Is not in your group!");
ChangeMemberOrder(group[playerid][gid], 1);
group[playerid][order] = GroupMembers([playerid][group][gid]);
return 1;
}
Try this if it gets errors u dont got the ZCMD
Reply
#3

You are probably missing the zcmd.inc file from your "pawn/include" folder.
Reply
#4

You don't have zcmd in your include folder, get it and put it in the includes folder.
(Server Folder>pawno>include)

And learn to use [ p a w n]
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)