PDA

View Full Version : Errors


Filbert
20/05/2018, 05:26 AM
if(PlayerInfo[playerid][VIP] == 0)
{
new string[128]; GetPlayerName(playerid,string,sizeof(string)); stringbig[128]; //<<< Line 2160
format(stringbig,sizeof(stringbig),"{%06x}%s{FFFFFF}(%d): %s",GetPlayerColor(playerid) >>> 8,string,playerid, text);
SendClientMessageToAll(GetPlayerColor(playerid),st ringbig);
format(stringbig, sizeof(stringbig), "02[%d] 07%s: %s", playerid, string, text);
IRC_GroupSay(gGroupID,IRC_CHANNEL,stringbig);
format(stringbig,MAX_CHATBUBBLE_LENGTH,"Says: %s",text);
SetPlayerChatBubble(playerid,stringbig,MESSAGE_COL OR,35.0,10000);
return 0;
}
if(PlayerInfo[playerid][VIP] >= 1)
{
new string[128]; GetPlayerName(playerid,string,sizeof(string)); stringbig[128];
format(stringbig,sizeof(stringbig),"{00FF00}[VIP]{%06x}%s{FFFFFF}(%d): %s",GetPlayerColor(playerid) >>> 8,string,playerid, text);
SendClientMessageToAll(GetPlayerColor(playerid),st ringbig);
format(stringbig, sizeof(stringbig), "02[%d] 07%s: %s", playerid, string, text);
IRC_GroupSay(gGroupID,IRC_CHANNEL,stringbig);
format(stringbig,MAX_CHATBUBBLE_LENGTH,"Says: %s",text);
SetPlayerChatBubble(playerid,stringbig,MESSAGE_COL OR,35.0,10000);
return 0;
}
if(PlayerInfo[playerid][VIP] >= 1 && PlayerInfo[playerid][Level] >= 6)
{
new string[128]; GetPlayerName(playerid,string,sizeof(string)); stringbig[128];
format(stringbig,sizeof(stringbig),"{00FF00}[VIP]{%06x}%s{FFFFFF}(%d): {FFFF00}%s",GetPlayerColor(playerid) >>> 8,string,playerid, text);
SendClientMessageToAll(GetPlayerColor(playerid),st ringbig);
format(stringbig, sizeof(stringbig), "02[%d] 07%s: %s", playerid, string, text);
IRC_GroupSay(gGroupID,IRC_CHANNEL,stringbig);
format(stringbig,MAX_CHATBUBBLE_LENGTH,"Says: %s",text);
SetPlayerChatBubble(playerid,stringbig,MESSAGE_COL OR,35.0,10000);
return 0;
}

Found

D:\SA-MP Servers\TestServer\Gamemodes\TestServer.pwn(71) : warning 201: redefinition of constant/macro (symbol "white1")
D:\SA-MP Servers\TestServer\Gamemodes\TestServer.pwn(2160) : error 017: undefined symbol "stringbig"
D:\SA-MP Servers\TestServer\Gamemodes\TestServer.pwn(2160) : warning 215: expression has no effect
D:\SA-MP Servers\TestServer\Gamemodes\TestServer.pwn(2160) : error 001: expected token: ";", but found "]"
D:\SA-MP Servers\TestServer\Gamemodes\TestServer.pwn(2160) : error 029: invalid expression, assumed zero
D:\SA-MP Servers\TestServer\Gamemodes\TestServer.pwn(2160) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


4 Errors.

REP+ for help :)

Filbert
20/05/2018, 05:46 AM
up up up up up

DelK
20/05/2018, 06:15 AM
new string[128], stringbig[128];
GetPlayerName(playerid,string,sizeof(string));

Or if you prefer to save lines use: new string[128], stringbig[128], GetPlayerName(playerid,string,sizeof(string));

UFF
20/05/2018, 07:57 AM
Use this


new string[24],
stringbig[128];

GetPlayerName(playerid, string,sizeof(string));



instead of

new string[128]; GetPlayerName(playerid,string,sizeof(string)); stringbig[128]; //<<< Line 2160

Filbert
20/05/2018, 09:45 AM
Thanks DelK, REP+ :)