[Help] With this simple /licences command
#1

pawn Код:
CMD:licencas(playerid, params[])
{
    new wlic[5];
    new clic[5];
    new blic[5];
    new filic[5];
    new fllic[5];
    if(PVar[playerid][pWlicense]==1){
    wlic="Sim";
    }
    else return wlic="Nгo";
    if(PVar[playerid][pClicense]==1){
    clic="Sim";
    }
    else return clic="Nгo";
    if(PVar[playerid][pBlicense]==1){
    blic="Sim";
    }
    else return blic="Nгo";
    if(PVar[playerid][pFishlicense]==1){
    filic="Sim";
    }
    else return filic="Nгo";
    if(PVar[playerid][pFlylicense]==1){
    fllic="Sim";
    }
    else return fllic="Nгo";
    new str[250],str2[250],str3[250],str4[250],str5[250];
    format(str, sizeof(str), "Veнculos "#CREDISH"(AB)"#CGREY": "#CYELLOW"%s", clic);
    format(str2, sizeof(str2), "Nбutica "#CREDISH"(NA)"#CGREY": "#CYELLOW"%s", blic);
    format(str3, sizeof(str3), "Brevк "#CREDISH"(VO)"#CGREY": "#CYELLOW"%s",fllic);
    format(str4, sizeof(str4), "Armas: "#CYELLOW"%s",  wlic);
    format(str5, sizeof(str5), "Pescaria: "#CYELLOW"%s",filic);
    SendClientMessage(playerid, COLOR_GREY, "[--"#CORANGE"CARTEIRA DE LICENЗAS"#CGREY"--]");
    SendClientMessage(playerid, COLOR_GREY, str);
    SendClientMessage(playerid, COLOR_GREY, str2);
    SendClientMessage(playerid, COLOR_GREY, str3);
    SendClientMessage(playerid, COLOR_GREY, str4);
    SendClientMessage(playerid, COLOR_GREY, str5);
    SendClientMessage(playerid, COLOR_GREY, "[-------------------------]");
    return 1;
}
Nothing happens when I type /licences...
I don't know what's causing the issue.
Reply
#2

Quote:
Originally Posted by kariok
Посмотреть сообщение
pawn Код:
CMD:licencas(playerid, params[])
{
    new wlic[5];
    new clic[5];
    new blic[5];
    new filic[5];
    new fllic[5];
    if(PVar[playerid][pWlicense]==1){
    wlic="Sim";
    }
    else return wlic="Nгo";
    if(PVar[playerid][pClicense]==1){
    clic="Sim";
    }
    else return clic="Nгo";
    if(PVar[playerid][pBlicense]==1){
    blic="Sim";
    }
    else return blic="Nгo";
    if(PVar[playerid][pFishlicense]==1){
    filic="Sim";
    }
    else return filic="Nгo";
    if(PVar[playerid][pFlylicense]==1){
    fllic="Sim";
    }
    else return fllic="Nгo";
    new str[250],str2[250],str3[250],str4[250],str5[250];
    format(str, sizeof(str), "Veнculos "#CREDISH"(AB)"#CGREY": "#CYELLOW"%s", clic);
    format(str2, sizeof(str2), "Nбutica "#CREDISH"(NA)"#CGREY": "#CYELLOW"%s", blic);
    format(str3, sizeof(str3), "Brevк "#CREDISH"(VO)"#CGREY": "#CYELLOW"%s",fllic);
    format(str4, sizeof(str4), "Armas: "#CYELLOW"%s",  wlic);
    format(str5, sizeof(str5), "Pescaria: "#CYELLOW"%s",filic);
    SendClientMessage(playerid, COLOR_GREY, "[--"#CORANGE"CARTEIRA DE LICENЗAS"#CGREY"--]");
    SendClientMessage(playerid, COLOR_GREY, str);
    SendClientMessage(playerid, COLOR_GREY, str2);
    SendClientMessage(playerid, COLOR_GREY, str3);
    SendClientMessage(playerid, COLOR_GREY, str4);
    SendClientMessage(playerid, COLOR_GREY, str5);
    SendClientMessage(playerid, COLOR_GREY, "[-------------------------]");
    return 1;
}
Nothing happens when I type /licences...
I don't know what's causing the issue.
Nothing will happen when you type: /licences Because your command is: /licencas.
Or is that just a typo ?
Reply
#3

you didnt put any command for that

example:

Quote:

if(strcmp(cmdtext, "/licenses", true) == 0)
{
SendClientMessage(playerid,COLOR_YELLOW,"Type /gunlic for gun licenses.");
SendClientMessage(playerid,COLOR_YELLOW,"Type /fishlic for fishing licenses.");
SendClientMessage(playerid,COLOR_YELLOW,"Type /drivinglic for driving licenses.");
return 1;
}

Reply
#4

Quote:
Originally Posted by Amel_PAtomAXx
Посмотреть сообщение
you didnt put any command for that

example:
Код:
CMD:licencas(playerid, params[])
That's the command, cant you see ?
Reply
#5

i didnt see sry
Reply
#6

Quote:
Originally Posted by Amel_PAtomAXx
Посмотреть сообщение
i didnt see sry
No prob's m8'y..lolz
Reply
#7

I just typed it wrong.

It does not gives me the UNKNOWN COMMAND warning, but my showplayermsgs don't show up also
Reply
#8

Noone can help me?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)