PDA

View Full Version : error money new spawn, please


kurniarocki
13/02/2014, 10:30 AM
i am set for new player is 500 dollar why, but player is get 99934299 dollar.
anyone please help me
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;

xo
13/02/2014, 11:40 AM
Show:SafeGivePlayerMoney function

kurniarocki
13/02/2014, 02:34 PM
what are you mean

thimo
13/02/2014, 02:36 PM
If you do not even know what a function is you better first start reading the wiki

Avi Raj
13/02/2014, 02:37 PM
use it like this :-

#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;

Beckett
13/02/2014, 02:39 PM
Why are you using SafeGivePlayerMoney(playerid,500); if you don't know what is it or what it does?

kurniarocki
13/02/2014, 02:43 PM
please dont give me a critical. but i need a solution ut
thank you

Avi Raj
13/02/2014, 02:49 PM
use it like this :-

#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.