SA-MP Forums Archive
undefined symbol "params" - 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: undefined symbol "params" (/showthread.php?tid=583767)



undefined symbol "params" - suni - 30.07.2015

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



Re: undefined symbol "params" - PMH - 30.07.2015

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


Re: undefined symbol "params" - suni - 30.07.2015

Код:
 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;
}



Re: undefined symbol "params" - Jimmi - 30.07.2015

sscanf is used with zcmd. You may not use strcmp.


Re: undefined symbol "params" - suni - 30.07.2015

my bad I was confused