stock giveMoney(playerid, amount)
{
new msg[56];
KillTimer(Player[playerid][getTDtimer]);
Player[playerid][getTDtimer] = SetTimerEx("closeGetTD", 5000, false, "d", playerid);
format(msg, sizeof(msg), "+$%d", amount);
PlayerTextDrawSetString(playerid, Player[playerid][getTD][0], msg);
PlayerTextDrawShow(playerid, Player[playerid][getTD][0]);
Player[playerid][playerMoney] += amount;
ResetPlayerMoney(playerid);
return GivePlayerMoney(playerid, Player[playerid][playerMoney]);
}
stock takeMoney(playerid, amount)
{
new msg[56];
KillTimer(Player[playerid][getTDtimer]);
Player[playerid][getTDtimer] = SetTimerEx("closeGetTD", 5000, false, "d", playerid);
format(msg, sizeof(msg), "-$%d", amount);
PlayerTextDrawSetString(playerid, Player[playerid][getTD][0], msg);
PlayerTextDrawShow(playerid, Player[playerid][getTD][0]);
Player[playerid][playerMoney] -= amount;
ResetPlayerMoney(playerid);
return GivePlayerMoney(playerid, Player[playerid][playerMoney]);
}
stock updateMoney(playerid)
{
ResetPlayerMoney(playerid);
return GivePlayerMoney(playerid, Player[playerid][playerMoney]);
}
C:\Users\DashSalar\Desktop\top\California Cops and Robbers by Bondowocopz\filterscripts\kasino.pwn(12) : error 017: undefined symbol "Player" C:\Users\DashSalar\Desktop\top\California Cops and Robbers by Bondowocopz\filterscripts\kasino.pwn(12) : warning 215: expression has no effect C:\Users\DashSalar\Desktop\top\California Cops and Robbers by Bondowocopz\filterscripts\kasino.pwn(12) : error 001: expected token: ";", but found "]" C:\Users\DashSalar\Desktop\top\California Cops and Robbers by Bondowocopz\filterscripts\kasino.pwn(12) : error 029: invalid expression, assumed zero C:\Users\DashSalar\Desktop\top\California Cops and Robbers by Bondowocopz\filterscripts\kasino.pwn(12) : fatal error 107: too many error messages on one line
I Dont HAve Enum . IThink My Stock Need Thats Please Give me Tnx
i'v Copied This Stock From Samp Whitout Enum |
then show the decalaration of this matrix Player[MAX_PLAYER][idk_whats_here_since_u_have_no_enum]
|
#define GivePlayerMoney giveMoney
giveMoney(playerid, amount)
{
return GivePlayerMoney(playerid, amount);
}
Now i understood you are copying pasting a script from other script. Thats why you are getting errors.these vars are not declared in your script.If you just want a raw function to change GivePlayerMoney to giveMoney you can either define a macro (which i wont recommend)
PHP код:
PHP код:
|
Player[MAX_PLAYER][something_probably_enum_structure_name]
how come its not working you may not understood what is said.You DONT HAVE this 2d array in your code
PHP код:
|