SA-MP Forums Archive
tag mistach and other warning - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: tag mistach and other warning (/showthread.php?tid=186817)



tag mistach and other warning - dark_clown - 30.10.2010

help...
pawn Код:
public OnPlayerConnect(playerid)
{
    new vehicle_id,veh, Text3D:vehicle3Dtext;
    veh = GetPlayerVehicleID(playerid);
    vehicle3Dtext = Create3DTextLabel("%s car",OwnerInfo[veh][owner], 0xFFCC00FF, 0.0, 0.0, 0.0, 50.0, 0, 1);
    vehicle_id = LoadCar(playerid);
    Attach3DTextLabelToVehicle(vehicle3Dtext, vehicle_id, 0.0, 0.0, 2.0);
    return 1;
}
Код:
C:\Users\mike\Desktop\server\filterscripts\car.pwn(318) : warning 213: tag mismatch
C:\Users\mike\Desktop\server\filterscripts\car.pwn(318) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase
2 Warnings.
error line
pawn Код:
vehicle3Dtext = Create3DTextLabel("%s car",OwnerInfo[veh][owner], 0xFFCC00FF, 0.0, 0.0, 0.0, 50.0, 0, 1);



Re: tag mistach and other warning - MadeMan - 30.10.2010

pawn Код:
new string[64];
format(string, sizeof(string), "%s car",OwnerInfo[veh][owner]);
vehicle3Dtext = Create3DTextLabel(string, 0xFFCC00FF, 0.0, 0.0, 0.0, 50.0, 0, 1);