EASY Bug need help about it :)
#1

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

Reply
#2

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
Reply
#3

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


Forum Jump:


Users browsing this thread: 3 Guest(s)