Help, problem
#1

I have this in my login load values.. when i spawn its ok, but when i death and respawn... scale my money... any ideas ?

Код:
                    while (mysql_retrieve_row())
                    {
                        mysql_fetch_field_row(string, "Money"); GivePlayerMoney(playerid, strval(string));
                        mysql_fetch_field_row(string, "Score"); SetPlayerScore(playerid, strval(string));
                        mysql_fetch_field_row(string, "Kills"); UserInfo[playerid][User_Kills] = strval(string);
                        mysql_fetch_field_row(string, "Deaths"); UserInfo[playerid][User_Deaths] = strval(string);
                    }
                    mysql_free_result();
Reply
#2

change
Код:
mysql_fetch_field_row(string, "Money"); GivePlayerMoney(playerid, strval(string));
with
Код:
mysql_fetch_field_row(string, "Money"); ResetPlayerMoney(playerid); GivePlayerMoney(playerid, strval(string));
Reply
#3

Nothing changes, when i death and respawn scale my money...
Reply
#4

bump
Reply
#5

help me...
Reply
#6

Stop spamming, it's not going to help.
People might be writting their reply out or simply.. don't know.
Reply
#7

OMG, you're mad ... you can bump your topic only at 24 hours from last reply, not every 5-10 minutes...

Look at OnPlayerDeath and OnPlayerSpawn for GivePlayerMoney/ResetPlayerMoney.

I'm not a native english speaker, scale = increase, or decrease ?
Reply
#8

Quote:
Originally Posted by costel_nistor96
Посмотреть сообщение
OMG, you're mad ... you can bump your topic only at 24 hours from last reply, not every 5-10 minutes...

Look at OnPlayerDeath and OnPlayerSpawn for GivePlayerMoney/ResetPlayerMoney.

I'm not a native english speaker, scale = increase, or decrease ?
Yes, sorry.

decrease is the problem...

In the callback OnPlayerDeath and OnplayerSpawn, I have nothing
Reply
#9

Decrease some amount, or at 0$ ? If at 0$, search in your script for ResetPlayerMoney, if some amount, search for GivePlayerMoney.
Reply
#10

example.. i have 545154 money, and decrase to 545054... and so on
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)