Hey wieso funktioniert mein Adminpickup befehl nicht ?
ocmd:adminpickup(playerid,params[])
{
new art[30];
if(sscanf(params,"s",art)) return SendClientMessage(playerid,ROT,"Benutze: {D6D6D6}/adminpickup [Art]");
if(strcmp(art,"Waffe",true)==0)
{
new waffe[50],muni,string[50];
if(sscanf(params,"ssd",art,waffe,muni)) return SendClientMessage(playerid,ROT,"Benutze: {D6D6D6}/adminpickup Waffe [Waffe] [Munnition]");
if(strcmp(waffe,"Deagle",true)==0)
{
format(string,sizeof(string),"%s %d",waffe,muni);
SendClientMessage(playerid,ROT,string);
}
else if(strcmp(waffe,"mp5",true)==0)
{
format(string,sizeof(string),"%s %d ",waffe,muni);
SendClientMessage(playerid,ROT,string);
}
}
return 1;
}
außerdem bekomme ich immer das hier
[09/08/2015 18:26:33] sscanf warning: Strings without a length are deprecated, please add a destination size.
[09/08/2015 18:26:33] sscanf warning: Strings without a length are deprecated, please add a destination size.
[09/08/2015 18:26:35] sscanf warning: Strings without a length are deprecated, please add a destination size.