Server sided money(points) help.
#1

So I've custom money system(called points),

So what I've tried to do is create a weapon shop dialog, the only problem I have is this!


Код:
C:\Users\yan\Desktop\LS DM\gamemodes\DBv1.pwn(1653) : error 017: undefined symbol "GetPlayerPoints"
C:\Users\yan\Desktop\LS DM\gamemodes\DBv1.pwn(1657) : error 017: undefined symbol "GivePlayerPoints"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


2 Errors.
Код:
stock SellWeapon(playerid, points, weapon, ammo)
{
   new ppoints = GetPlayerPoints(playerid);
   if(ppoints>points)
   {
	  new string[80], weaponname[32];
	  GivePlayerPoints(playerid, -points, pInfo[playerid][Points]);
	  GivePlayerWeapon(playerid, weapon,ammo);
	  GetWeaponName(weapon, weaponname, sizeof(weaponname));
	  format(string, sizeof(string), "{c3c3c3}(SHOP) You have bought %s with %i ammo for %i points", weaponname, ammo, points);
	  return SendClientMessage(playerid, -1, string);
   }
   else return SendClientMessage(playerid, -1,"You don't have enough points");
}
How do I get the player points correctly? (and set it of course)
Reply


Messages In This Thread
Server sided money(points) help. - by ivndosos - 05.02.2018, 06:52
Re: Server sided money(points) help. - by Sew_Sumi - 05.02.2018, 07:17
Re: Server sided money(points) help. - by Kane - 05.02.2018, 07:22
Re: Server sided money(points) help. - by Sew_Sumi - 05.02.2018, 07:28
Re: Server sided money(points) help. - by ivndosos - 05.02.2018, 07:29
Re: Server sided money(points) help. - by Sew_Sumi - 05.02.2018, 08:52
Re: Server sided money(points) help. - by ivndosos - 05.02.2018, 08:57
Re: Server sided money(points) help. - by Sew_Sumi - 05.02.2018, 09:00
Re: Server sided money(points) help. - by ivndosos - 05.02.2018, 09:04

Forum Jump:


Users browsing this thread: 1 Guest(s)