#1

Thanks in advance!

Код:
./includes/textdraws.pwn(2339) : error 010: invalid function or declaration
./includes/textdraws.pwn(2342) : error 010: invalid function or declaration
PHP код:
}
    for(new 
i=0i<MAX_PLAYERSi++)
    {
        
// Fuel and Speedo line 6
        
VehicleIDraw[i] = TextDrawCreate(513.000000386.000000"IIIIIIIIII");
        
TextDrawBackgroundColor(VehicleIDraw[i], 255);
        
TextDrawFont(VehicleIDraw[i], 2);
        
TextDrawLetterSize(VehicleIDraw[i], 0.5000001.500000);
        
TextDrawColor(VehicleIDraw[i], -1);
        
TextDrawSetOutline(VehicleIDraw[i], 0);
        
TextDrawSetProportional(VehicleIDraw[i], 1);
        
TextDrawSetShadow(VehicleIDraw[i], 1);

Reply
#2

Hello!

Can you give us some more code so we can see where you have this code?
Notice: It's a bad idea to create the textdraws like this. It's better to use player-specifies textdraws (CreatePlayerTextDraw).
Reply
#3

This

PHP код:
stock PrintSpeedo(playeridFloat:speed)
{
    new 
ftext[50], stext[50], sspeed floatround(speed);
    switch(
sspeed)
    {
        case 
100 .. 5000format(stext50"  ~w~%d"sspeed);
        case 
10 .. 99format(stext50"   ~w~%d"sspeed);
        case 
.. 9format(stext50"    ~w~%d"sspeed);
    }
    
TextDrawSetString(Text:UsedDraw[playerid], stext);
    switch(
VehicleInfo[GetPlayerVehicleID(playerid)][vFuel])
    {
        case 
100 .. 200ftext="~w~IIIIIIIIII";
        case 
90 .. 99ftext="~w~IIIIIIIII~r~I";
        case 
80 .. 89ftext="~w~IIIIIIII~r~II";
        case 
70 .. 79ftext="~w~IIIIIII~r~III";
        case 
60 .. 69ftext="~w~IIIIII~r~IIII";
        case 
50 .. 59ftext="~w~IIIII~r~IIIII";
        case 
40 .. 49ftext="~w~III~r~IIIIIII";
        case 
30 .. 39ftext="~w~II~r~IIIIIIII";
        case 
10 .. 29ftext="~w~I~r~IIIIIIIII";
        case 
.. 9ftext="~r~IIIIIIIIII";
    }
    
TextDrawSetString(Text:VehicleIDraw[playerid], ftext);
    return 
true;

Reply
#4

Where are these mistakes?
PHP код:
./includes/textdraws.pwn(2339) : error 010invalid function or declaration
./includes/textdraws.pwn(2342) : error 010invalid function or declaration 
Can you give us the both rows?
Reply
#5

PHP код:
}
    for(new 
i=0i<MAX_PLAYERSi++)
    {
        
// Fuel and Speedo line 6
        
VehicleIDraw[i] = TextDrawCreate(513.000000386.000000"IIIIIIIIII");
        
TextDrawBackgroundColor(VehicleIDraw[i], 255);
        
TextDrawFont(VehicleIDraw[i], 2);
        
TextDrawLetterSize(VehicleIDraw[i], 0.5000001.500000);
        
TextDrawColor(VehicleIDraw[i], -1);
        
TextDrawSetOutline(VehicleIDraw[i], 0);
        
TextDrawSetProportional(VehicleIDraw[i], 1);
        
TextDrawSetShadow(VehicleIDraw[i], 1);
    }

Try this If succes +rep for me
Reply
#6

Quote:
Originally Posted by Amunra
Посмотреть сообщение
PHP код:
}
    for(new 
i=0i<MAX_PLAYERSi++)
    {
        
// Fuel and Speedo line 6
        
VehicleIDraw[i] = TextDrawCreate(513.000000386.000000"IIIIIIIIII");
        
TextDrawBackgroundColor(VehicleIDraw[i], 255);
        
TextDrawFont(VehicleIDraw[i], 2);
        
TextDrawLetterSize(VehicleIDraw[i], 0.5000001.500000);
        
TextDrawColor(VehicleIDraw[i], -1);
        
TextDrawSetOutline(VehicleIDraw[i], 0);
        
TextDrawSetProportional(VehicleIDraw[i], 1);
        
TextDrawSetShadow(VehicleIDraw[i], 1);
    }

Try this If succes +rep for me
This wont change nothing, u just looking for reps lol..
Reply
#7

Quote:
Originally Posted by N0FeaR
Посмотреть сообщение
This wont change nothing, u just looking for reps lol..
He added bracket.

Код:
} 
    for(new i=0; i<MAX_PLAYERS; i++) 
    { 
        // Fuel and Speedo line 6 
        VehicleIDraw[i] = TextDrawCreate(513.000000, 386.000000, "IIIIIIIIII"); 
        TextDrawBackgroundColor(VehicleIDraw[i], 255); 
        TextDrawFont(VehicleIDraw[i], 2); 
        TextDrawLetterSize(VehicleIDraw[i], 0.500000, 1.500000); 
        TextDrawColor(VehicleIDraw[i], -1); 
        TextDrawSetOutline(VehicleIDraw[i], 0); 
        TextDrawSetProportional(VehicleIDraw[i], 1); 
        TextDrawSetShadow(VehicleIDraw[i], 1); 
    } 
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)