undefined symbol "params"
#1

Код:
if(sscanf(params, "ui", id )) return SendClientMessage(playerid, 0xFFFF00FF, "Syntax: /heal (id)");
Reply
#2

U've misspelled params in CMD:
Show the whole command
Reply
#3

Код:
 if (strcmp("/dhealme", cmdtext, true, 10) == 0)
    {
	  new str[128], id;
	  {
		if(sscanf(params, "ui", id )) return SendClientMessage(playerid, 0xFFFF00FF, "Syntax: /heal (id)");
		if(id == playerid) return SendClientMessage(playerid, 0xFFFF00FF, "You cant use this command to yourself.");
	    if(id == INVALID_PLAYER_ID) return SendClientMessage(playerid, 0xFFFF00FF, "Not found.");
	    {
         Healme[id] = 1;
		}
	  }
	  return 1;
	}
 return 0;
}
Reply
#4

sscanf is used with zcmd. You may not use strcmp.
Reply
#5

my bad I was confused
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)