Posts: 5
Threads: 0
Joined: Oct 2011
Reputation:
0
yes u can use it its fine
Posts: 392
Threads: 101
Joined: Jan 2013
Reputation:
0
And What Diffrent BEtwin It ?
Posts: 392
Threads: 101
Joined: Jan 2013
Reputation:
0
i just want Each kill THey kill A admin there Admin kills + 1
Posts: 5
Threads: 0
Joined: Oct 2011
Reputation:
0
Q#1 What is difference between ++ and += operator ?
Answer:-
PlayerInfo[killerid][AdminKills] ++; // ++ is a operator, it can only add one in variable value
// but += is more then just add 1 in variable value
PlayerInfo[killerid][AdminKills] += 1; // += is a operator, it can add what ever in from of it in variable value. In this case it is similar ++ operator
// more example using += operator
PlayerInfo[killerid][AdminKills] += 5; // this will add 5 in variable value
PlayerInfo[killerid][AdminKills] += 7; // this will add 7 in variable value
PlayerInfo[killerid][AdminKills] += 500; // this will add 500 in variable value
// you can't use PlayerInfo[killerid][AdminKills]++ 5 or things like that. ++ operator just can do add 1 in variable value. ++ operator is limited. but += operator is not limited.