SA-MP Forums Archive
Help me :) - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Help me :) (/showthread.php?tid=323011)



Help me :) - [BP]Tony - 04.03.2012

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]);


Re: Help me :) - supmygirl - 04.03.2012

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


Re: Help me :) - SpiritEvil - 04.03.2012

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


Re: Help me :) - nitrochegs - 04.03.2012

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]