Name wont save on database!
#8

Quote:
Originally Posted by Konstantinos
Посмотреть сообщение
Looking at the function the name of the player to ban is passed in "giveplayerid" parameter so you need to use this as an argument in your INSERT query.

About the IP, unless you read it from the database/player's file you can't be aware of it. Is what OnPlayerOfflineLogin does this? I hope you don't load unnecessary data as well but only the IP in there.

What do you use to save player's data?

pawn Код:
new ip[16];
format(ip, sizeof(ip), "%s", PlayerInfo[MAX_PLAYERS][pIP]);
By the way if the size of PlayerInfo array is set to MAX_PLAYERS will give run time error.
It'd have to be MAX_PLAYERS + 1.
Man you always giving the right answers.Thanks a lot.That "giveplayerid" was the one to have the name on it,its working all good now.
And about IP,i get them from player database.Its working good.
About that max_players idk what do you mean xD.
Rep++
Reply


Messages In This Thread
Name wont save on database! - by daghost111 - 21.12.2016, 09:18
Re: Name wont save on database! - by KNIGHT786 - 21.12.2016, 09:21
Re: Name wont save on database! - by itsCody - 21.12.2016, 09:22
Re: Name wont save on database! - by CutX - 21.12.2016, 09:29
Re: Name wont save on database! - by daghost111 - 21.12.2016, 15:43
Re: Name wont save on database! - by daghost111 - 21.12.2016, 16:05
Re: Name wont save on database! - by Konstantinos - 21.12.2016, 16:15
Re: Name wont save on database! - by daghost111 - 21.12.2016, 16:28
Re: Name wont save on database! - by Konstantinos - 21.12.2016, 16:42

Forum Jump:


Users browsing this thread: 2 Guest(s)