Hello ! Help ! :) - 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)
+--- Thread: Hello ! Help ! :) (
/showthread.php?tid=536524)
Hello ! Help ! :) -
Marianforte - 10.09.2014
Hello ! I tried to make a pick-up wich it is givin money ! So I made !
I put :
Then under OnGameModeInit
Код:
pickup = CreatePickup(1242, 2, 170.9139,1868.2903,20.7449);
Then under OnPlayerPickUpPickup
Код:
if(pickupid == pickup)
{
GivePlayerMoney(playerid, 1000);
return 1;
}
But when I compile it is sayn :
Код:
C:\Users\tedi\Desktop\tot\Romвnia Fantastic Stunt\Romвnia Fantastic Stunt\filterscripts\War.pwn(271) : error 017: undefined symbol "pickup"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Error.
And the 271 line it is:
Код:
if(pickupid == pickup)
Help me !
Re: Hello ! Help ! :) -
Flake. - 10.09.2014
Did you define pickup at the top of your script? (Making it a global variable) ?
Re: Hello ! Help ! :) -
Marianforte - 10.09.2014
no flake , i did not , how I put the defines ?
+rep if you help me
Respuesta: Hello ! Help ! :) -
Stront - 10.09.2014
At the top of the script, where the other new's are:
new pickup;
Re: Hello ! Help ! :) -
Marianforte - 10.09.2014
Stront , I added , look at what I posted !
Re: Hello ! Help ! :) -
Flake. - 10.09.2014
Add your
at the top of your gamemode bellow your includes etc.
Re: Hello ! Help ! :) -
Marianforte - 10.09.2014
I added !

But not working

!