OnPlayerTakeDamage [help wanted]
#1

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):
Код:
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;
}
Here are ther errors that i get

Код:
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"
Thanks already for your replies.
Reply


Messages In This Thread
OnPlayerTakeDamage [help wanted] - by klotebandit - 08.12.2011, 12:26
Re : OnPlayerTakeDamage [help wanted] - by mehdi-jumper - 08.12.2011, 12:35
Re: OnPlayerTakeDamage [help wanted] - by klotebandit - 08.12.2011, 14:36
Re: OnPlayerTakeDamage [help wanted] - by klotebandit - 08.12.2011, 15:38
Re: OnPlayerTakeDamage [help wanted] - by jonrb - 08.12.2011, 19:03
Re: OnPlayerTakeDamage [help wanted] - by klotebandit - 09.12.2011, 11:36
Re: OnPlayerTakeDamage [help wanted] - by klotebandit - 21.01.2012, 14:24

Forum Jump:


Users browsing this thread: 1 Guest(s)