SA-MP Forums Archive
Samp Warnings - 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: Samp Warnings (/showthread.php?tid=454495)



Samp Warnings - San1 - 29.07.2013

Well Im Getting Warnings and Idk y
pawn Код:
new Text3D:BBLabel;
pawn Код:
format(string, sizeof(string), ""COL_LIME"Boombox Owner: %s\n"COL_RED"/setboombox\n"COL_WHITE"Type /placeboombox again to destroy it.", GetPlayerName(playerid)); //Number of Arguements
pawn Код:
BBLabel = CreateDynamic3DTextLabel(string, COLOR_WHITE, x, y, z+0.6, 5.0, .worldid = GetPlayerVirtualWorld(playerid), .interiorid = GetPlayerInterior(playerid));//BBLabel
WARNINGS:
Код:
boombox.pwn(128) : warning 202: number of arguments does not match definition
boombox.pwn(128) : warning 202: number of arguments does not match definition
boombox.pwn(129) : warning 204: symbol is assigned a value that is never used: "BBLabel"



Re: Samp Warnings - dEcooR - 29.07.2013

try change to this

Код:
new world = GetPlayerVirtualWorld(playerid);
BBLabel = CreateDynamic3DTextLabel(string, COLOR_WHITE, x, y, z+0.6, 5.0, world);//BBLabel



Re: Samp Warnings - iDealGTA - 29.07.2013

format(string, sizeof(string), "COL_LIME"Boombox Owner: %s\n"COL_RED"/setboombox\n"COL_WHITE"Type /placeboombox again to destroy it.", GetPlayerName(playerid)); //Number of Arguements

I dont think you can put COL_LIME there...... You might have to put like
SendClientMessage(......);

PS - Im Learning i aint pro :P sorry