SA-MP Forums Archive
[Help] With this simple /licences command - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [Help] With this simple /licences command (/showthread.php?tid=242817)



[Help] With this simple /licences command - kariok - 20.03.2011

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.


Re: [Help] With this simple /licences command - Stigg - 20.03.2011

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 ?


Re: [Help] With this simple /licences command - Amel_PAtomAXx - 20.03.2011

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;
}




Re: [Help] With this simple /licences command - Stigg - 20.03.2011

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 ?


Re: [Help] With this simple /licences command - Amel_PAtomAXx - 20.03.2011

i didnt see sry


Re: [Help] With this simple /licences command - Stigg - 20.03.2011

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


Re: [Help] With this simple /licences command - kariok - 20.03.2011

I just typed it wrong.

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


Re: [Help] With this simple /licences command - kariok - 20.03.2011

Noone can help me?