Warning help
#1

Код:
              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
Reply
#2

try put it in right tabulate
Reply
#3

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");
Reply
#4

cheers fresh-gta, that worked perfectly.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)