Callsign, LSPD, gamemode. Warnings.
#1

Hi ! I'm using IBP GM and I have some problems.

Код:
C:\Users\SpikeSpigel\Desktop\Aidan's Gamemode\pawno\include\/IBP/Commands/callsign.pwn(13) : warning 213: tag mismatch
C:\Users\SpikeSpigel\Desktop\Aidan's Gamemode\pawno\include\/IBP/Commands/callsign.pwn(14) : warning 213: tag mismatch
C:\Users\SpikeSpigel\Desktop\Aidan's Gamemode\pawno\include\/IBP/Commands/callsign.pwn(19) : warning 213: tag mismatch
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


3 Warnings.
These are my warnings and this is the script:

Код:
COMMAND:callsign(playerid,params[])
{
    new veh = GetPlayerVehicleID(playerid);
    if(PlayerInfo[playerid][pFaction] == 3 || PlayerInfo[playerid][pFaction] == 2)
    {
		if(IsPlayerInAnyVehicle(playerid))
        {
                if(isnull(params)) return SendClientMessage(playerid,COLOR_GREY,"UTILIZARE: /callsign [text]");
                if(!arecallsign[veh])
        {
        new string[128];
        format(string,sizeof(string), "%s",params);
        textcallsign[veh] = Create3DTextLabel(string, 0xFFFFFFFF, 0.0, 0.0, 0.0, 50.0, 0, 1);
        Attach3DTextLabelToVehicle(textcallsign[veh], veh, -0.7, -1.9, -0.3);
        arecallsign[veh] = 1;
                }
                else
                {
                Delete3DTextLabel(textcallsign[veh]);
                arecallsign[veh] = 0;
                return 1;
                        }
                }
                else
                {
        SendClientMessage(playerid,COLOR_GREY,"Nu esti intr-o masina");
        return 1;
                }
        return 1;
                }
    return 1;
}
And these are the warning lines:

Код:
        textcallsign[veh] = Create3DTextLabel(string, 0xFFFFFFFF, 0.0, 0.0, 0.0, 50.0, 0, 1);
- line 13.

Код:
        Attach3DTextLabelToVehicle(textcallsign[veh], veh, -0.7, -1.9, -0.3);
line 14.

Код:
                Delete3DTextLabel(textcallsign[veh]);
line 19 .

These warnings didn't caused me any problems in game and I didn't mind so much to repair that. The problem is .. I tried today and it didn't work. Soo.. I need you guys if is possible to repair it.
Reply
#2

did you use
Код:
new Text3D:textcallsign[veh];
if not then do it
Reply
#3

Make sure your textcallsign variable is defines as Text3D.

For example:
Код:
new Text3D:textcallsign[10];
Reply
#4

Thanks !
It worked with :

Код:
new Text3D:textcallsign[10];
Reply
#5

Quote:
Originally Posted by SpikeSpigel
Посмотреть сообщение
Not working , both ways..

These are my variables.

Код:
//CALLSIGN
new textcallsign[MAX_VEHICLES];
new arecallsign[MAX_VEHICLES];
Change this:
Код:
new textcallsign[MAX_VEHICLES];
To this:
Код:
new Text3D:textcallsign[MAX_VEHICLES];
What do you mean by "Not working , both ways.."? Does it give you errors? Does it give you warnings? "Not working , both ways.." doesn't mean anything. It just means you don't know how to explain a problem to others.
Reply
#6

Quote:
Originally Posted by Shetch
Посмотреть сообщение
Change this:
Код:
new textcallsign[MAX_VEHICLES];
To this:
Код:
new Text3D:textcallsign[MAX_VEHICLES];
What do you mean by "Not working , both ways.."? Does it give you errors? Does it give you warnings? "Not working , both ways.." doesn't mean anything. It just means you don't know how to explain a problem to others.
Thanks for the help. But it worked.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)