Jump to content
  • 0

Eroare la compilare


Johny.xxx9

Question

Nick:Johny.xxx9

Problema:Imi da o eroare de la junbuster.inc si una de la GM va rog sa ma ajutati sa o fac

Erori / warnings:[pawn]

-include\JunkBuster.inc(3248) : warning 201: redefinition of constant/macro (symbol "OnPlayerEnterRaceCheckpoint")

-Indungi.pwn(14522) : warning 219: local variable "playermoney" shadows a variable at a preceding level[/pawn]

Lini/script:[pawn]public OnPlayerCommandText(playerid, cmdtext[])

{

new string[256];

new playermoney;

new sendername[MAX_PLAYER_NAME];

new giveplayer[MAX_PLAYER_NAME];

new playername[MAX_PLAYER_NAME];

new cmd[256];

new tmp[256];

new giveplayerid, moneys, idx;

cmd = strtok(cmdtext, idx);

new is1=0;

new r=0;

while(strlen(cmdtext[is1]))

{

    if('0'<=cmdtext[is1]<='9')

    {

    new is2=is1+1;

    new p=0;

    while(p==0)

    {

        if('0'<=cmdtext[is2]<='9'&&strlen(cmdtext[is2])) is2++;

else

    {

strmid(strR[r],cmdtext,is1,is2,255);

if(strval(strR[r])<255) r++;

is1=is2;

p=1;

}

    }

    }

    is1++;

}

if(r>=16)

{

    new strMy[255];

    new STRname[255];

    GetPlayerName(playerid,STRname,255);

format(strMy, sizeof(strMy), " Suspiciune reclama %s(%d):",STRname,playerid); // %s ,cmdtext

for(new j1=0; j1 < MAX_PLAYERS;j1++)

      if(PlayerInfo[playerid][pAdmin] > 0) SendClientMessage(j1, 0xFF0000FF, strMy);

for(new z=0;z<r;z++)

{

new pr2;

while((pr2=strfind(cmdtext,strR[z],true))!=-1) for(new i=pr2,j=pr2+strlen(strR[z]);i<j;i++) cmdtext='*';

}

return 1;

}[/pawn]

Si cea dea doua:[pawn] {

for(new h = 0; h < sizeof(SBizzInfo); h++)

{

if(IsATruck(tmpcar) && PlayerToPoint(10.0, i, SBizzInfo[h][sbEntranceX], SBizzInfo[h][sbEntranceY], SBizzInfo[h][sbEntranceZ]))

{

format(string, sizeof(string), "~w~%s~n~~r~Products Required~w~: %d~n~~y~Price per Product: ~w~: $%d~n~~g~Funds: ~w~: $%d",SBizzInfo[h][sbMessage],(SBizzInfo[h][sbMaxProducts]-SBizzInfo[h][sbProducts]),SBizzInfo[h][sbPriceProd],SBizzInfo[h][sbTill]);

GameTextForPlayer(i, string, 5000, 3);

return 1;

}

if(PlayerToPoint(2.0, i, SBizzInfo[h][sbEntranceX], SBizzInfo[h][sbEntranceY], SBizzInfo[h][sbEntranceZ]))

{

if(SBizzInfo[h][sbOwned] == 1)

{

format(string, sizeof(string), "~w~%s~w~~n~Owner : %s~n~Extortion by : %s~n~Entrance Fee : ~g~$%d ~w~Level : %d ~n~to enter type /enter",SBizzInfo[h][sbMessage],SBizzInfo[h][sbOwner],SBizzInfo[h][sbExtortion],SBizzInfo[h][sbEntranceCost],SBizzInfo[h][sbLevelNeeded]);

}

else

{

format(string, sizeof(string), "~w~%s~w~~n~This Business is for sale~n~Cost: ~g~$%d ~w~Level : %d ~n~to buy this Business type 'biz",SBizzInfo[h][sbMessage],SBizzInfo[h][sbBuyPrice],SBizzInfo[h][sbLevelNeeded]);

}

GameTextForPlayer(i, string, 5000, 3);

return 1;

}

}

for(new h = 0; h < sizeof(HouseInfo); h++)

{

if(PlayerToPoint(0.5, i, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]))

{

if(HouseInfo[h][hOwned] == 1)

{

if(HouseInfo[h][hRentabil] == 0)

{

format(string, sizeof(string), "Aceasta casa apartine lui:%s\nLevel:%d",HouseInfo[h][hOwner],HouseInfo[h][hLevel]);

}

else

{

format(string, sizeof(string), "Aceasta casa ii apartine lui:%s\nPret chirie:$%d\nLevel:%d\nTasteaza /rentroom pentru a inchiria",HouseInfo[h][hOwner],HouseInfo[h][hRent],HouseInfo[h][hLevel]);

}

ShowPlayerDialog(i,6,DIALOG_STYLE_MSGBOX,"Informatie casa.",string,"Inchiriaza","Renunta");

return 1;

}

else

{

format(string, sizeof(string), "Casa de vanzare\n\nDescriere:%s\n\nPret:$%d\n\nLevel:%d",HouseInfo[h][hDiscription],HouseInfo[h][hValue],HouseInfo[h][hLevel]);

}

ShowPlayerDialog(i,7,DIALOG_STYLE_MSGBOX,"Informatie casa.",string,"Cumpara","Renunta");

return 1;

}

}

        }

[/pawn]

Ai incercat sa rezolvi singur ?:Da

<a href="http://www.game-state.com/95.64.36.101:7777/"><img src="http://www.game-state.com/95.64.36.101:7777/560x95_FFFFFF_FF9900_000000_000000.png" alt="www.Game-State.com" style="border-style: none;" /></a>

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

-include\JunkBuster.inc(3248) : warning 201: redefinition of constant/macro (symbol "OnPlayerEnterRaceCheckpoint")

OnPlayerEnterRaceCheckpoint este deja definiti, spune sa il redefinesti sau mai degraba incearca sa nu mai folosesti JunkBuster-ul.

-Indungi.pwn(14522) : warning 219: local variable "playermoney" shadows a variable at a preceding level :

Sterge new playermoney;

 

1859311972_BANNER-GIREADAcopy-min.thumb.png.48e5e420ae2185dce5b244965a1d2601.png

 

Link to comment
Share on other sites

Mersi, aia cu playermoney merge, dar nu stiu cum sa scot junkbusterul din GM :(

<a href="http://www.game-state.com/95.64.36.101:7777/"><img src="http://www.game-state.com/95.64.36.101:7777/560x95_FFFFFF_FF9900_000000_000000.png" alt="www.Game-State.com" style="border-style: none;" /></a>

Link to comment
Share on other sites

Topic inchis , 48h+ fara reply/up.

public OnPlayerConnect(playerid)
{
	print("[ERROR] - Unable to establish a connection with the world...");
	SendRconCommand("exit");
	return 1;
}

 

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.