Expression has no effect?!?!!?
#6

Quote:
Originally Posted by kirk
Посмотреть сообщение
You have to assign the result of both expressions somewhere or it ll be lost. It seems you want to use those two variables like this.

Код:
tintelekt = tintelekt + PlayerInfo[killerid][intelekt];
tsila = tsila + PlayerInfo[killerid][sila];
Quote:
Originally Posted by HazardouS
Посмотреть сообщение
pawn Код:
// Method 1
a = a + b;

//Method 2
a += b;
This is how you add the value of b to variable a. Both methods do the same thing. To make it more clear, what you're doing right now is "b + a". You're not setting the result to any variable.
Thanks guys. REP +
Reply


Messages In This Thread
Expression has no effect?!?!!? - by Stoyanov - 22.02.2015, 10:20
Re: Expression has no effect?!?!!? - by Vince - 22.02.2015, 10:21
Re: Expression has no effect?!?!!? - by Stoyanov - 22.02.2015, 10:33
Respuesta: Re: Expression has no effect?!?!!? - by kirk - 22.02.2015, 10:39
Re: Expression has no effect?!?!!? - by HazardouS - 22.02.2015, 10:40
Re: Expression has no effect?!?!!? - by Stoyanov - 22.02.2015, 10:44

Forum Jump:


Users browsing this thread: 2 Guest(s)