11.09.2017, 16:53
(
Последний раз редактировалось AmarPlayer; 11.09.2017 в 19:00.
)
I am making a command which when you type in you get a dialog to choose, money or level.
When you choose you have to type in how many levels you want to give to everyone.
For example: If I am at level 3, and an admin does that command, chooses level, types in 5, I get 5 more levels,
I don't want him to set my level to five, but to add that to what I already have.
Here's what I'm trying to do:
I get this error: must be lvalue (non-constant)
How should I do this?
When you choose you have to type in how many levels you want to give to everyone.
For example: If I am at level 3, and an admin does that command, chooses level, types in 5, I get 5 more levels,
I don't want him to set my level to five, but to add that to what I already have.
Here's what I'm trying to do:
Код:
case DIALOG_NAGRADE_LEVEL: { if(response) { for(new i; i < GetMaxPlayers(); i++) { new leveligraca = GetPlayerScore(i); SetPlayerScore(leveligraca, ++(inputtext)); } } }
How should I do this?