Need help with making a class. - 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: Need help with making a class. (
/showthread.php?tid=177035)
Need help with making a class. -
tommzy09 - 15.09.2010
Okay, every time i try to make a class to spawn with it doesn't work. I'm not sure if i'm adding it in the right spot.
Also can anyone show me an example on how to and where to put it because i feel like i'm failing, also how do i make a menu that has buy-able weapons/items/vehicles with editable prices.
Re: Need help with making a class. -
ScottCFR - 15.09.2010
Where are you putting it?
Re: Need help with making a class. -
tommzy09 - 16.09.2010
i put AddPlayerClass(105,2496.035,-1701.942,1014.734, 0, 24, 500, 32, 250, 9, 1)
under public OnGameModeInit() and i did space it so it looks like
OnGameModeInit()
AddPlayerClass(105,2496.035,-1701.942,1014.734, 0, 24, 500, 32, 250, 9, 1)
and yeah it just doesnt add the class
Re: Need help with making a class. -
willsuckformoney - 16.09.2010
supposed to be
pawn Код:
public OnGameModeInit()
{
AddPlayerClass(105,2496.035,-1701.942,1014.734, 0, 24, 500, 32, 250, 9, 1);
//more of your stuff
return 1;
}
Re: Need help with making a class. -
tommzy09 - 16.09.2010
thank you , it worked
![Smiley](images/smilies/smile.png)
. now how do i add a menu with buyable weapons/cars/items?
Re: Need help with making a class. -
willsuckformoney - 16.09.2010
idk about menus search this in ******
SAMP Dialogs
or
SAMP Menus