script problem
#1

i created i filterscript that drops a money bag when player died but here is the error

PHP код:
D:\gta\Torreto Racing\filterscripts\yosis.pwn(62) : error 001expected token";"but found "-identifier-"
D:\gta\Torreto Racing\filterscripts\yosis.pwn(62) : error 017undefined symbol "money"
D:\gta\Torreto Racing\filterscripts\yosis.pwn(63) : error 035argument type mismatch (argument 2)
D:\gta\Torreto Racing\filterscripts\yosis.pwn(150) : error 017undefined symbol "money"
Pawn compiler 3.2.3664              Copyright (c1997-2006ITB CompuPhase 
Here is the errored lines

PHP код:
public OnPlayerDeath(playeridkilleridreason)
{
    new 
Float:xFloat:yFloat:z;
    
GetPlayerPos(killeridxyz)
    
money CreatePickup(15502x,y,z);
    
SendClientMessage(playerid"Money bag spawned");
    return 
1;

and
PHP код:
public OnPlayerPickUpPickup(playeridpickupid)
{
    
GivePlayerMoney(playerid,1550);
    
DestroyPickup(money);
    return 
1;

sorry for bad english and big size i just love the size here
Reply


Messages In This Thread
script problem - by davidman2 - 17.04.2012, 18:42
Re: script problem - by Jonny5 - 17.04.2012, 18:43
Re: script problem - by davidman2 - 17.04.2012, 18:45
Re: script problem - by Jonny5 - 17.04.2012, 18:47
Re: script problem - by davidman2 - 17.04.2012, 18:47
Re: script problem - by Jonny5 - 17.04.2012, 18:50
Re: script problem - by aRoach - 17.04.2012, 18:54
Re: script problem - by davidman2 - 17.04.2012, 18:56

Forum Jump:


Users browsing this thread: 1 Guest(s)