Scripting issue (easy to fix)
#1

Hello there, I'm having a trouble getting couple of warnings in my track car command.

Here is my command code: http://pastebin.com/2kpBUYRW

Here are warnings:

(40209) : warning 213: tag mismatch
(40209) : warning 213: tag mismatch
(40209) : warning 213: tag mismatch
(40211) : warning 213: tag mismatch
(40211) : warning 213: tag mismatch
(40211) : warning 213: tag mismatch
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


6 Warnings.
Reply
#2

Can you show which part of the code is showing the warnings?
Reply
#3

pawn Код:
CMD:trackcar(playerid, params[])
{
    new str[500];
    new count=0;
    for (new i = 0; i < MAX_DYNAMIC_CARS; i++)
    {
        if(Car_IsOwner(playerid, i))
        {
            new float:fX,float:fY,float:fZ;
            GetVehiclePos(CarData[i][carVehicle], fX, fY, fZ);
            new str2[128];
            format(str2,sizeof(str2)," %s | Location: %d %d %d\n", ReturnVehicleModelName(CarData[i][carModel]),fX,FY,FZ);
            strcat(str, str2);
            count++;
        }
    }
    if(count==0)
    {
        SendClientMessage(playerid, COLOR_WHITE, "You don't own any vehicles.");
    }
    else
    {
        ShowPlayerDialog(playerid, 557,DIALOG_STYLE_LIST,"Select a car to get it's location",str,"Track","Exit");
    }
    return 1;
}
Reply
#4

We still don't know what part of the code has the warnings..
Reply
#5

Line 40208 change to:
Код:
new Float:fX,Float:fY,Float:fZ;
You typed "float" instead of "Float", it's case sensitive.
Reply
#6

show GetLocation
Reply
#7

Quote:
Originally Posted by RoboN1X
Посмотреть сообщение
Line 40208 change to:
Код:
new Float:fX,Float:fY,Float:fZ;
You typed "float" instead of "Float", it's case sensitive.
This actually worked.
Reply
#8

Thanks everyone else too.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)