Need Help Please - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Need Help Please (
/showthread.php?tid=470593)
Need Help Please -
Rose69 - 19.10.2013
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.
Код:
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;
B.
Код:
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)
C.
Код:
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;
Re: Need Help Please -
HardRock - 19.10.2013
Errors?
Re: Need Help Please -
Rose69 - 19.10.2013
Quote:
Originally Posted by HardRock
Errors?
|
There is error, or maybe missing bracket "{ } " one of them, i can't find them,
Re: Need Help Please -
SilentSoul - 19.10.2013
Show us them please , re-compile your game mode Copy all the current errors here.
Re: Need Help Please -
AnonScripter - 19.10.2013
use [/pawn] code and don't make these spaces, we really can't understand what are you scripting