14.03.2009, 23:48
you have one unneeded } which fucks everything up
This will do it
Also, castle's code defines "string" - doing that can make errors if you have "string" already defined, so better don't do that
pawn Код:
if(strcmp("/pickup",cmdtext, true) == 0)
{
new sendername;
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "%s Has Requested To Be Picked Up", sendername);
SendClientMessageToAll(ADMIN_RED, string);
SendClientMessage(playerid, GREEN, "Your Request To Be Picked Up Has Been Sent. Thank You.");
return 1;
}
Also, castle's code defines "string" - doing that can make errors if you have "string" already defined, so better don't do that