How to make a command
#9

Quote:
Originally Posted by 7Ahmad7
Посмотреть сообщение
Guys,ther eis some errors on that code,My fixed code :
pawn Код:
CMD:skin(playerid,params[])
{
      new skinid;
      if(sscanf(params,"i",skinid)) SendClientMessage(playerid,"Usage:/setskin [skinid]");
      else if(skinid < 0 || skinid > 311) return SendClientMessage(playerid, -1, "Invalid skin!");
      else SetPlayerSkin(playerid, skinid);
      return 1;
}
And i fixed 4 errors,still got 2:
D:\Programmes\Engabic Blood Server\gamemodes\EABS.pwn(393) : error 017: undefined symbol "sscanf"
D:\Programmes\Engabic Blood Server\gamemodes\EABS.pwn(393) : error 035: argument type mismatch (argument 2)
Download sscanf include and add this line in top of your gamemode.

pawn Код:
#include <sscanf>
sscanf link: https://dl.dropboxusercontent.com/u/...canf-2.8.2.zip

Don't also forget to put it in plugins.
Reply


Messages In This Thread
How to make a command - by 7Ahmad7 - 24.05.2015, 23:23
Re: How to make a command - by AlonzoTorres - 25.05.2015, 00:41
Re: How to make a command - by Abagail - 25.05.2015, 00:45
Re: How to make a command - by 7Ahmad7 - 25.05.2015, 01:08
Re: How to make a command - by SickAttack - 25.05.2015, 01:11
Re: How to make a command - by Yashas - 25.05.2015, 01:58
Re: How to make a command - by Abagail - 25.05.2015, 02:05
Re: How to make a command - by 7Ahmad7 - 25.05.2015, 12:08
Re: How to make a command - by Ghazal - 25.05.2015, 12:12
Re: How to make a command - by 7Ahmad7 - 25.05.2015, 12:22

Forum Jump:


Users browsing this thread: 2 Guest(s)