08.12.2011, 12:26
Ok, so i got a problem.
I am trying to make a script wich creates a 3dtextlabel with the damage someone takes.
I am not really sure why it's not working so please help me becouse im getting a lot of errors
I'm not verry experienced yet.
Heres my code (it's part of my bigger main code):
Here are ther errors that i get
Thanks already for your replies.
I am trying to make a script wich creates a 3dtextlabel with the damage someone takes.
I am not really sure why it's not working so please help me becouse im getting a lot of errors
I'm not verry experienced yet.
Heres my code (it's part of my bigger main code):
Код:
public OnPlayerTakeDamage(playerid, issuerid, Float:amount, weaponid)
{
new Float:X, Float:Y, Float:Z;
GetPlayerPos( playerid, X, Y, Z );
posZ = Z;
posX = X;
posY = Y;
damage = amount;
for(new i=0; i<15; i++)
{
SetTimer("Damagetimer", 100, false);
}
return 1;
}
public Damagetimer()
{
posZ = posZ+0.1;
dmg1 = Create3DTextLabel(damage,COLOR_RED,posX,posY,posZ,50.0,0);
Delete3DTextLabel(dmg1);
return 1;
}
Код:
D:\Gta related\GTA Modern Warfare\samp\gamemodes\CODSW11.pwn(1367) : warning 213: tag mismatch D:\Gta related\GTA Modern Warfare\samp\gamemodes\CODSW11.pwn(1368) : warning 213: tag mismatch D:\Gta related\GTA Modern Warfare\samp\gamemodes\CODSW11.pwn(1369) : warning 213: tag mismatch D:\Gta related\GTA Modern Warfare\samp\gamemodes\CODSW11.pwn(1370) : warning 213: tag mismatch D:\Gta related\GTA Modern Warfare\samp\gamemodes\CODSW11.pwn(1380) : warning 213: tag mismatch D:\Gta related\GTA Modern Warfare\samp\gamemodes\CODSW11.pwn(1381) : error 035: argument type mismatch (argument 1) D:\Gta related\GTA Modern Warfare\samp\gamemodes\CODSW11.pwn(1386) : warning 203: symbol is never used: "RandomSpawn" D:\Gta related\GTA Modern Warfare\samp\gamemodes\CODSW11.pwn(1370) : warning 204: symbol is assigned a value that is never used: "damage" D:\Gta related\GTA Modern Warfare\samp\gamemodes\CODSW11.pwn(1368) : warning 204: symbol is assigned a value that is never used: "posX" D:\Gta related\GTA Modern Warfare\samp\gamemodes\CODSW11.pwn(1369) : warning 204: symbol is assigned a value that is never used: "posY" D:\Gta related\GTA Modern Warfare\samp\gamemodes\CODSW11.pwn(1369 -- 1386) : warning 203: symbol is never used: "strtok"

