![]() |
|
All the help I need - Printable Version +- Las Venturas Playground (https://forum.sa-mp.nl) +-- Forum: Miscellaneous (https://forum.sa-mp.nl/forum-4.html) +--- Forum: Gaming (https://forum.sa-mp.nl/forum-27.html) +--- Thread: All the help I need (/thread-17985.html) Pages:
1
2
|
Re: All the help I need - Matthias - 05-07-2009 I see a lot of stuff you're doing wrong ![]() Anyway, let me explain you a few stuff. First of all no need to define #pickupid and #playerid etc. These are parameters in the callback. Plus Pawn is a case-sensitive scripting language, using Public won't work, use public (no capital). Also, read this: http://wiki.sa-mp.com/wiki/PickupGuide Euhm, I see a lot more going wrong, when defining something, don't use new something, use new something; (don't forget the ';'). I probably forgot a lot, but I'm busy. Reading this will help a lot: http://wiki.sa-mp.com/wiki/PickupGuide and maybe: http://wiki.sa-mp.com/wiki/Scripting_Basics. Good luck with it, and feel free to post here if you have more questions. Re: All the help I need - FarePak - 05-07-2009 Aside from that theres still the main problem, why the pickup isn't showing. Its because you didn't assign the name/"new <blah>" things to the pickup, It tells you in the pickup guide. For example: Code: new retarded;Also this is un-needed Code: if(pickupid == Health) {The pickup itself gives you health anyway. Re: All the help I need - Mark - 05-07-2009 speedruntrainer, try an easier way of adding pickups, using one line and I'd suggest to put the lines under AddStaticVehicle and CreateObject or whatever, but note that they must be under public OnGameModeInit() AddStaticPickup(371, 2, 2909.068604, -1666.524658, 872.300903); AddStaticPickup(371, 2, 2909.068604, -1666.524658, 872.300903); AddStaticPickup(371, 2, 2909.068604, -1666.524658, 872.300903); Like this. Red stands for object id - for example, if you want to have health as a pickup, then no need to add a new line like GivePlayerHealth or something, because it will automatically give you health when you pick it up, as FarePak told you. You can find pickup ids here, and weapon ids here. Green stands for pickup types - like the number 2 means when you collect the pickup, it will respawn after few seconds. You can find different types of pickups here (scroll down to the bottom). Blue stands for coordinates - you will have to get them yourself. FarePak wrote almost the same thing as I just did, but I just wanted to explain what the different ids mean and where you can get a full list of them, since you said you are a beginner, hope you don't mind
Re: All the help I need - speedruntrainer - 05-08-2009 :-X what's wrong with this? o.O Code: #include <a_samp>Code: C:\Users\Nel\Desktop\Mijn spullen\GTA Games\Server test gta\filterscripts\pickups.pwn(14) : error 001: expected token: "-identifier-", but found "-integer value-"Re: All the help I need - FarePak - 05-08-2009 What line is 14? Re: All the help I need - Mark - 05-08-2009 (05-08-2009, 01:32 AM)speedruntrainer link Wrote: :-X what's wrong with this? o.OCould you paste your full filterscript or gamemode or whatever it is to pastebin.com? That way it will be easier to find the errors for you. Re: All the help I need - speedruntrainer - 05-08-2009 http://pastebin.com/m21e7c5f0 Re: All the help I need - FarePak - 05-08-2009 Is this a filterscript or a gamemode? Re: All the help I need - speedruntrainer - 05-08-2009 A filterscript. I just add pickups to my server. Re: All the help I need - FarePak - 05-08-2009 Why don't you just add the pickups to your main script? Edit: http://pastebin.com/f1a7fcbe6 There you go. I fixed everything, just look at the differences between mine and yours and you'll get it. |