26.01.2016, 17:16
(
Последний раз редактировалось Matteos; 26.01.2016 в 20:56.
)
How could I change the value of 'variable hossz' by an if statement? I tried hossz += 1; but that's not working.
Please help me, it would be so important, these are the last steps of a bigger work of mine.
Thank you!
---------------------------------------------------------------
new gombErtekeToString[18];
new hossz = 0;
if(clickedid == szam0)
{
if (hossz >= 1) {
format(gombErtekeToString, sizeof(gombErtekeToString), "0" );
strcat(gombErtekeToString, "0");
TextDrawSetString(szampanel, gombErtekeToString);
TextDrawShowForPlayer(playerid, szampanel);
} else {
format(gombErtekeToString, sizeof(gombErtekeToString), "0" );
TextDrawSetString(szampanel, gombErtekeToString);
TextDrawShowForPlayer(playerid, szampanel);
hossz += 1;
}
}
-----------------------------------------------------------------------------------------------------------
Please help me, it would be so important, these are the last steps of a bigger work of mine.
Thank you!
---------------------------------------------------------------
new gombErtekeToString[18];
new hossz = 0;
if(clickedid == szam0)
{
if (hossz >= 1) {
format(gombErtekeToString, sizeof(gombErtekeToString), "0" );
strcat(gombErtekeToString, "0");
TextDrawSetString(szampanel, gombErtekeToString);
TextDrawShowForPlayer(playerid, szampanel);
} else {
format(gombErtekeToString, sizeof(gombErtekeToString), "0" );
TextDrawSetString(szampanel, gombErtekeToString);
TextDrawShowForPlayer(playerid, szampanel);
hossz += 1;
}
}
-----------------------------------------------------------------------------------------------------------