SA-MP Forums Archive
EASY Bug need help about it :) - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Server (https://sampforum.blast.hk/forumdisplay.php?fid=6)
+--- Forum: Server Support (https://sampforum.blast.hk/forumdisplay.php?fid=19)
+--- Thread: EASY Bug need help about it :) (/showthread.php?tid=454076)



EASY Bug need help about it :) - Tidzii - 27.07.2013

hello i have a warning in my .pwn I need your Help how to edit it

Quote:

C:\Users\TOSHI\Desktop\GAMEMODE\gamemodes\GAMEMODE .pwn(22861) : warning 202: number of arguments does not match definition

And the Line (22861) here is it!

Quote:

CreateDynamic3DTextLabel("San Andreas Armed Services\n use /SAAS to open your Locker", COLOR_DBLUE, 332.2686,2345.0667,8905.4180); //SAAS Locker




Re: EASY Bug need help about it :) - Jstylezzz - 27.07.2013

Check the syntax of the function
pawn Код:
CreateDynamic3DTextLabel(const text[], color, Float:x, Float:y, Float:z, Float:drawdistance, attachedplayer = INVALID_PLAYER_ID, attachedvehicle = INVALID_VEHICLE_ID, testlos = 0, worldid = -1, interiorid = -1, playerid = -1, Float:distance = 100.0);
The code below, shouldn't give any warnings, as far as I see
pawn Код:
CreateDynamic3DTextLabel("San Andreas Armed Services\n use /SAAS to open your Locker", COLOR_DBLUE, 332.2686,2345.0667,8905.4180,40.0, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, -1, -1, -1, 100.0); //SAAS Locker
By the way, this is a scripting related question, so next time you have something like this, post it in the Scripting Help section


Re: EASY Bug need help about it :) - Konstantinos - 27.07.2013

The rest are not even necessary since they have a default value. You only need the drawdistance after z parameter.