forward GivePlayerMoneyEx(playerid,ammount);//Forward - this is how you call a new public public GivePlayerMoneyEx(playerid,ammount) { //First the gonna have to set the OldMoney of the player , just in case . OldMoney[playerid] = GetPlayerMoney(playerid)//Get the money ( GetPlayerMoney ) they put it in the OldMoney var... //Now we gotta define the new ammount of money the player holds , we gotta do it before we give him the money , so he wont get banned / kicked . NewMoney[playerid] = ammount;//Putting the ammount in the NewMoney var //Now we gotta give the player some sweet cash GivePlayerMoney(playerid,ammount);//default function : ) return 1; } |
Line 1753 NewMoney[playerid] = ammount;//Putting the ammount in the NewMoney var |
C:\Users\Arlind\Desktop\fsdf\filterscripts\Project .pwn(1753) : error 001: expected token: ";", but found "-identifier-" |
OldMoney[playerid] = GetPlayerMoney(playerid)//Get the money ( GetPlayerMoney ) they put it in the OldMoney var...
NewMoney[playerid] = ammount; |
new Money[playerid]
forward GivePlayerMoneyEx(playerid, ammount);
public GivePlayerMoneyEx(playerid, ammount)
{
SetPVarInt(playerid, "OldMoney", GetPlayerMoney(playerid));
SetPVarInt(playerid, "NewMoney", ammount);
GivePlayerMoney(playerid, ammount);
return 1;
}