15.05.2010, 14:06
Well I am not too sure about your code as I always have slight problems when reading from an unknown language but in case you are trying to add the number someone enters in the dialog box to "PlayerInfo[playerid][Banka]", simply do:
I'm pretty sure tho' that this code is not what you actually want.
Here's a different solution:
Код:
new stringk[128]; dini_IntSet(file,"Banka",strlen(inputtext)); // Why do you actually use strlen? Do you really want to use the length of inputtext? format(stringk, sizeof stringk, "%d", strlen(inputtext)); PlayerInfo[playerid][Banka] +=strvalEx(stringk);
Here's a different solution:
Код:
if(strvalEx(inputtext)>0){ // little check so no one enters negative numbers
PlayerInfo[playerid][Banka]+=strvalEx(inputtext);
}

