SA-MP Forums Archive
3DText Label - 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: 3DText Label (/showthread.php?tid=367328)



3DText Label - Riddick94 - 09.08.2012

Anyone here see in this code a mistake that sends me an 'Unknown command' message? Every line of the code in command works only this one won't.. why?

pawn Код:
new string[128];
    format(string, sizeof(string), "Pojazd: %s\nModel: %d (VID: %d)\nKoszt: %d\nKolor: %d/%d", VehicleNames[GetVehicleModel(modelid) - 400], modelid, SerwerInfo[sTotalVehCreated], price, colour1, colour2);
    VehicleInfo[cVehicle][vVehDescriptionLabel] = Create3DTextLabel(string, COLOR_NICK, X, Y, Z, 100.0, 0);



Re: 3DText Label - Riddick94 - 09.08.2012

2nd page.

I noticed that something is not good with "VehicleNames". Without this function the format works fine.. but, the question is.. Why?

Anyone?