How to fix a textdraw bug
#1

Thanks i fixed the warnings, but now i have a problem that i have 2 textdraw that are confused, the textdraw i have as a filterscript appears at the place of this textdraw and it starts to flash...

What can i do?
Reply
#2

150
xstreamer plugin: 4.000.000
Reply
#3

Quote:
Originally Posted by harrold
150
Thanks
Reply
#4

Quote:
Originally Posted by plɹoʍ ʎʇɹǝqıl
Quote:
Originally Posted by harrold
150
Thanks
https://sampwiki.blast.hk/wiki/Limits

ohai
Reply
#5

How to fix these Warnings?

pawn Код:
warning 219: local variable "x" shadows a variable at a preceding level
warning 219: local variable "y" shadows a variable at a preceding level
warning 219: local variable "z" shadows a variable at a preceding level
warning 219: local variable "string" shadows a variable at a preceding level
Here are the lines that give errors
pawn Код:
new Float:x,Float:y,Float:z;
new Float:distance,value,string[256];
Here is how its included in the script

pawn Код:
public UpdateSpeed()
{
    new Float:x,Float:y,Float:z;
    new Float:distance,value,string[256];
    for(new i=0; i<MAX_PLAYERS; i++)
    {
        if(IsPlayerConnected(i) && IsPlayerInAnyVehicle(i))
        {
            TextDrawDestroy(Speedo[i]);
        }
    }
Thanks
Reply
#6

Quote:
Originally Posted by plɹoʍ ʎʇɹǝqıl
How to fix these Warnings?

pawn Код:
warning 219: local variable "x" shadows a variable at a preceding level
warning 219: local variable "y" shadows a variable at a preceding level
warning 219: local variable "z" shadows a variable at a preceding level
warning 219: local variable "string" shadows a variable at a preceding level
Here are the lines that give errors
pawn Код:
new Float:x,Float:y,Float:z;
new Float:distance,value,string[256];
Here is how its included in the script

pawn Код:
public UpdateSpeed()
{
    new Float:x,Float:y,Float:z;
    new Float:distance,value,string[256];
    for(new i=0; i<MAX_PLAYERS; i++)
    {
        if(IsPlayerConnected(i) && IsPlayerInAnyVehicle(i))
        {
            TextDrawDestroy(Speedo[i]);
        }
    }
Thanks
You have new Float,Float:y,Float:z;
on the top of your script already
Delete that
Reply
#7

Thanks i fixed the warnings, but now i have a problem that i have 2 textdraw that are confused, the textdraw i have as a filterscript appears at the place of this textdraw and it starts to flash...

What can i do?
Reply
#8

Quote:
Originally Posted by plɹoʍ ʎʇɹǝqıl
Thanks i fixed the warnings, but now i have a problem that i have 2 textdraw that are confused, the textdraw i have as a filterscript appears at the place of this textdraw and it starts to flash...

What can i do?
put both textdraws in the FS or GM
Reply
#9

You use a speedo?
Reply
#10

Quote:
Originally Posted by harrold
You use a speedo?
Yes, but the speedo is built in GM
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)