[SOLVED] Cannot save a name with dini?
#1

I'm trying to create a property system where the name will be saved on the property.. But dini wont save the player name?

pawn Код:
format(ids,sizeof(ids),"%d", id);
if(dini_Int("propertyowners.ini",ids)==0) {
dini_IntSet("propertyowners.ini",ids,PlayerName(playerid)); <-- Error line
Error:
pawn Код:
error 035: argument type mismatch (argument 3)
Reply
#2

I don't see why you're formatting a string to be the same as it was prior to editing.

And the player name is not an Integer, thus causing the error.

dini_IntSet(filename, value, int_to_change);
Reply
#3

Ahh... I'm so stupid -.- Kinda tired.. PROBLEM SOLVED!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)