Las Venturas Playground
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


All the help I need - speedruntrainer - 05-05-2009

Is there a debug mode for pawno to see EXACTLY where the errors are?
It's irritating if you don't know where the error are


Re: A very important question. - Shark - 05-05-2009

Errrr, when you compile the compile window tells you if there are any errors and where they are...


Re: A very important question. - speedruntrainer - 05-06-2009

Yes, I mean WHERE, which cells. And Error [number] is just the number ID of the error, NOT the cells. >_> Maathias can help me, maybe



Re: A very important question. - FarePak - 05-06-2009

It doesn't tell you exactly where the error is, it just tells you what line is the error at.

With the line given, just check out whats wrong there if its missing any open or closing brackets or maybe something wrong with the actual line of script.

Edit: It tells you what line the error is at in the brackets, for example "C:\Users\Alex\Desktop\Server\Speedruntrainerfag.pwn(IT TELLS YOU HERE) Error: blah"


Re: A very important question. - Matthias - 05-06-2009

What FarePak said says it all. The first error is most likely the first line you've gone wrong, with that error Pawno probably won't recognize the following lines either, wich leads in more errors.


Re: A very important question. - TeEjAy - 05-06-2009

Make sure there aren't any Typo's and yes, FarePak seems to know a pretty good amount of scripting.

" C:\Program Files\Rockstar Games\GTA San Andreas\SAMP server\filterscripts\AdminX.pwn(3398) : error 017: undefined symbol "CreatePlayerObjectj" "

As you can see any letter that does not belong causes an error. Go through your script several times for out of place letters/numbers.


Re: A very important question. - speedruntrainer - 05-06-2009

Ah, noticed now, the (3379) is the error cel. Ah well, Thanks for the help :D
Fixed some warnings.


Re: A very important question. - Matthias - 05-06-2009

You're welcome, post here again if you can't fix the errors ;)


Re: All the help I need - speedruntrainer - 05-07-2009

Well, maybe I have some noob questions at first, but it doesn't matter to me, I want to learn scripting fast. oks, here is my problem:
The pickups won't show up, I know the wiki so I looked at it, I can't solve the problem, Idk if i need to use AddStaticPickup AND CreatePickup.
here is my script:

Code:
#include <a_samp>

#define GivePlayerHealth
#define pickup
#define pickupid
#define GivePlayerArmor
#define GivePlayerWeapon
#define OnPlayerPickupPickup
#if defined playerid
new Health
new Armor

Public OnGameModeInit()
{


AddStaticPickup(1240, 2, 2000.7, 1568.0, 15.3);  //Health

AddStaticPickup(1240, 2, 2099.9, 2186.5, 13.4); //Health

AddStaticPickup(1242, 2, 2100, 2184,.3, 13.4);  //Armor

AddStaticPickup(350, 2, 2100.8, 2168.8, 13.4); //Sawnoff

AddStaticPickup(372, 2, 2100.9, 2170.9, 10.8); //TEC-9

return 1;
}

public OnPlayerPickupPickup(playerid, pickupid);
{

if(pickupid == Health) {
GivePlayerHealth(playerid, 1240, 100);

if(pickupid == Health) {
GivePlayerHealth(playerid, 1240, 100);

if(pickupid == Armor) {
GivePlayerArmor(playerid, 1242, 100);

if(pickupid == Sawnoff) {
GivePlayerWeapon(playerid, 350, 100);

if(pickupid == TEC-9) {
GivePlayerWeapon(playerid, 372, 1000);

return 1;
}

#endif

Can you help me?


Re: All the help I need - FarePak - 05-07-2009

If I decide to help you are you going to give Matthias the credit again?