[Pomoc] Imam nekoliko errora i 1 problem

Započeo Ivkeee, Decembar 03, 2011, 12:13:56 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Sta je ovo  : http://www.zaslike.com/files/ioknyhp215dhi7ru9ga.png

Pomozite za ove errore !!!
C:\Users\TTIN\Desktop\Balkan Gaming\pawno\include\JunkBuster.inc(4014) : warning 201: redefinition of constant/macro (symbol "GivePlayerMoney")
C:\Users\TTIN\Desktop\Balkan Gaming\gamemodes\Balkan-Gaming.pwn(19150) : warning 202: number of arguments does not match definition
C:\Users\TTIN\Desktop\Balkan Gaming\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


3 Warnings.


Evo linije : PlayerInfo[playerid][pInt] = 3;
return 1;
4014 :   }
if (PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3)//National Guard spawn
{

   SetPlayerToTeamColor(playerid);


//---------------Trafika-7------------------------------------------------------
if(strcmp(cmd, "/trafika7", true) == 0 || strcmp(cmd, "/prodavnica7", true) == 0)
{
   if(IsPlayerConnected(playerid))
   {
19150. if (!PlayerToPoint(30, playerid,969.2311,-1133.5181,23.8281,292))
{
SendClientMessage(playerid, COLOR_GRAD2, "   Niste u blizini prodavnice !");
return 1;
}

NAPOMENA : Ovo nije cela komanda .

   }
new mod = 100;
32396 : tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{


I da , zasto mi se posle svake /gmx komande (restart komande) pojavi crno na ekranu i nista se ne desava ? Kako to mogu popraviti ?

if (!PlayerToPoint(30, playerid,969.2311,-1133.5181,23.8281))


Probaj ovako stavi


vlado_plavsic

C:\Users\TTIN\Desktop\Balkan Gaming\pawno\include\JunkBuster.inc(4014) : warning 201: redefinition of constant/macro (symbol "GivePlayerMoney")

JB koristi svoje funkcije,tako da preimenuj GivePlayerMoney u JBC_GivePlayerMoney (Cini mi se da je tako.Proveri pa javi.)

Ok , resio sam ovo  ;D ;D , sada imam problem , problem je u tome sto kada u bazi HITMANA iskoristim komandu za oruzje i nista se ne desi , evo komande , mada ja ne vidim problem .

      Create3DTextLabel("/oprema5",0x00FF00AA, 1073.3069,-344.9001,73.9922,5,0,1);//Hitmen
if(strcmp(cmd,"/oprema5", true) == 0)
{
if(PlayerInfo[playerid][pMember] == 8 || PlayerInfo[playerid][pLeader] == 8)
{
if(!IsPlayerInRangeOfPoint(playerid, 3,1073.1105,-345.5764,73.9922)) 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;
}


I evo i ovo : C:\Users\TTIN\Desktop\Balkan Gaming\pawno\include\JunkBuster.inc(4014) : warning 201: redefinition of constant/macro (symbol "GivePlayerMoney")
C:\Users\TTIN\Desktop\Balkan Gaming\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


2 Warnings.


Ovaj prvi cu sad resiti , nego mi je problem drugi , evo te linije :


new mod = 100;
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{

N0NE

C:\Users\TTIN\Desktop\Balkan Gaming\gamemodes\Balkan-Gaming.pwn(32396) : warning 219: local variable "mod" shadows a variable at a preceding level

to ti znaci da vec imas definisan negdje mod, probaj stavit Mod = 100; i promjeni dalje sto imas u Mod

A zna li iko kako da popravim ovu glupu hitman bazu , kako da stavim da komanda radi , ono u postu gore , editujem jedan mod , sve preveo ali glupava baza nece da radi , ajde proverite u cemu je greska kod te komande /oprema5 ili sta ? Aj pomozite sto pre , jel su mozda koordinate u pitanju ili ?

Ovo sto ti izbaci je do Windows premissiona!
Desni klik na pawno i Run as administrator i problem rijesen
Izrada web aplikacija/desktop aplikacija, kontakt PM.
VPS/Dedi managment 'n' hosting @pm also.