SA-MP Forums Archive
Warning help - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Warning help (/showthread.php?tid=197178)



Warning help - Haydz - 08.12.2010

Код:
              new Float:x, Float:y, Float:z;
              GetPlayerPos(playerid, x, y, z);
              PlayerObject[playerid] = CreateObject(862,x, y, z-1, 0.0, 0.0, 96.0);
(87)        PlantedCorn[playerid] = Create3DTextLabel("Planted Corn",COLOR_LIGHTBLUE,x,y,z,20.0,0);

(108)	     Delete3DTextLabel(playerid, Text:PlantedCorn[playerid]);

(126)		Update3DTextLabelText(PlantedCorn[playerid], COLOR_LIGHTBLUE, "Fully Grown");
Код:
C:\Documents and Settings\Hayden Bruin\Desktop\Pilot Heaven\filterscripts\drugs.pwn(87) : warning 213: tag mismatch
C:\Documents and Settings\Hayden Bruin\Desktop\Pilot Heaven\filterscripts\drugs.pwn(108) : warning 213: tag mismatch
C:\Documents and Settings\Hayden Bruin\Desktop\Pilot Heaven\filterscripts\drugs.pwn(108) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Hayden Bruin\Desktop\Pilot Heaven\filterscripts\drugs.pwn(126) : warning 213: tag mismatch
All the warnings are to do with 3dtextlabels so i'm assuming i'v done somthing wrong there, note: the code works completely nice, just thought i should fix these warnings


Re: Warning help - iJumbo - 08.12.2010

try put it in right tabulate


Re: Warning help - Fresh-Gta - 08.12.2010

put this at top...
pawn Код:
new Text3D:PlantedCorn[MAX_PLAYERS];
i have never worked with simple 3dlabels i use streamer for this... but i think this would help
pawn Код:
new Float:x, Float:y, Float:z;
            GetPlayerPos(playerid, x, y, z);
            PlayerObject[playerid] = CreateObject(862,x, y, z-1, 0.0, 0.0, 96.0);
            PlantedCorn[playerid] = Create3DTextLabel("Planted Corn",COLOR_LIGHTBLUE,x,y,z,20.0,0);
            Delete3DTextLabel(PlantedCorn[playerid]);
            Update3DTextLabelText(PlantedCorn[playerid], COLOR_LIGHTBLUE, "Fully Grown");



Re: Warning help - Haydz - 08.12.2010

cheers fresh-gta, that worked perfectly.