20.12.2016, 23:30
And then guys, I have a problem here that is the following, I never did command like this, the first time, when I type this command;
... it does not work properly, what did I do wrong at the time of creating the command?
PHP код:
COMANDO:inventario(playerid, params[])
{
new subcmd[128], subcmd2[128], i, Float:X, Float:Y, Float:Z;
if(sscanf(params, "s[128]I(-1)", subcmd, i))
{
SendClientMessage(playerid, COLOR_SEAGREEN, "Digite: (/i)nventario (pegar, guardar e dropar).");
return 1;
}
if(!strcmp(subcmd, "dropar", true))
{
if(sscanf(params, "s[128]I(-1)", subcmd2, i))
{
SendClientMessage(playerid, COLOR_SEAGREEN, "USE: (/i)nventario dropar [arma/marijuana/crack/cocaina]");
}
if(!strcmp(subcmd2, "arma", true))
{
}