Hello ! Help ! :)
#1

Hello ! I tried to make a pick-up wich it is givin money ! So I made !

I put :
Код:
new pickup;
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 !
Reply
#2

Did you define pickup at the top of your script? (Making it a global variable) ?
Reply
#3

no flake , i did not , how I put the defines ?
Код:
#define pickup
+rep if you help me
Reply
#4

At the top of the script, where the other new's are:

new pickup;
Reply
#5

Stront , I added , look at what I posted !
Reply
#6

Add your

pawn Код:
new pickup;
at the top of your gamemode bellow your includes etc.
Reply
#7

I added ! But not working !
Reply


Forum Jump:


Users browsing this thread: