FamillyAlliance (/fa) errors.
#1

Well , I do that command.
Quote:

if(strcmp(cmd, "/familyaliance", true) == 0 || strcmp(cmd, "/fa", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pMuted] == 1)
{
SendClientMessage(playerid, TEAM_CYAN_COLOR, " You can't speak, you have been silenced !");
return 1;
}
if(PlayerTied[playerid] > 0)
{
SendClientMessage(playerid, COLOR_GREY, " you can`t use this command because you are tied!");
return 1;
}
/*if(ntimer[playerid] > 1)
{
SendClientMessage(playerid, COLOR_GREY, "You must wait 10 seconds for every message");
return 1;
}*/
GetPlayerName(playerid, sendername, sizeof(sendername));
new length = strlen(cmdtext);
while ((idx < length) && (cmdtext[idx] <= ' '))
{
idx++;
}
new offset = idx;
new result[64];
while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
{
result[idx - offset] = cmdtext[idx];
idx++;
}
result[idx - offset] = EOS;
result[0] = toupper(result[0]);
if(!strlen(result))
{
SendClientMessage(playerid, COLOR_GRAD2, "{00A1FF}USAGE{FFFFFF}: /familyaliance [Alliance Chat]");
return 1;
}
//ntimer[playerid] = 10;
if(PlayerInfo[playerid][pMember] == 14 || PlayerInfo[playerid][pLeader] == 14)
{
if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "** {006600}[Alliance-Grove]{32CBFF} {FFFFFF} Rank 6 {006600}%s:{32CBFF} {FFFFFF}%s. **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "** {006600}[Alliance-Grove]{32CBFF} Rank 5 {006600}%s:{32CBFF} %s. **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "** {006600}[Alliance-Grove]{32CBFF} Rank 4 {006600}%s:{32CBFF} %s. **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "** {006600}[Alliance-Grove]{32CBFF} Rank 3 {006600}%s:{32CBFF} %s. **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "** {006600}[Alliance-Grove]{32CBFF} Rank 2 {006600}%s:{32CBFF} %s. **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "** {006600}[Alliance-Grove]{32CBFF} Rank 1 {006600}%s:{32CBFF} %s. **", sendername, result); }
else
{
format(string, sizeof(string), "** {006600}[Alliance-Grove]{32CBFF} Rank 1 {006600}%s:{32CBFF} %s. **", sendername, result);
else
{
//SendRadioMessage(5, 0x33CCFFAA, string);vechi
SendRadioMessage(14, 0x33CCFFAA, string);
SendRadioMessage(16, 0x33CCFFAA, string);
//printf("%s", string);//aici
return 1;
}
else if(PlayerInfo[playerid][pMember] == 16 || PlayerInfo[playerid][pLeader] == 16)
{
if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "** {943CAF}[Alliance-Ballas]{32CBFF} {FFFFFF}Rank 6 {943CAF}%s:{32CBFF} {FFFFFF}%s. **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "** {943CAF}[Alliance-Ballas]{32CBFF} Rank 5 {943CAF}%s:{32CBFF} %s. **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "** {943CAF}[Alliance-Ballas]{32CBFF} Rank 4 {943CAF}%s:{32CBFF} %s. **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "** {943CAF}[Alliance-Ballas]{32CBFF} Rank 3 {943CAF}%s:{32CBFF} %s. **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "** {943CAF}[Alliance-Ballas]{32CBFF} Rank 2 {943CAF}%s:{32CBFF} %s. **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "** {943CAF}[Alliance-Ballas]{32CBFF} Rank 1 {943CAF}%s:{32CBFF} %s. **", sendername, result); }
else
{
format(string, sizeof(string), "** {943CAF}[Alliance-Ballas]{32CBFF} Rank 1 {943CAF}%s:{32CBFF} %s. **", sendername, result);
}
SendRadioMessage(16, 0x33CCFFAA, string);
SendRadioMessage(14, 0x33CCFFAA, string);
//printf("%s", string);//aici
return 1;
}
else if(PlayerInfo[playerid][pMember] == 15 || PlayerInfo[playerid][pLeader] == 15)
{
if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "** {B5C31F}[Alliance-El Coronos]{32CBFF} {FFFFFF}Rank 6 {B5C31F}%s:{32CBFF} {FFFFFF}%s. **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "** {B5C31F}[Alliance-El Coronos]{32CBFF} Rank 5 {B5C31F}%s:{32CBFF} %s. **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "** {B5C31F}[Alliance-El Coronos]{32CBFF} Rank 4 {B5C31F}%s:{32CBFF} %s. **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "** {B5C31F}[Alliance-El Coronos]{32CBFF} Rank 3 {B5C31F}%s:{32CBFF} %s. **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "** {B5C31F}[Alliance-El Coronos]{32CBFF} Rank 2 {B5C31F}%s:{32CBFF} %s. **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "** {B5C31F}[Alliance-El Coronos]{32CBFF} Rank 1 {B5C31F}%s:{32CBFF} %s. **", sendername, result); }
else
{
format(string, sizeof(string), "** {B5C31F}[Alliance-El Coronos]{32CBFF} Rank 1 {B5C31F}%s:{32CBFF} %s. **", sendername, result);
}
SendRadioMessage(15, 0x33CCFFAA, string);
SendRadioMessage(17, 0x33CCFFAA, string);
SendRadioMessage(18, 0x33CCFFAA, string);
//printf("%s", string);//aici
return 1;
}
else if(PlayerInfo[playerid][pMember] == 17 || PlayerInfo[playerid][pLeader] == 17)
{
if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "** {00DEF6}[Alliance-The Rifa Gang]{32CBFF} {FFFFFF}Rank 6 {00DEF6}%s:{32CBFF} {FFFFFF}%s. **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "** {00DEF6}[Alliance-The Rifa Gang]{32CBFF} Rank 5 {00DEF6}%s:{32CBFF} %s. **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "** {00DEF6}[Alliance-The Rifa Gang]{32CBFF} Rank 4 {00DEF6}%s:{32CBFF} %s. **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "** {00DEF6}[Alliance-The Rifa Gang]{32CBFF} Rank 3 {00DEF6}%s:{32CBFF} %s. **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "** {00DEF6}[Alliance-The Rifa Gang]{32CBFF} Rank 2 {00DEF6}%s:{32CBFF} %s. **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "** {00DEF6}[Alliance-The Rifa Gang]{32CBFF} Rank 1 {00DEF6}%s:{32CBFF} %s. **", sendername, result); }
else
{
format(string, sizeof(string), "** {00DEF6}[Alliance-The Rifa Gang]{32CBFF} Rank 1 {00DEF6}%s:{32CBFF} %s. **", sendername, result);
}
SendRadioMessage(17, 0x33CCFFAA, string);
SendRadioMessage(15, 0x33CCFFAA, string);
SendRadioMessage(18, 0x33CCFFAA, string);
//printf("%s", string); //aici
return 1;
}
else if(PlayerInfo[playerid][pMember] == 18 || PlayerInfo[playerid][pLeader] == 1
{
if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "** {006600}[Alliance-Paterno]{32CBFF} {FFFFFF}Rank 6 {006600}%s:{32CBFF} {FFFFFF}%s. **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "** {006600}[Alliance-Paterno]{32CBFF} Rank 5 {006600}%s:{32CBFF} %s. **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "** {006600}[Alliance-Paterno]{32CBFF} Rank 4 {006600}%s:{32CBFF} %s. **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "** {006600}[Alliance-Paterno]{32CBFF} Rank 3 {006600}%s:{32CBFF} %s. **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "** {006600}[Alliance-Paterno]{32CBFF} Rank 2 {006600}%s:{32CBFF} %s. **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "** {006600}[Alliance-Paterno]{32CBFF} Rank 1 {006600}%s:{32CBFF} %s. **", sendername, result); }
else
{
format(string, sizeof(string), "** {006600}[Alliance-Paterno]{32CBFF} Rank 1 {006600}%s:{32CBFF} %s. **", sendername, result);
}
SendRadioMessage(18, 0x33CCFFAA, string);
SendRadioMessage(15, 0x33CCFFAA, string);
SendRadioMessage(17, 0x33CCFFAA, string);
//printf("%s", string);//aici
return 1;
}
else
{
SendClientMessage(playerid, COLOR_GRAD2, " You are not part of a Gang/Mafia !");
return 1;
}
}
return 1;
}

And now I have these errors :
Quote:

C:\Users\gamemodes\4Games.pwn(3231) : error 017: undefined symbol "NameTimer"
C:\Users\gamemodes\4Games.pwn(3385) : error 004: function "ServerGivePlayerWeapons" is not implemented
C:\Users\gamemodes\4Games.pwn(3385) : error 004: function "ServerGivePlayerWeapons" is not implemented
C:\Users\gamemodes\4Games.pwn(3385) : error 004: function "ServerGivePlayerWeapons" is not implemented
C:\Users\gamemodes\4Games.pwn(3385) : fatal error 107: too many error messages on one line

Please help me to resolve that.
Reply
#2

Sorry for double post , can someone help me please?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)