24.12.2013, 11:25
Well I have this problem and it quite irritates me
Defines
Code:
Warnings:
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",cmdtext, true,10) == 0)
{
new MEG[128];
if(IsPlayerConnected(playerid))// LINE 353
{
if(gPlayerLogged[playerid] == 0)
{
SendClientMessage(playerid, COLOR_GREY, " You havent logged in yet !");
return 1;
}
GetPlayerName(playerid, sendername, sizeof(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(playerid, COLOR_WHITE, "USAGE: /me [action]");
return 1;
}
if(PlayerInfo[playerid][pMask] == 1)
{
format(MEG, sizeof(MEG), "* Stranger %s", result);
}
else
{
format(MEG, sizeof(MEG), "* %s %s", sendername, result);
}
ProxDetector(30.0, playerid, MEG, COLOR_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.