TextDraw
#1

pawn Код:
new vid = GetPlayerVehicleID(playerid);
TextDrawShowForPlayer(playerid, CarModel);
TextDrawSetString(CarModel, vid);
Problems :
pawn Код:
D:\Games\gamemodes\lscnr.pwn(16462) : error 035: argument type mismatch (argument 2)
D:\Games\gamemodes\lscnr.pwn(16460) : warning 204: symbol is assigned a value that is never used: "vid"
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


1 Error.
Reply
#2

GetPlayerVehicleID return a value not an string try this:
pawn Код:
new vid = GetPlayerVehicleID(playerid);
TextDrawShowForPlayer(playerid, CarModel);
new sttr[70];
format(sttr,70,"%i",vid);
TextDrawSetString(CarModel, sttr);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)