19.10.2013, 00:03
Hey, in my gamemode, i'm getting some errors, i checking the codegenrator , But i can't find where the error is, i only know between which lines, 3 erros, hope you can help me, i really need it done.
~thanks for helping
A.
B.
C.
~thanks for helping
A.
Код:
if(dhstock < dhlimit) { new level = PlayerInfo[playerid][pSmugglerSkill]; new potpayout; if(level >= 0 && level <= 19) { potpayout = 300; } else if(level >= 20 && level <= 39) { potpayout = 350; } else if(level >= 40 && level <= 59) { potpayout = 400; } else if(level >= 60 && level <= 79) { potpayout = 450; } else if(level >= 80) { potpayout = 500; } format(string, sizeof(string), "Stranger Says : Ey' Nigga - Chu' Deserve Dat' Money , Take Dose' $%d.", potpayout); SendClientMessage(playerid, COLOR_WHITE, string); PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]+potpayout; GivePlayerMoney(playerid, potpayout); Crates[playerid] = 0; CP[playerid] = 0; dhstock = dhstock+10;
Код:
chstock = chstock+10; DisablePlayerCheckpoint(playerid); PlayerInfo[playerid][pSmugglerSkill] ++; if(PlayerInfo[playerid][pSmugglerSkill] == 20) { SendClientMessage(playerid, COLOR_WHITE, "Stranger Says : Ey' Nigga - Chu' a Good Smuggle' - Chu' getting Mor' Money Nex' Time"); } else if(PlayerInfo[playerid][pSmugglerSkill] == 40) { SendClientMessage(playerid, COLOR_WHITE, "Stranger Says : Ey' Nigga - Chu' a Good Smuggle' - Chu' getting Mor' Money Nex' Time"); } else if(PlayerInfo[playerid][pSmugglerSkill] == 60) { SendClientMessage(playerid, COLOR_WHITE, "Stranger Says : Ey' Nigga - Chu' a Good Smuggle' - Chu' getting Mor' Money Nex' Time"); } else if(PlayerInfo[playerid][pSmugglerSkill] == 80) { SendClientMessage(playerid, COLOR_WHITE, "Stranger Says : Ey' Nigga - Chu' a Good Smuggle' - Chu' getting Mor' Money Nex' Time"); } } else { SendClientMessage(playerid, COLOR_WHITE,"Stranger Says : Sorr' Nigga - Da Depo' is Full , See Chu' late'"); } } else { SendClientMessage(playerid, COLOR_WHITE,"Stranger Says : Chu' Ain' Caryyin' any Drug Crate'"); } } else if(CP[playerid] == 6 && IsPlayerInRangeOfPoint(playerid,5.0,2549.7617,-2221.3811,13.5469)) //seed smuggling to Drug Depot //isplayerinrangeofpoint check is for a huge exploit fix ~zav - 6/15/010 { if(Crates[playerid] > 0) { if(dhstock < dhlimit)
Код:
if(chstock < chlimit) { new level = PlayerInfo[playerid][pSmugglerSkill]; new crackpayout; if(level >= 0 && level <= 19) { crackpayout = 300; } else if(level >= 20 && level <= 39) { crackpayout = 359; } else if(level >= 40 && level <= 59) { crackpayout = 400; } else if(level >= 60 && level <= 79) { crackpayout = 450; } else if(level >= 80) { crackpayout = 500; } format(string, sizeof(string), "Stranger Says : Ey' Nigga - Chu' Deserve Dat' Money , Take Dose' $%d", crackpayout); SendClientMessage(playerid, COLOR_WHITE, string); PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]+crackpayout; GivePlayerMoney(playerid, crackpayout); Crates[playerid] = 0; CP[playerid] = 0; chstock = chstock+10;