Storing Damage amount
#1

I want to store the Damage Amount but i can't really understand how to do this:

i tried like this but it doesn't work, it says " warning 215: expression has no effect "

Код:
UccisioniGDM[issuerid] + amount;
	new string[256];
	format(string,sizeof(string),"Danno fatto: %0.f", amount);
	SendClientMessage(issuerid,Lightblue,string);
Reply
#2

Код:
format(string,sizeof(string),"Danno fatto: %.0f", amount); // notice the change in %.0f . Test it
Reply
#3

Quote:
Originally Posted by Troydere
Посмотреть сообщение
Код:
format(string,sizeof(string),"Danno fatto: %.0f", amount); // notice the change in %.0f . Test it
The invalid expression pawno says is: "UccisioniGDM[issuerid] + amount;"

How can i store the damage i've done to an array? Cause i'm doing a deathmatch system, the first to reach like 1500 DMG wins.
Reply
#4

Код:
UccisioniGDM[issuerid] += amount;
Reply
#5

Quote:
Originally Posted by Troydere
Посмотреть сообщение
Код:
UccisioniGDM[issuerid] += amount;
Thank you!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)