Problem with ;
#1

Quote:

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;
}

Quote:

Line 1753 NewMoney[playerid] = ammount;//Putting the ammount in the NewMoney var

ERRROR
Quote:

C:\Users\Arlind\Desktop\fsdf\filterscripts\Project .pwn(1753) : error 001: expected token: ";", but found "-identifier-"

Reply
#2

PHP код:
OldMoney[playerid] = GetPlayerMoney(playerid)//Get the money ( GetPlayerMoney ) they put it in the OldMoney var... 
semicolon missing over there.
Reply
#3

This

Quote:

NewMoney[playerid] = ammount;

Reply
#4

Removed,

First i thought
pawn Код:
new Money[playerid]
Reply
#5

doesent work
Reply
#6

Create your own.

Or use mine (example of course)

PHP код:

forward GivePlayerMoneyEx
(playeridammount);

public 
GivePlayerMoneyEx(playeridammount)
{
   
SetPVarInt(playerid"OldMoney"GetPlayerMoney(playerid));
   
SetPVarInt(playerid"NewMoney"ammount);
   
GivePlayerMoney(playeridammount);
   return 
1;

I used pVars but you can also do the same with normal vars.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)