[Pomoc] Sitni problemcici oko pawna

Započeo Ivkeee, Decembar 23, 2011, 00:31:04 PRE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Dakle , posto mi stalno zatvaraju teme , ni jednom nisam dobio odgovor koji bih mi pomogao u resavanju nekoliko warninga i nekoliko stvari .

Prva stvar je u tome sto imam 1 warning na modu koga se zelim resiti ... evo ga :
C:\Users\TTIN\Desktop\Balkan Gaming 1\gamemodes\Balkan-Gaming.pwn(32396) : warning 219: local variable "mod" shadows a variable at a preceding level
Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase


1 Warning.

a evo i linije 32396 :
    new mod = 100 ;
....


Dakle , drugi problem mi je u tome sto mi uopste ne radi ni order ni /oprema5 komanda u gamemodu ?
Zna li mi neko pomoci ?

Evo komandi
if(strcmp(cmd,"/oprema5", true) == 0)
{
if(PlayerInfo[playerid][pMember] == 8 || PlayerInfo[playerid][pLeader] == 8)
{
if(!IsPlayerInRangeOfPoint(playerid, 3,1073.3617,-344.3696,73.992,5,0,1)) return SendClientMessage(playerid, COLOR_GRAD1, "Nisi na mestu za uzimanje oruzja!");
JB_GivePlayerWeapon(playerid,5,1);
JB_GivePlayerWeapon(playerid,22,70);
JB_GivePlayerWeapon(playerid,25,50);
SendClientMessage(playerid, 0x33CCFFAA, "Uzeo si opremu i platio 100$.");
JB_GivePlayerMoney(playerid, -100);
}
else SendClientMessage(playerid, COLOR_GRAD1, "Nisi clan Hitmena!");
return true;
}

Ovo je /oprema5 , kordinata bi trebala da bude tu negde kod hitman baze .
A evo i order komande :
else if(PlayerToPoint(2.0, i,1073.0619,-344.5148,73.9922))
			{
			    if(OrderReady[i] > 0)
			    {
			        switch (OrderReady[i])
			        {
			            case 1:
			            {
			                SafeGivePlayerWeapon(i, 24, 50); SafeGivePlayerWeapon(i, 29, 500); SafeGivePlayerWeapon(i, 25, 50); SafeGivePlayerWeapon(i, 4, 1);
			                SafeGivePlayerMoney(i, - 5000);
			                SendClientMessage(i, COLOR_WHITE, "* Pokupili ste naruceni paket.");
			            }
			            case 2:
			            {
			                SafeGivePlayerWeapon(i, 24, 50); SafeGivePlayerWeapon(i, 29, 500); SafeGivePlayerWeapon(i, 25, 50); SafeGivePlayerWeapon(i, 31, 500); SafeGivePlayerWeapon(i, 4, 1);
			                SafeGivePlayerMoney(i, - 6000);
			                SendClientMessage(i, COLOR_WHITE, "* Pokupili ste naruceni paket.");
			            }
			            case 3:
			            {
			                SafeGivePlayerWeapon(i, 24, 50); SafeGivePlayerWeapon(i, 29, 500); SafeGivePlayerWeapon(i, 25, 50); SafeGivePlayerWeapon(i, 30, 500); SafeGivePlayerWeapon(i, 4, 1);
			                SafeGivePlayerMoney(i, - 6000);
			                SendClientMessage(i, COLOR_WHITE, "* Pokupili ste naruceni paket.");
			            }
			            case 4:
			            {
			                SafeGivePlayerWeapon(i, 24, 50); SafeGivePlayerWeapon(i, 29, 500); SafeGivePlayerWeapon(i, 25, 50); SafeGivePlayerWeapon(i, 31, 500); SafeGivePlayerWeapon(i, 4, 1); SafeGivePlayerWeapon(i, 34, 20);
			                SafeGivePlayerMoney(i, - 8000);
			                SendClientMessage(i, COLOR_WHITE, "* Pokupili ste naruceni paket.");
			            }
			            case 5:
			            {
			                SafeGivePlayerWeapon(i, 24, 50); SafeGivePlayerWeapon(i, 29, 500); SafeGivePlayerWeapon(i, 25, 50); SafeGivePlayerWeapon(i, 30, 500); SafeGivePlayerWeapon(i, 4, 1); SafeGivePlayerWeapon(i, 34, 20);
			                SafeGivePlayerMoney(i, - 8000);
			                SendClientMessage(i, COLOR_WHITE, "* Pokupili ste naruceni paket.");
			            }
			            case 6:
			            {
			                SafeGivePlayerWeapon(i, 24, 50); SafeGivePlayerWeapon(i, 29, 500); SafeGivePlayerWeapon(i, 25, 50); SafeGivePlayerWeapon(i, 31, 500); SafeGivePlayerWeapon(i, 4, 1); SafeGivePlayerWeapon(i, 34, 20);
							SafeGivePlayerMoney(i, - 8500);
							SendClientMessage(i, COLOR_WHITE, "* Pokupili ste naruceni paket.");
			            }
			            case 7:
			            {
			                SafeGivePlayerWeapon(i, 24, 50); SafeGivePlayerWeapon(i, 29, 500); SafeGivePlayerWeapon(i, 25, 50); SafeGivePlayerWeapon(i, 30, 500); SafeGivePlayerWeapon(i, 4, 1); SafeGivePlayerWeapon(i, 34, 20);
			                SafeGivePlayerMoney(i, - 8500);
			                SendClientMessage(i, COLOR_WHITE, "* Pokupili ste naruceni paket.");
			            }
			        }
			        OrderReady[i] = 0;
			    }


Zna li mi momci neko pomoci ?
Hitno je , koristim neki gamemode odavde sa foruma i dosta sam ga editovao , bio je pun bugova , sada ima samo 4-5 bugova
... I da , zna li mi neko pomoci oko buga , svaki put kada koristim /gmx komandu, posle gmx-a je crn ekran .. nista nece .