SA-MP Forums Archive
ah damn. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: ah damn. (/showthread.php?tid=115080)



ah damn. - PANNA - 22.12.2009

C:\Users\Onno\Documents\ALLIN1\da\gamemodes\cod.pw n(99) : error 017: undefined symbol "SetPlayerMoney"
pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
  new playercash;
if(killerid == INVALID_PLAYER_ID) {
    SendDeathMessage(INVALID_PLAYER_ID,playerid,reason);
    ResetPlayerMoney(playerid);
} else {
  SendDeathMessage(killerid,playerid,reason);
SetPlayerScore(killerid,GetPlayerScore(killerid)+10);
SetPlayerMoney(killerid,GetPlayerMoney(killerid)+100);
   }
 return 1;
}



Re: ah damn. - Doppeyy - 22.12.2009

Isnt it :
pawn Код:
GivePlayerWeapon(playerid,[the money yuo want to give ?]);
/Artix


Re: ah damn. - SlashPT - 22.12.2009

Quote:
Originally Posted by [๔เгty๔ยtςђ
คгtix ]
Isnt it :
pawn Код:
GivePlayerWeapon(playerid,[the money yuo want to give ?]);
/Artix
ahha you saied weapon is MONEY lol ;P

GivePlayerMoney(killerid,GetPlayerMoney(killerid)+ 100);


Re: ah damn. - pagie1111 - 22.12.2009

Quote:
Originally Posted by DarK_TeaM PT
Quote:
Originally Posted by [๔เгty๔ยtςђ
คгtix ]
Isnt it :
pawn Код:
GivePlayerWeapon(playerid,[the money yuo want to give ?]);
/Artix
ahha you saied weapon is MONEY lol ;P

GivePlayerMoney(killerid,GetPlayerMoney(killerid)+ 100);
that will just double it. Here is a function for SetPlayerMoney(playerid, value);

pawn Код:
stock SetPlayerMoney(playerid, value);
{
GivePlayerMoney(playerid,-GetPlayerMoney(playerid));
GivePlayerMoney(playerid, value);
return 1;
}
I hope it works for ya