OnPlayerTakeDamage [help wanted]
#4

Ok, that helped me quite a lot.
Still got some problems though,
i want to make the 3dtextlabel climb 0.1 unit 15 times over the course of 1.5 seconds
thats what im using the forloop for but still cant quite understand how to get the damage
working properly.

Код:
 1360 - public OnPlayerTakeDamage(playerid, issuerid, Float:amount, weaponid)
1360 - {
1361 - 	damage = amount;
1362 - 	for(new i=0; i<15; i++)
1363 - 	{
1364 -  	SetTimer("Damagetimer", 100, false);
1365 - 	Delete3DTextLabel(dmg1);
1366 - 	}
1367 - 	return 1;
1368 - }
1369 - 
1370public Damagetimer()
1371 - {
1372 -     GetPlayerPos( playerid, X, Y, Z );
1373 - 	dmg1 = Create3DTextLabel(damage,COLOR_RED,X,Y,Z+0.1,50.0,0);
1374 -    return 1;
1375 - }
these are ther errors

Код:
D:\Gta related\GTA Modern Warfare\samp\gamemodes\CODSW11.pwn(1362) : warning 213: tag mismatch
D:\Gta related\GTA Modern Warfare\samp\gamemodes\CODSW11.pwn(1373) : error 017: undefined symbol "playerid"
D:\Gta related\GTA Modern Warfare\samp\gamemodes\CODSW11.pwn(1374) : error 035: argument type mismatch (argument 1)
D:\Gta related\GTA Modern Warfare\samp\gamemodes\CODSW11.pwn(1378) : warning 203: symbol is never used: "RandomSpawn"
D:\Gta related\GTA Modern Warfare\samp\gamemodes\CODSW11.pwn(1362) : warning 204: symbol is assigned a value that is never used: "damage"
D:\Gta related\GTA Modern Warfare\samp\gamemodes\CODSW11.pwn(1362 -- 1378) : warning 203: symbol is never used: "strtok"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


2 Errors.
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: 2 Guest(s)