when player disconnects, it sends the message 9999 times..., also problem with dini saving
#8

Try this:

PHP код:
new tarname[MAX_PLAYER_NAME];
    
GetPlayerName(targetid,tarname,sizeof(tarname));
    
GetPlayerName(playeridtnamesizeof(tname));
    
format(file,sizeof(file),"nAdmin/Users/%s.ini",tarname); 
Replace yours with that one and see.

This format(file,sizeof(file),"nAdmin/Users/%s.ini",targetid); is the big mistake, why?

It's because your saying that %s = targetid which is a number and we want to save it in his user file(which is written by his name not his ID), get it?
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)