SA-MP Forums Archive
Why does this not create the Textlabel? - 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)
+--- Thread: Why does this not create the Textlabel? (/showthread.php?tid=661588)



Why does this not create the Textlabel? - theralio - 08.12.2018

Hey why does this label dont spawn?

Код:
if(model < 400 && model > 611){
for(new i = 0; i < sizeof(dmPickInfo); i++)
  	{
  	    if(dmPickInfo[i][dmCreated] == 0)
	   	{
	   	    new vehName[128];
	   	    format(vehName,sizeof(vehName),"{FF0000}[{0076FC}%s{FF0000}]",CarName[model - 400]);
            dmPickInfo[i][dmCreated] = 1;
            dmPickInfo[i][dmType] = model;
            dmPickInfo[i][dmX] = x;
            dmPickInfo[i][dmY] = y;
            dmPickInfo[i][dmZ] = z;
            dmPickInfo[i][dmSphere] = CreateDynamicSphere(x, y, z, 2);
			dmPickInfo[i][dmText] = Create3DTextLabel(vehName,-1,x,y,z+0.7,300.0,0,0);
  	    }
  	}



Re: Why does this not create the Textlabel? - theralio - 08.12.2018

ok i found out it just spawns the first pickup