small problem
#4

Not sure if you need something like this but here's a very easy way:
pawn Код:
static const
    g_aLevelInfo[][] =
    {
        { "Level 1: Nothing, Level 2: $10000, /robbank and katana, Level 3: $25000 and 9mm pistol, Level 4: $50000 and deagle, Level 5: $100000 and micro smg" },
        { "Level 2: X" },
        { "Level 3: X" },
        { "Level 4: X" },
        { "Level 5: X" },
        { "Level 6: $175000 and Ak-47, Level 7: $250000 and sawn-off-shotgun" }
        // ...
    }
;
pawn Код:
CMD:levelinfo(playerid, params[])
    return SendClientMessage(playerid, orange, g_aLevelInfo[playerLevel - 1]);
Just replace "playerLevel" with your variable.
Reply


Messages In This Thread
small problem - by Tanush123 - 17.08.2011, 18:50
Re: small problem - by ElieJabbour - 17.08.2011, 19:17
Re : small problem - by Naruto_Emilio - 17.08.2011, 21:04
Re: small problem - by RyDeR` - 17.08.2011, 23:04

Forum Jump:


Users browsing this thread: 1 Guest(s)