Please help. this is weird
#1

Ok guys. This problem is fixed. I noticed that when you just try you can do it your self many times.
Thats what I had.
It costed me some time to fix this problem but I did it.
thanks for not saying anything this time :P I like it when I can fix such problems my self.

Regards
Reply
#2

Your not showing your whole code here, you haven't even included your usage message.
Post all the code for quicker help.
Reply
#3

Ow sry.

Well. This is the whole cmd
Код:
	cmd = strtok(cmdtext, idx);
	if(strcmp(cmd,"/givepermission", true) == 0)
{
  if(IsPlayerAdmin(playerid))
{

  tmp = strtok(cmdtext, idx);
  if(!strlen(tmp))
  return SendClientMessage(playerid, 0xE3E3E3FF, "USAGE: /givepermission [playerid]");

  giveplayerid = strval(tmp);
  if(IsPlayerConnected(giveplayerid))
{
  SendClientMessage(playerid, 0xE3E3E3FF, "Done!");

  SkinPermission[giveplayerid] = true;
}
  else if (!IsPlayerConnected(giveplayerid))
{
  SendClientMessage(playerid, 0xE3E3E3FF, "ERROR: Player not Conected!");
}
}
  else
{
  SendClientMessage(playerid, 0xE3E3E3FF, "ERROR: You are not an Administrator!");
}
  return 1;
Reply
#4

Ok I fixed somethign now. The problem I have now is this:

When I do /giveperm [id] it just says USAGE:blablabla.
And it doesn't say: done and I don'thave the permission.

What do I have to edit in this script?

Код:
	if(strcmp(cmd,"/giveperm", true) == 0)
{
  if(IsPlayerAdmin(playerid))
{

  if(!strlen(tmp))
  return SendClientMessage(playerid, 0xE3E3E3FF, "USAGE: /giveperm [playerid]");

  giveplayerid = strval(tmp);
  if(IsPlayerConnected(giveplayerid))
{
  SendClientMessage(playerid, 0xE3E3E3FF, "Done!");

  SkinPermission[giveplayerid] = true;
}
  else if (!IsPlayerConnected(giveplayerid))
{
  SendClientMessage(playerid, 0xE3E3E3FF, "ERROR: Player not Conected!");
}
}
  else
{
  SendClientMessage(playerid, 0xE3E3E3FF, "ERROR: You are not an Administrator!");
}
  return 1;
Reply
#5

pawn Код:
if(strcmp(cmd,"/giveperm", true) == 0)
{
  if(IsPlayerAdmin(playerid))
{
 tmp = strtok(cmdtext, idx);

  if(!strlen(tmp))
  return SendClientMessage(playerid, 0xE3E3E3FF, "USAGE: /giveperm [playerid]");

  giveplayerid = strval(tmp);
  if(IsPlayerConnected(giveplayerid))
{
  SendClientMessage(playerid, 0xE3E3E3FF, "Done!");

  SkinPermission[giveplayerid] = true;
}
  else if (!IsPlayerConnected(giveplayerid))
{
  SendClientMessage(playerid, 0xE3E3E3FF, "ERROR: Player not Conected!");
}
}
  else
{
  SendClientMessage(playerid, 0xE3E3E3FF, "ERROR: You are not an Administrator!");
}
  return 1;
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)