Error if connect (Rep+)
#6

Quote:
Originally Posted by Raza2013
Посмотреть сообщение
pawn Код:
if(PlayerInfo[playerid][pDonateRank]){
                format(string, sizeof(string), "SERVER: {FFFFFF}You are logged in as a level %d Donor.", PlayerInfo[playerid][pDonateRank]);
                SendClientMessage(playerid, COLOR_NICEGREEN, string);}
Add "else if" after Player Accounts Like this:


pawn Код:
if(PlayerInfo[playerid][pHelper]){
                format(string, sizeof(string), "SERVER: {FFFFFF}You are logged in as level %d helper.", PlayerInfo[playerid][pHelper]);
                SendClientMessage(playerid, COLOR_NICEGREEN, string);}
                // VIP
               else if(PlayerInfo[playerid][pDonateRank]){
                format(string, sizeof(string), "SERVER: {FFFFFF}You are logged in as a level %d Donor.", PlayerInfo[playerid][pDonateRank]);
                SendClientMessage(playerid, COLOR_NICEGREEN, string);}
                // Famed
                else if(PlayerInfo[playerid][pFamed]){
                SendClientMessage(playerid, COLOR_NICEGREEN,"SERVER: {FFFFFF}You are logged in as a Famed Player.");}
                // Developer
                else if(PlayerInfo[playerid][pDeveloper]){
                format(string, sizeof(string), "SERVER: {FFFFFF}You are logged in as a level %d Devloper.", PlayerInfo[playerid][pDeveloper]);
                SendClientMessage(playerid, COLOR_NICEGREEN, string);}
                // Mappers
                else if(PlayerInfo[playerid][pMapper]){
                format(string, sizeof(string), "SERVER: {FFFFFF}You are logged in as a level %d Mapper.", PlayerInfo[playerid][pMapper]);
                SendClientMessage(playerid, COLOR_NICEGREEN, string);}
                // Admin
                else if(PlayerInfo[playerid][pAdmin]){
                format(string, sizeof(string), "SERVER: {FFFFFF}You are logged in as level %d administrator.", PlayerInfo[playerid][pAdmin]);
                SendClientMessage(playerid, COLOR_NICEGREEN, string);}
                // Admin Messages
                else if(PlayerInfo[playerid][pAdmin]){
                format(string, sizeof(string), "AdmLogin: Administrator %s has logged in. (Adminstration Level : %d)", RPN(playerid), PlayerInfo[playerid][pAdmin]);
                SendAdminMessage(COLOR_LIGHTBLUE, string);}
            }
Did'nt tested i guess it work's.
I Have 2 error .
Код:
D:\New Server\raven\gamemodes\U-RP.pwn(29922) : error 029: invalid expression, assumed zero
D:\New Server\raven\gamemodes\U-RP.pwn(29922) : warning 215: expression has no effect
D:\New Server\raven\gamemodes\U-RP.pwn(29922) : error 001: expected token: ";", but found "if"
Reply


Messages In This Thread
Error if connect (Rep+) - by botak - 29.12.2013, 05:55
Re: Error if connect (Rep+) - by ToiletDuck - 29.12.2013, 05:56
Re: Error if connect (Rep+) - by botak - 29.12.2013, 05:59
Re: Error if connect (Rep+) - by Raza2013 - 29.12.2013, 06:05
Re: Error if connect (Rep+) - by ToiletDuck - 29.12.2013, 06:09
Re: Error if connect (Rep+) - by botak - 29.12.2013, 06:31
Re: Error if connect (Rep+) - by botak - 29.12.2013, 06:41
Re: Error if connect (Rep+) - by ToiletDuck - 29.12.2013, 06:46
Re: Error if connect (Rep+) - by botak - 29.12.2013, 06:48

Forum Jump:


Users browsing this thread: 1 Guest(s)