if(strcmp(cmd, "/ciordeste", true) == 0) { if(PlayerData[playerid][pMember] + PlayerData[playerid][pLeader] == 5) { if(CiorditTimp[playerid] == 0) { new victima = GetClosestPlayer(playerid); if(GetDistanceBetweenPlayers(playerid,victima) < 5) { if(PlayerData[victima][pMember] + PlayerData[victima][pLeader] != 5) { new banili = random(1000) + 500; new nume1[24], nume2[24]; GetPlayerName(playerid, nume1, sizeof(nume1)); GetPlayerName(victima, nume2, sizeof(nume2)); format(string, sizeof(string), "%s ti-a ciordit {228B22}${FFFFFF}%d din buzunar!", nume1, banili); SendClientMessage(victima, COLOR_WHITE, string); format(string, sizeof(string), "I-ai ciordit lui %s {228B22}${FFFFFF}%d din buzunar!", nume2, banili); SendClientMessage(playerid, COLOR_WHITE, string); GivePlayerCash(playerid, banili); GivePlayerCash(victima, -banili); CiorditTimp[playerid] = 1; SetTimerEx("ciordealatimp", 120000, false, "i", playerid); } else { SendClientMessage(playerid, COLOR_GREY, "Nu iti poti ciordi fratele!"); return 1; } } else { SendClientMessage(playerid, COLOR_GREY, "Nu e nimeni langa tine!"); return 1; } } else { SendClientMessage(playerid, COLOR_GREY, "Trebuie sa astepti 2 minute intre ciordiri!"); return 1; } } else { SendClientMessage(playerid, COLOR_GREY, "Nu faci parte din factiunea Rromi!"); return 1; } return 1; }
if(PlayerData[playerid][pMember] + PlayerData[playerid][pLeader] == 5)
if(PlayerData[victima][pMember] + PlayerData[victima][pLeader] != 5)
if(PlayerData[playerid][pLeader] == 5)
if(PlayerData[victima][pLeader] != 5)
if(PlayerData[playerid][pMember] || PlayerData[playerid][pLeader] == 5)
C:\Users\Alex\Desktop\BloWn GM\gamemodes\Carbon.pwn(55537) : error 029: invalid expression, assumed zero C:\Users\Alex\Desktop\BloWn GM\gamemodes\Carbon.pwn(55537) : warning 215: expression has no effect C:\Users\Alex\Desktop\BloWn GM\gamemodes\Carbon.pwn(55537) : error 001: expected token: ";", but found "if"
if(strcmp(cmd, "/ciordeste", true) == 0) { if(PlayerData[playerid][pMember] ==5) || PlayerData[playerid][pLeader] == 5) { if(CiorditTimp[playerid] == 0) { new victima = GetClosestPlayer(playerid); if(GetDistanceBetweenPlayers(playerid,victima) < 5) { if(PlayerData[victima][pMember] !=5) || if(PlayerData[victima][pLeader] != 5) { new banili = random(1000) + 500; new nume1[24], nume2[24]; GetPlayerName(playerid, nume1, sizeof(nume1)); GetPlayerName(victima, nume2, sizeof(nume2)); format(string, sizeof(string), "%s ti-a ciordit {228B22}${FFFFFF}%d din buzunar!", nume1, banili); SendClientMessage(victima, COLOR_WHITE, string); format(string, sizeof(string), "I-ai ciordit lui %s {228B22}${FFFFFF}%d din buzunar!", nume2, banili); SendClientMessage(playerid, COLOR_WHITE, string); GivePlayerCash(playerid, banili); GivePlayerCash(victima, -banili); CiorditTimp[playerid] = 1; SetTimerEx("ciordealatimp", 120000, false, "i", playerid); } else { SendClientMessage(playerid, COLOR_GREY, "Nu iti poti ciordi fratele!"); return 1; } } else { SendClientMessage(playerid, COLOR_GREY, "Nu e nimeni langa tine!"); return 1; } } else { SendClientMessage(playerid, COLOR_GREY, "Trebuie sa astepti 2 minute intre ciordiri!"); return 1; } } else { SendClientMessage(playerid, COLOR_GREY, "Nu faci parte din factiunea Rromi!"); return 1; } return 1; }
if(strcmp(cmd, "/ciordeste", true) == 0)
{
if(PlayerData[playerid][pMember] == 5) || PlayerData[playerid][pLeader] == 5)
{
if(CiorditTimp[playerid] == 0)
{
new victima = GetClosestPlayer(playerid);
if(GetDistanceBetweenPlayers(playerid,victima) < 5)
{
if(PlayerData[victima][pMember] != 5) || PlayerData[victima][pLeader] != 5)
{
new banili = random(1000) + 500;
new nume1[24], nume2[24];
GetPlayerName(playerid, nume1, sizeof(nume1));
GetPlayerName(victima, nume2, sizeof(nume2));
format(string, sizeof(string), "%s ti-a ciordit {228B22}${FFFFFF}%d din buzunar!", nume1, banili);
SendClientMessage(victima, COLOR_WHITE, string);
format(string, sizeof(string), "I-ai ciordit lui %s {228B22}${FFFFFF}%d din buzunar!", nume2, banili);
SendClientMessage(playerid, COLOR_WHITE, string);
GivePlayerCash(playerid, banili);
GivePlayerCash(victima, -banili);
CiorditTimp[playerid] = 1;
SetTimerEx("ciordealatimp", 120000, false, "i", playerid);
}
else
{
SendClientMessage(playerid, COLOR_GREY, "Nu iti poti ciordi fratele!");
return 1;
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, "Nu e nimeni langa tine!");
return 1;
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, "Trebuie sa astepti 2 minute intre ciordiri!");
return 1;
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, "Nu faci parte din factiunea Rromi!");
return 1;
}
return 1;
}
C:\Users\Alex\Desktop\BloWn GM\gamemodes\Carbon.pwn(55530) : error 029: invalid expression, assumed zero C:\Users\Alex\Desktop\BloWn GM\gamemodes\Carbon.pwn(55530) : warning 215: expression has no effect C:\Users\Alex\Desktop\BloWn GM\gamemodes\Carbon.pwn(55530) : error 001: expected token: ";", but found ")" C:\Users\Alex\Desktop\BloWn GM\gamemodes\Carbon.pwn(55530) : error 029: invalid expression, assumed zero C:\Users\Alex\Desktop\BloWn GM\gamemodes\Carbon.pwn(55530) : fatal error 107: too many error messages on one line
if(strcmp(cmd, "/ciordeste", true) == 0)
{
if(PlayerData[playerid][pMember] == 5) || PlayerData[playerid][pLeader] == 5)
{
if(CiorditTimp[playerid] == 0)
{
new victima = GetClosestPlayer(playerid);
if(GetDistanceBetweenPlayers(playerid,victima) < 5)
{
if(PlayerData[victima][pMember] != 5 || PlayerData[victima][pLeader] != 5)
{
new banili = random(1000) + 500;
new nume1[24], nume2[24];
GetPlayerName(playerid, nume1, sizeof(nume1));
GetPlayerName(victima, nume2, sizeof(nume2));
format(string, sizeof(string), "%s ti-a ciordit {228B22}${FFFFFF}%d din buzunar!", nume1, banili);
SendClientMessage(victima, COLOR_WHITE, string);
format(string, sizeof(string), "I-ai ciordit lui %s {228B22}${FFFFFF}%d din buzunar!", nume2, banili);
SendClientMessage(playerid, COLOR_WHITE, string);
GivePlayerCash(playerid, banili);
GivePlayerCash(victima, -banili);
CiorditTimp[playerid] = 1;
SetTimerEx("ciordealatimp", 120000, false, "i", playerid);
}
else
{
SendClientMessage(playerid, COLOR_GREY, "Nu iti poti ciordi fratele!");
return 1;
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, "Nu e nimeni langa tine!");
return 1;
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, "Trebuie sa astepti 2 minute intre ciordiri!");
return 1;
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, "Nu faci parte din factiunea Rromi!");
return 1;
}
return 1;
}
enum pInfo
{
pMember,
pLeader,
}
new PlayerData[MAX_PLAYERS][pInfo];
new CiorditTimp[MAX_PLAYERS];
CMD:ciordeste(playerid,params[]) {
if(PlayerData[playerid][pMember] == 5 || PlayerData[playerid][pLeader] == 5)
{
if(CiorditTimp[playerid] == 0)
{
new victima = GetClosestPlayer(playerid);
if(GetDistanceBetweenPlayers(playerid,victima) < 5)
{
if(PlayerData[victima][pMember] != 5 || PlayerData[victima][pLeader] != 5)
{
new banili = random(1000) + 500;
new string[128];
new nume1[24], nume2[24];
GetPlayerName(playerid, nume1, sizeof(nume1));
GetPlayerName(victima, nume2, sizeof(nume2));
format(string, sizeof(string), "%s ti-a ciordit {228B22}${FFFFFF}%d din buzunar!", nume1, banili);
SendClientMessage(victima, COLOR_WHITE, string);
format(string, sizeof(string), "I-ai ciordit lui %s {228B22}${FFFFFF}%d din buzunar!", nume2, banili);
SendClientMessage(playerid, COLOR_WHITE, string);
GivePlayerCash(playerid, banili);
GivePlayerCash(victima, -banili);
CiorditTimp[playerid] = 1;
SetTimerEx("ciordealatimp", 120000, false, "i", playerid);
}
else
{
SendClientMessage(playerid, COLOR_GREY, "Nu iti poti ciordi fratele!");
return 1;
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, "Nu e nimeni langa tine!");
return 1;
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, "Trebuie sa astepti 2 minute intre ciordiri!");
return 1;
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, "Nu faci parte din factiunea Rromi!");
return 1;
}
return 1;
}
PHP код:
|
C:\Users\Alex\Desktop\BloWn GM\gamemodes\Carbon.pwn(55535) : warning 219: local variable "PlayerData" shadows a variable at a preceding level C:\Users\Alex\Desktop\BloWn GM\gamemodes\Carbon.pwn(55538) : warning 219: local variable "CiorditTimp" shadows a variable at a preceding level C:\Users\Alex\Desktop\BloWn GM\gamemodes\Carbon.pwn(55540) : error 017: undefined symbol "ciordeste" C:\Users\Alex\Desktop\BloWn GM\gamemodes\Carbon.pwn(55551) : warning 219: local variable "string" shadows a variable at a preceding level C:\Users\Alex\Desktop\BloWn GM\gamemodes\Carbon.pwn(55590) : warning 225: unreachable code C:\Users\Alex\Desktop\BloWn GM\gamemodes\Carbon.pwn(55592) : warning 213: tag mismatch C:\Users\Alex\Desktop\BloWn GM\gamemodes\Carbon.pwn(55592) : error 032: array index out of bounds (variable "PlayerData") C:\Users\Alex\Desktop\BloWn GM\gamemodes\Carbon.pwn(55599) : warning 213: tag mismatch C:\Users\Alex\Desktop\BloWn GM\gamemodes\Carbon.pwn(55599) : error 032: array index out of bounds (variable "PlayerData") C:\Users\Alex\Desktop\BloWn GM\gamemodes\Carbon.pwn(55609) : warning 213: tag mismatch C:\Users\Alex\Desktop\BloWn GM\gamemodes\Carbon.pwn(55609) : error 032: array index out of bounds (variable "PlayerData") C:\Users\Alex\Desktop\BloWn GM\gamemodes\Carbon.pwn(55610) : warning 213: tag mismatch C:\Users\Alex\Desktop\BloWn GM\gamemodes\Carbon.pwn(55610) : error 032: array index out of bounds (variable "PlayerData") C:\Users\Alex\Desktop\BloWn GM\gamemodes\Carbon.pwn(55611) : warning 213: tag mismatch C:\Users\Alex\Desktop\BloWn GM\gamemodes\Carbon.pwn(55611) : error 032: array index out of bounds (variable "PlayerData") C:\Users\Alex\Desktop\BloWn GM\gamemodes\Carbon.pwn(55613) : warning 213: tag mismatch C:\Users\Alex\Desktop\BloWn GM\gamemodes\Carbon.pwn(55613) : error 032: array index out of bounds (variable "PlayerData") C:\Users\Alex\Desktop\BloWn GM\gamemodes\Carbon.pwn(55615) : warning 213: tag mismatch
Код:
C:\Users\Alex\Desktop\BloWn GM\gamemodes\Carbon.pwn(55535) : warning 219: local variable "PlayerData" shadows a variable at a preceding level C:\Users\Alex\Desktop\BloWn GM\gamemodes\Carbon.pwn(55538) : warning 219: local variable "CiorditTimp" shadows a variable at a preceding level C:\Users\Alex\Desktop\BloWn GM\gamemodes\Carbon.pwn(55540) : error 017: undefined symbol "ciordeste" C:\Users\Alex\Desktop\BloWn GM\gamemodes\Carbon.pwn(55551) : warning 219: local variable "string" shadows a variable at a preceding level C:\Users\Alex\Desktop\BloWn GM\gamemodes\Carbon.pwn(55590) : warning 225: unreachable code C:\Users\Alex\Desktop\BloWn GM\gamemodes\Carbon.pwn(55592) : warning 213: tag mismatch C:\Users\Alex\Desktop\BloWn GM\gamemodes\Carbon.pwn(55592) : error 032: array index out of bounds (variable "PlayerData") C:\Users\Alex\Desktop\BloWn GM\gamemodes\Carbon.pwn(55599) : warning 213: tag mismatch C:\Users\Alex\Desktop\BloWn GM\gamemodes\Carbon.pwn(55599) : error 032: array index out of bounds (variable "PlayerData") C:\Users\Alex\Desktop\BloWn GM\gamemodes\Carbon.pwn(55609) : warning 213: tag mismatch C:\Users\Alex\Desktop\BloWn GM\gamemodes\Carbon.pwn(55609) : error 032: array index out of bounds (variable "PlayerData") C:\Users\Alex\Desktop\BloWn GM\gamemodes\Carbon.pwn(55610) : warning 213: tag mismatch C:\Users\Alex\Desktop\BloWn GM\gamemodes\Carbon.pwn(55610) : error 032: array index out of bounds (variable "PlayerData") C:\Users\Alex\Desktop\BloWn GM\gamemodes\Carbon.pwn(55611) : warning 213: tag mismatch C:\Users\Alex\Desktop\BloWn GM\gamemodes\Carbon.pwn(55611) : error 032: array index out of bounds (variable "PlayerData") C:\Users\Alex\Desktop\BloWn GM\gamemodes\Carbon.pwn(55613) : warning 213: tag mismatch C:\Users\Alex\Desktop\BloWn GM\gamemodes\Carbon.pwn(55613) : error 032: array index out of bounds (variable "PlayerData") C:\Users\Alex\Desktop\BloWn GM\gamemodes\Carbon.pwn(55615) : warning 213: tag mismatch |
enum pInfo
{
pMember,
pLeader,
}
new PlayerData[MAX_PLAYERS][pInfo];
new CiorditTimp[MAX_PLAYERS];