little prblem
#1

pawn Код:
CMD:licenses(playerid,params[])
{
    new GunLic[30];
    switch (PlayerData[playerid][GunLicense])
    {
    case 0: format(GunLic,30, "Not Passed");
    case 1: format(GunLic,30, "Passed");
    }
    format(str,sizeof(str),"Gun License: %s",GunLic);
    SendClientMessage(playerid,orange,str);
    return 1;
}
when i do /licenses while i dont have gun license it shows Not Passed. When i buy a gun license and do /licenses it shows "Gun License: ", how can i make it show passed when i buy one?
Reply
#2

pawn Код:
CMD:licenses(playerid,params[])
{
    new GunLic[30];
    switch (PlayerData[playerid][GunLicense])
    {
    case 0: format(GunLic,30, "Not Passed");
    default: format(GunLic,30, "Passed");    // I've edited this line
    }
    format(str,sizeof(str),"Gun License: %s",GunLic);
    SendClientMessage(playerid,orange,str);
    return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)