2 Annoying warnings on my /me command
#1

Well I have this problem and it quite irritates me
Defines
PHP код:
//-------COLORS-------//
#define COLOR_WHITE 0xFFFFFFAA
#define COL_WHITE "{FFFFFF}"
#define COL_RED "{F81414}"
#define COL_GREEN "{00FF22}"
#define COL_LIGHTBLUE "{00CED1}"
#define COLOR_GREY 0xAFAFAFAA
#define COLOR_PURPLE 0x800080FF
#define COLOR_RED 0xFF0000FF
#define team_SASF   1
#define team_Terrorist  2
#define timer
#define pName PlayerName
#define ProxDetector
new PlayerInfo[MAX_PLAYERS][pInfo];
new 
gPlayerLogged[MAX_PLAYERS];
new 
sendername[MAX_PLAYER_NAME];
new 
idx 1


Code:
PHP код:
    if(strcmp("/me",cmdtexttrue,10) == 0)
    {
    new 
MEG[128];
        if(
IsPlayerConnected(playerid))// LINE 353
        
{
            if(
gPlayerLogged[playerid] == 0)
            {
                
SendClientMessage(playeridCOLOR_GREY"   You havent logged in yet !");
                return 
1;
            }
            
GetPlayerName(playeridsendernamesizeof(sendername));
            new 
length strlen(cmdtext);
            while ((
idx length) && (cmdtext[idx] <= ' '))
            {
                
idx++;
            }
            new 
offset idx;
            new 
result[96];
            while ((
idx length) && ((idx offset) < (sizeof(result) - 1)))
            {
                
result[idx offset] = cmdtext[idx];
                
idx++;
            }
            
result[idx offset] = EOS;
            if(!
strlen(result))
            {
                
SendClientMessage(playeridCOLOR_WHITE"USAGE: /me [action]");
                return 
1;
            }
            if(
PlayerInfo[playerid][pMask] == 1)
            {
                
format(MEGsizeof(MEG), "* Stranger %s"result);
            }
            else
            {
                
format(MEGsizeof(MEG), "* %s %s"sendernameresult);
            }
            
ProxDetector(30.0playeridMEGCOLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); //line 387
        
}
    }
    return 
0;


Warnings:
Код:
C:\Users\Eigenaar\Documents\Erdem\2\gamemodes\DayZ.pwn(353) : warning 217: loose indentation
C:\Users\Eigenaar\Documents\Erdem\2\gamemodes\DayZ.pwn(387) : warning 215: expression has no effect
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


2 Warnings.
Reply


Messages In This Thread
2 Annoying warnings on my /me command - by R4mpage - 24.12.2013, 11:25
Re: 2 Annoying warnings on my /me command - by SilentSoul - 24.12.2013, 11:28
Re: 2 Annoying warnings on my /me command - by Sk1lleD - 24.12.2013, 11:30
Re: 2 Annoying warnings on my /me command - by R4mpage - 24.12.2013, 11:30
Re: 2 Annoying warnings on my /me command - by PrivatioBoni - 24.12.2013, 11:39
Re: 2 Annoying warnings on my /me command - by R4mpage - 24.12.2013, 11:41
Re: 2 Annoying warnings on my /me command - by Konstantinos - 24.12.2013, 11:44
Re: 2 Annoying warnings on my /me command - by R4mpage - 24.12.2013, 11:46
Re: 2 Annoying warnings on my /me command - by Sk1lleD - 24.12.2013, 11:50
Re: 2 Annoying warnings on my /me command - by R4mpage - 24.12.2013, 11:56

Forum Jump:


Users browsing this thread: 5 Guest(s)