SA-MP Forums Archive
AddStaticPickup error - 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: AddStaticPickup error (/showthread.php?tid=84013)



AddStaticPickup error - Moustafa - 28.06.2009

Script:
pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
    AddStaticPickup(1239, X, 1778.5148, -1575.8615, 17.4416); // Line 4
    return 1;
}
Error:
pawn Код:
C:\Documents and Settings\*****\Desktop\Desktop\server\gamemodes\tessssssssst.pwn(4) : error 017: undefined symbol "X"
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


1 Error.
On weeddarr website i found that X on the Pickup's thingy is to do nothing with the pickup, not to respawn and not to take it..

And when i tried to put it and compile, it gave me the error that you guys see..

On Weeddar webpage of X: X = can't pick it up



Re: AddStaticPickup error - MenaceX^ - 28.06.2009

You can't write there letters, numbers only.
Check in wiki what each id does.


Re: AddStaticPickup error - Moustafa - 28.06.2009

X = can't pick it up
* = will lock your movement forward if walked on (I don't advise using it.)

0 Item does not display
2 Pickupable and respawns after a few minutes
3 Pickupable, no respawn
4 Disappears shortly after creation (used for drops?)
5 Disappears shortly after creation (used for drops?)
8 pickupable (no effect) - disappears shortly after creation (used for ?)
11 Blows Up few seconds after creation*
12 Blows Up few seconds after creation (car explosion? timer is the burning flame?)
13 X - Slowly descends in Z and eventually goes through the floor (parachute?)
15 Pickupable, no respawn
19 Pickupable with no effect (Information icon?)
22 Pickupable, no respawn


These are the types, i need the " X " one :/


Re: AddStaticPickup error - shady91 - 28.06.2009

Quote:
Originally Posted by Moustafa
Script:
pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
    AddStaticPickup(1239, X, 1778.5148, -1575.8615, 17.4416); // Line 4
    return 1;
}
Error:
pawn Код:
C:\Documents and Settings\*****\Desktop\Desktop\server\gamemodes\tessssssssst.pwn(4) : error 017: undefined symbol "X"
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


1 Error.
On weeddarr website i found that X on the Pickup's thingy is to do nothing with the pickup, not to respawn and not to take it..

And when i tried to put it and compile, it gave me the error that you guys see..

On Weeddar webpage of X: X = can't pick it up
pawn Код:
AddStaticPickup(1239, 1, 1778.5148, -1575.8615, 17.4416); // Line 4
that should work mate.


Re: AddStaticPickup error - Moustafa - 28.06.2009

Didn't work..


Re: AddStaticPickup error - shady91 - 28.06.2009

really? what errors? if so what are they?


Re: AddStaticPickup error - illay - 28.06.2009

X?


Re: AddStaticPickup error - woot - 28.06.2009

pawn Код:
AddStaticPickup(1239, 19, 1778.5148, -1575.8615, 17.4416);
19 Pickupable with no effect (Information icon?)


Re: AddStaticPickup error - Moustafa - 28.06.2009

nvm fixed


Re: AddStaticPickup error - shady91 - 28.06.2009

what was the problem then mate? as mine works fine like that?