should return a value
#2

PHP код:
GetAdminName(playerid)
{
    new 
adminname[32];
    switch(
pInfo[playerid][pAdminLevel])
    {
        case 
0adminname "Test";
        case 
1adminname "Test";
        case 
2adminname "Test";
        case 
3adminname "Test";
        case 
4adminname "Test";
        case 
5adminname "Test";
    }
    return 
adminname;

If you want from admin levels >= 1, remove the "case 0: ..." line.
Reply


Messages In This Thread
~fixed~ - by Blackazur - 09.05.2015, 15:35
Re: should return a value - by Konstantinos - 09.05.2015, 15:39
AW: should return a value - by Blackazur - 09.05.2015, 15:40
AW: should return a value - by Mencent - 09.05.2015, 16:01
Re: should return a value - by J4Rr3x - 09.05.2015, 16:05
AW: should return a value - by Mencent - 09.05.2015, 16:07
Re: AW: should return a value - by J4Rr3x - 09.05.2015, 16:10
Re: should return a value - by Nirzor - 09.05.2015, 16:12
Re: should return a value - by Konstantinos - 09.05.2015, 16:21
AW: should return a value - by Blackazur - 09.05.2015, 16:27

Forum Jump:


Users browsing this thread: 1 Guest(s)