compiler icon indicating copy to clipboard operation
compiler copied to clipboard

Bug

Open AlexDrift opened this issue 4 years ago • 13 comments

EXAMPLE DEMO new test[MAX_PLAYERS]; public OnPlayerClickPlayer(playerid, clickedplayerid, source) { test[playerid] = clickedplayerid; return 1; }

Demo example Ban(test[playerid]) ; new test2[MAX_PLAYERS]; test2[test[playerid]]; and if(............) Here are examples of when I use it, and what doesn't happen.

AlexDrift avatar Apr 24 '20 21:04 AlexDrift

On this complained to my colleague, he, too, is used by your compiler. Sorry, I'm writing from my mobile

AlexDrift avatar Apr 24 '20 21:04 AlexDrift

What?

Y-Less avatar Apr 24 '20 22:04 Y-Less

When I use this in your compiler 3.10.10 application it doesn't work on the server

AlexDrift avatar Apr 25 '20 02:04 AlexDrift

I write the ID of the player I clicked in the Tab to the array. After I try to issue a ban or use an array in the array on it through the if check. I compile and it doesn't work on the server, but the player ID is written to the array correctly and is not cleared.

AlexDrift avatar Apr 25 '20 02:04 AlexDrift

Yes. We need a working example of code. Code that works in the old compiler but doesn't work on this compiler.

Y-Less avatar Apr 25 '20 11:04 Y-Less

OK, I'll give you the code later

AlexDrift avatar Apr 25 '20 14:04 AlexDrift

@AlexDrift any news?

YashasSamaga avatar May 31 '20 14:05 YashasSamaga

This issue has been automatically marked as stale because it has not had recent activity.

stale[bot] avatar Aug 29 '20 15:08 stale[bot]

EXAMPLE DEMO new test[MAX_PLAYERS]; public OnPlayerClickPlayer(playerid, clickedplayerid, source) { test[playerid] = clickedplayerid; return 1; }

Demo example Ban(test[playerid]) ; new test2[MAX_PLAYERS]; test2[test[playerid]]; and if(............) Here are examples of when I use it, and what doesn't happen.

this is not a clearly example, you could put the full code on pastebin or somewhere

skuzzis avatar Oct 03 '20 17:10 skuzzis

else if(dialogid == TEST_DIALOG+1) { if(response) { duelmoney = strval(inputtext); if(duelmoney < 10000 || duelmoney > 500000) return SendClientMessage(playerid, -1, !""MODE_NAME"Òû ââ¸ë íå âåðíóþ ñóììó ñòàâêè. Èñïîëüçóé ñóììó îò 10000$ äî 500000$"); if(duelmoney > GetPlayerCash(playerid)) return SendClientMessage(playerid, -1, !""MODE_NAME"Òåáå íå õâàòàåò íà ñòàâêó. Óêàæè äðóãóþ ñóììó!"); if(duelmoney > GetPlayerCash(GetPVarInt(playerid,"ClickPlayer"))) return SendClientMessage(playerid, -1, !""MODE_NAME"Òâîåìó ïðîòèâíèêó íå õâàòàåò íà ñòàâêó. Óêàæè äðóãóþ ñóììó!"); if(dragexits[GetPVarInt(playerid,"ClickPlayer")] == 1) return SendClientMessage(playerid, -1, !""MODE_NAME"Òâîé ïðîòèâíèê â äàííûé ìîìåíò â Äðàã äóýëå!"); if(dragexits[playerid] == 1) return SendClientMessage(playerid, -1, !""MODE_NAME"Âû â äàííûé ìîìåíò â Äðàã äóýëå!"); ShowPlayerDialog(playerid, 3988, DIALOG_STYLE_LIST, !"Âûáåðèòå îðóæèå", !"Äèãë\nÄèãë è Øîò\nØîò\nÄèãë è Ñíàéïåðêà\nÌ4\nÀÊ-47", !"Âûáðàòü", !"Îòìåíà"); } }

AlexDrift avatar Oct 26 '20 21:10 AlexDrift

the dialog ID is correct, I call the dialog, enter absolutely any number, and nothing happens. this is noticed with the transition to your compiler

AlexDrift avatar Oct 26 '20 21:10 AlexDrift

That's still not a repro.

We need some code to copy and paste. Put in a script and compile. That, as is, won't compile.

Y-Less avatar Oct 26 '20 21:10 Y-Less

This issue has been automatically marked as stale because it has not had recent activity.

stale[bot] avatar Jun 22 '21 17:06 stale[bot]