23.03.2015, 18:52
(
Последний раз редактировалось kepa333; 23.03.2015 в 22:17.
)
SLOVED:
Converted all commands into dialogs! lel.
Converted all commands into dialogs! lel.
pawn Код:
|
if(!sscanf(params, "s[128]", params))
if(sscanf(params, "s[128]", params))
I'been playing with this code for 2 hours,
pawn Код:
|
if(sscanf(params, "s[128]i", params, idx))
CMD:gedit(playerid, params[])
{
new option[128], gateid;
if(sscanf(params, "s[128]i", option, gateid))
{
SendClientMessage(playerid, COLOR_WHITE, "USAGE: /gedit [option] [gateid]");
SendClientMessage(playerid, COLOR_GREY, "OPTIONS: object | close | open | speed | password");
return 1;
}
if(strcmp(option, "object", true) == 0)
{
// Code...
}
else if(strcmp(option, "close", true) == 0)
{
// Code...
}
else if(strcmp(option, "open", true) == 0)
{
// Code...
}
else if(strcmp(option, "speed", true) == 0)
{
// Code...
}
else if(strcmp(option, "password", true) == 0)
{
// Code...
}
else
{
SendClientMessage(playerid, COLOR_WHITE, "USAGE: /gedit [option] [gateid]");
SendClientMessage(playerid, COLOR_GREY, "OPTIONS: object | close | open | speed | password");
}
return 1;
}