16.06.2015, 20:30
I wonder as I define it for use in a Gamemode and FS
as it gives me these errors
in my FS
#include <MyInc>
and errors
error 021: symbol already defined: "Streamer_OnPlayerConnect"
error 021: symbol already defined: "ppb_OnPlayerDisconnect"
as it gives me these errors
in my FS
#include <MyInc>
and errors
error 021: symbol already defined: "Streamer_OnPlayerConnect"
error 021: symbol already defined: "ppb_OnPlayerDisconnect"
PHP код:
new pMoney[MAX_PLAYERS];
//Code - for use as .INC
public OnPlayerConnect(playerid)
{
pMoney[playerid] = 0;
return 1;
}
public OnPlayerDisconnect(playerid, reason)
{
pMoney[playerid] = 0;
return 1;
}
stock a_GivePlayerMoney(playerid, money)
{
pMoney[playerid] += money;
GivePlayerMoney(playerid, money);
}
stock a_SetPlayerMoney(playerid, money)
{
pMoney[playerid] = money;
ResetPlayerMoney(playerid);
GivePlayerMoney(playerid, money);
}