2021-05-15, 10:56 AM
(2021-05-15, 09:57 AM)Y_Less Wrote:(2021-05-14, 09:59 PM)Radical Wrote:(2021-05-14, 09:01 PM)Y_Less Wrote: The real question is why are you disabling so many warnings?? They are important.
It gets a lot of warnings?when using Zeex compiler.
It's a?resaon why I am?disabled some?warnings?even those important.
Warnings:
239: literal array/string passed to a non-const parameter
214: possibly a "const" array
That means your code is bad.? Hiding issues doesn't solve them, it just means you're ignoring the bugs.? I'm going to delete this topic soon, because you're advocating terrible coding practices.? Like most things, we can't stop you doing them, but we can stop you spreading your terrible practices to other people and can help them learn correctly instead.
let me tell you before deleting this topic.
If I compile the following codes with Zeex compiler:
Code:
SetTimer("OneSecTimer", 1000, 1);
SetPVarInt(playerid, "Var", int_value);
SetPVarFloat(playerid, "varname", float_value);
SetPVarString(playerid, "varname", "string");
ShowPlayerDialog(playerid, dialogid, style, "Caption", "Info", "Button 1", "Button 2");
TextDrawSetString(globaltextid, "string");
PlayerTextDrawSetString(playerid, playertextid, "string");
ApplyAnimation(playerid, "animlib", "animname", 4.1, 0, 0, 0, 0, 0, 0);
SendRconCommand("hostname name");
I get the following warnings:
PHP Code:
warning 239: literal array/string passed to a non-const parameter //SetTimer
warning 239: literal array/string passed to a non-const parameter //SetPVarInt
warning 239: literal array/string passed to a non-const parameter //SetPVarFloat
warning 239: literal array/string passed to a non-const parameter //SetPVarString
warning 239: literal array/string passed to a non-const parameter //SetPVarString
warning 239: literal array/string passed to a non-const parameter //ShowPlayerDialog
warning 239: literal array/string passed to a non-const parameter //ShowPlayerDialog
warning 239: literal array/string passed to a non-const parameter //ShowPlayerDialog
warning 239: literal array/string passed to a non-const parameter //ShowPlayerDialog
warning 239: literal array/string passed to a non-const parameter //TextDrawSetString
warning 239: literal array/string passed to a non-const parameter //PlayerTextDrawSetString
warning 239: literal array/string passed to a non-const parameter //ApplyAnimation
warning 239: literal array/string passed to a non-const parameter //ApplyAnimation
warning 239: literal array/string passed to a non-const parameter //SendRconCommand
Is my code bad?
There was another topic about this - https://burgershot.gg/showthread.php?tid=1556