Need Help Please
#1

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;
Reply
#2

Errors?
Reply
#3

Quote:
Originally Posted by HardRock
Посмотреть сообщение
Errors?
There is error, or maybe missing bracket "{ } " one of them, i can't find them,
Reply
#4

Show us them please , re-compile your game mode Copy all the current errors here.
Reply
#5

use [/pawn] code and don't make these spaces, we really can't understand what are you scripting
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)