SA-MP Forums Archive
tag mistach - 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: tag mistach (/showthread.php?tid=189435)



tag mistach - dark_clown - 11.11.2010

hum getting these warnings cant figure it out
pawn Код:
dcmd_addlight(playerid,params[])
{
    #pragma unused params
    new object, Float: x, Float: y, Float: z, Float: angle,Float: rotax,Float: rotay,Float: rotaz;
    object = 354;
    GetPlayerPos(playerid,x, y, z);
    CreateObject(object, x, y, z, angle, 0.0, 0.0, 10.0);
    GetObjectRot(object, rotax, rotay, rotaz);
    Lighter[playerid][X] = x;
    Lighter[playerid][Y] = y;
    Lighter[playerid][Z] = z;
    Lighter[playerid][RotX] = rotax;
    Lighter[playerid][RotY] = rotay;
    Lighter[playerid][RotZ] = rotaz;
    return 1;
}
warning lines
pawn Код:
Lighter[playerid][RotX] = rotax;
    Lighter[playerid][RotY] = rotay;
    Lighter[playerid][RotZ] = rotaz;
warnings
Код:
C:\Users\mike\Desktop\server\filterscripts\dadmin.pwn(100) : warning 213: tag mismatch
C:\Users\mike\Desktop\server\filterscripts\dadmin.pwn(101) : warning 213: tag mismatch
C:\Users\mike\Desktop\server\filterscripts\dadmin.pwn(102) : warning 213: tag mismatch
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase
3 Warnings.



Re: tag mistach - Backwardsman97 - 11.11.2010

When you declared the Lighter enum, did you make the X, Y, and Z values floats?


Re: tag mistach - The_Moddler - 11.11.2010

pawn Код:
new Float:Lighter[MAX_PLAYERS][7]



Re: tag mistach - dark_clown - 11.11.2010

fixed i think gonna test