14.12.2016, 03:45
Hello guys.
I have problem with, item name textdraw. When I'm Near Item, TextDraw Is not Showing. I created DEBUG for test, if it was XYZ problem but...
Heres code.
P.S Second one (MEDIKAMENT), Its Working too.
I have problem with, item name textdraw. When I'm Near Item, TextDraw Is not Showing. I created DEBUG for test, if it was XYZ problem but...
Heres code.
PHP код:
stock invsaxeli(playerid)
{
/* for(new a = 0; a < 20000; a++)
{
if(IsPlayerInRangeOfPoint(playerid, 1.8, dInvData[a][ObjPos][0], dInvData[a][ObjPos][1], dInvData[a][ObjPos][2]))
{
format(saxelasstringi, sizeof(saxelasstringi), "%s", InvNames[dInvData[a][ObjData]]);
PlayerTextDrawSetString(playerid, DYNAMICINVP[playerid][0], saxelasstringi);
TextDrawShowForPlayer(playerid, DYNAMICINVG[0]);
PlayerTextDrawShow(playerid, DYNAMICINVP[playerid][0]);
}else gaqrobainvsaxeli(playerid);
}*/
new f = total_vehicles_from_files+1;
new saxelasstringi[1024];
for(new a = 0; a < total_vehicles_from_files; a++)
{
if(IsPlayerInRangeOfPoint(playerid, 1.8, dInvData[a][ObjPos][0], dInvData[a][ObjPos][1], dInvData[a][ObjPos][2]))
{
f = a;
format(saxelasstringi, sizeof(saxelasstringi), "%s", InvNames[dInvData[f][ObjData]]);
PlayerTextDrawSetString(playerid, DYNAMICINVP[playerid][0], saxelasstringi);
TextDrawShowForPlayer(playerid, DYNAMICINVG[0]);
PlayerTextDrawShow(playerid, DYNAMICINVP[playerid][0]);
SendClientMessage(playerid, -1, "DEBUG FOR LOOT");
}else gaqrobainvsaxeli(playerid);
}
if(IsPlayerInRangeOfPoint(playerid,3.5,Medikament[GetMedikID(playerid)][xHos],Medikament[GetMedikID(playerid)][yHos],Medikament[GetMedikID(playerid)][zHos]))
{
PlayerTextDrawSetString(playerid, DYNAMICINVP[playerid][0], "Medikamentis Yuti");
TextDrawShowForPlayer(playerid, DYNAMICINVG[0]);
PlayerTextDrawShow(playerid, DYNAMICINVP[playerid][0]);
}else gaqrobainvsaxeli(playerid);
return 1;
}