02.04.2013, 12:22
Hello i have problem when i type the commands /v lock its work but when i type the number [1-3] its doesnt work help me fix it please
http://pastebin.com/uXmXH2i3
http://pastebin.com/uXmXH2i3
COMMAND:vehicle(playerid, params[])
{
new name[15];
if(sscanf(params, "s[15]", name))
{
SendClientMessage(playerid, COLOR_GREY, TEXT_SYNTAX"(/v)ehicle <Usage>");
SendClientMessage(playerid, COLOR_GREY, "Tip: lock(1-3)");
return 1;
}
if(strcmp(name, "lock1", true) == 0)
{
}
else if(strcmp(name, "lock2", true) == 0)
{
}
else if(strcmp(name, "lock3", true) == 0)
{
}
else
{
SendClientMessage(playerid, COLOR_GREY, TEXT_SYNTAX"(/v)ehicle <Usage>");
SendClientMessage(playerid, COLOR_GREY, "Tip: lock(1-3)");
return 1;
}
return 1;
}