08.02.2011, 10:06
Im trying to turn this: vehicle3Dtext = Create3DTextLabel("Example Text", 0xFF0000AA, 0.0, 0.0, 0.0, 50.0, 0, 1 ); into a string and im having trouble plz help
heres the error:
pawn Код:
new vehicle_id, Text3D:vehicle3Dtext;
new OwnerName[MAX_PLAYER_NAME];
new str[128];
GetPlayerName(playerid,OwnerName,sizeof(OwnerName));
vehicle3Dtext = format(str,128,"%s", OwnerName);//Line 376
Create3DTextLabel(WHITE,0.0, 0.0, 0.0, 50.0, 0, 1,str);//Line 377
vehicle_id = VehList[playerid][AutoID];
Attach3DTextLabelToVehicle(vehicle3Dtext, vehicle_id, 0.0, 0.0, 2.0);
Код:
C:\Users\Geez\Desktop\PawnWork\filterscripts\CuntOfAScript.pwn(376) : warning 213: tag mismatch C:\Users\Geez\Desktop\PawnWork\filterscripts\CuntOfAScript.pwn(377) : error 035: argument type mismatch (argument 1) Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error.