Search Results
Quote:
Originally Posted by karemmahmed22
PHP код:
CallRemoteFunction("GivePlayerCash", "ii" , playerid, amount);
where i must put this?
150
Heu, i need help with PPC housing. I use server side money in my Gamemode, then when i try to buy house with PPC housing, my money not decrease.
Can anybody help me please?
Sorry for bed eng xD
150
i want when LEO class use /ar the criminals, they sent the criminals to the jail, and set the timer to release the criminals again.
84
Hy, i want to show my jail timer like "release in %d second"
this is my code
Код:
CMD:ar(playerid, params[])
{
new otherid, string[256], seconds;
if(PlayerInfo[playerid][pSpawned] == 0) return S...
84
Quote:
Originally Posted by khRamin78
INI_WriteString
can you give example please?
100
Hey, how can i save file string in Y_INI?
example when i spawn show dialog jobs (Truck, Bus driver) then that player disconnect. And the INI save Jobs = Trucker
Sorry for my bad Eanglash xD
100
Quote:
Originally Posted by ._Xavier$$
PHP код:
forward LoadUser_data(playerid,name[],value[]);
public LoadUser_data(playerid,name[],value[])
{
// other stuff
...
164
Quote:
Originally Posted by ._Xavier$$
PHP код:
public OnPlayerConnect(playerid)
{
if(fexist(UserPath(playerid)))
{
PlayerInfo[playerid][pLogged] =...
164
Quote:
Originally Posted by TheLegend1
Defined this ?
#define PATH "/Users/%s.ini"
ofcourse
164
Quote:
Originally Posted by TheLegend1
Do you have a folder at scriptfiles where you save the player status or
yes i have it, other stats is normaly save, just the cash won't save
164
when i'm connect to server with Any money then spawned. my money reset to 0. why?
Код:
enum pInfo
{
// other stuff
pCash
}
new PlayerInfo[MAX_PLAYERS][pInfo];
forward LoadUser_data(playe...
164
Quote:
Originally Posted by X337
To reset player variables.
Example :
if your pAdmin variables is on 5 if you disconnected from server, the player who connected to your server with your ID...
146
Quote:
Originally Posted by Threshold
Well for starters, you aren't closing the file.
pawn Код:
INI_Close(File);
You should probably use your PlayerInfo[playerid][pCash] variable inst...
146
hi this is my other problem xD
when i disconnect with $99999 cash then connect again its make my money to 0
Код:
enum pInfo
{
pCash,
pAdmin
};
new PlayerInfo[MAX_PLAYERS][pInfo];
forward...
146