error money new spawn, please
#1

i am set for new player is 500 dollar why, but player is get 99934299 dollar.
anyone please help me
pawn Код:
gOoc[playerid] = 1; gNews[playerid] = 1; gFam[playerid] = 1;
                SafeSetPlayerInterior(playerid, 3);
                SafeSetPlayerPos(playerid, 330.6825,163.6688,1014.1875);
                SetPlayerFacingAngle(playerid, 280);
                TogglePlayerControllable(playerid, 0);
                RegistrationStep[playerid] = 1;
                SendClientMessage(playerid, COLOR_LIGHTRED, "Welcome to Republic State Roleplay Server, Kamu Akan Ke Pusat Imigrasi Los Santos.");
                SendClientMessage(playerid, COLOR_LIGHTRED, "Hello! Selamat Datang Di Pusat Imigrasi Los Santos, Kami Akan Memberi Beberapa Pertanyaan.");
                SendClientMessage(playerid, COLOR_LIGHTRED, "Pertama: Are you a Male or Female?");
                SendClientMessage(playerid, COLOR_LIGHTRED, "TIP: Please type in what you are! Don't worry, no one will see it!");
                PlayerInfo[playerid][pRegularCount] = 144000;
                SafeGivePlayerMoney(playerid,500);
                return 1;
Reply
#2

Show:SafeGivePlayerMoney function
Reply
#3

what are you mean
Reply
#4

If you do not even know what a function is you better first start reading the wiki
Reply
#5

use it like this :-
pawn Код:
#define StartMoney 500

gOoc[playerid] = 1; gNews[playerid] = 1; gFam[playerid] = 1;
                SafeSetPlayerInterior(playerid, 3);
                SafeSetPlayerPos(playerid, 330.6825,163.6688,1014.1875);
                SetPlayerFacingAngle(playerid, 280);
                TogglePlayerControllable(playerid, 0);
                RegistrationStep[playerid] = 1;
                SendClientMessage(playerid, COLOR_LIGHTRED, "Welcome to Republic State Roleplay Server, Kamu Akan Ke Pusat Imigrasi Los Santos.");
                SendClientMessage(playerid, COLOR_LIGHTRED, "Hello! Selamat Datang Di Pusat Imigrasi Los Santos, Kami Akan Memberi Beberapa Pertanyaan.");
                SendClientMessage(playerid, COLOR_LIGHTRED, "Pertama: Are you a Male or Female?");
                SendClientMessage(playerid, COLOR_LIGHTRED, "TIP: Please type in what you are! Don't worry, no one will see it!");
                PlayerInfo[playerid][pRegularCount] = 144000;
                GivePlayerMoney(playerid, StartMoney);
                return 1;
Reply
#6

Why are you using SafeGivePlayerMoney(playerid,500); if you don't know what is it or what it does?
Reply
#7

please dont give me a critical. but i need a solution ut
thank you
Reply
#8

Quote:

use it like this :-
pawn Код:
#define StartMoney 500

gOoc[playerid] = 1; gNews[playerid] = 1; gFam[playerid] = 1;
                SafeSetPlayerInterior(playerid, 3);
                SafeSetPlayerPos(playerid, 330.6825,163.6688,1014.1875);
                SetPlayerFacingAngle(playerid, 280);
                TogglePlayerControllable(playerid, 0);
                RegistrationStep[playerid] = 1;
                SendClientMessage(playerid, COLOR_LIGHTRED, "Welcome to Republic State Roleplay Server, Kamu Akan Ke Pusat Imigrasi Los Santos.");
                SendClientMessage(playerid, COLOR_LIGHTRED, "Hello! Selamat Datang Di Pusat Imigrasi Los Santos, Kami Akan Memberi Beberapa Pertanyaan.");
                SendClientMessage(playerid, COLOR_LIGHTRED, "Pertama: Are you a Male or Female?");
                SendClientMessage(playerid, COLOR_LIGHTRED, "TIP: Please type in what you are! Don't worry, no one will see it!");
                PlayerInfo[playerid][pRegularCount] = 144000;
                GivePlayerMoney(playerid, StartMoney);
                return 1;
Already gave you solution.
Open your eyes.
Reply


Forum Jump:


Users browsing this thread: 4 Guest(s)