Scripting issue (easy to fix) -
manishmulchandani01 - 20.01.2016
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.
Re: Scripting issue (easy to fix) -
FreAkeD - 20.01.2016
Can you show which part of the code is showing the warnings?
Re: Scripting issue (easy to fix) -
KillerStrike23 - 20.01.2016
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;
}
Re: Scripting issue (easy to fix) -
saffierr - 20.01.2016
We still don't know what part of the code has the warnings..
Re: Scripting issue (easy to fix) -
RoboN1X - 20.01.2016
Line 40208 change to:
Код:
new Float:fX,Float:fY,Float:fZ;
You typed "float" instead of "Float", it's case sensitive.
Re: Scripting issue (easy to fix) -
AbyssMorgan - 20.01.2016
show GetLocation
Re: Scripting issue (easy to fix) -
manishmulchandani01 - 20.01.2016
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.
Re: Scripting issue (easy to fix) -
manishmulchandani01 - 20.01.2016
Thanks everyone else too.