17.04.2015, 05:53
I added
on top my script but it doesn't show up in game.
What should I do?
Code:
#define StartMoney 50000
What should I do?
#define StartMoney 50000
public OnPlayerConnect(playerid)
{
GivePlayerMoney(playerid, 50000);
return 1;
}
Are you new to Pawn?
If you are new, you need to learn Pawn. You need to learn about defines, functions and callbacks. Anyway, I'll give you the code for what you want: PHP Code:
|
public OnPlayerConnect(playerid)
{
GivePlayerMoney(playerid, StartMoney);
return 1;
}
#define StartMoney (5000)
public OnPlayerConnect(playerid) { GivePlayerMoney(playerid, 5000); }
public OnPlayerConnect(playerid) { GivePlayerMoney(playerid, StartMoney); }
public OnPlayerConnect(playerid)
{
GivePlayerMoney(playerid, StartMoney);
}