17.04.2012, 18:42
i created i filterscript that drops a money bag when player died but here is the error
Here is the errored lines
and
sorry for bad english and big size i just love the size here
PHP код:
D:\gta\Torreto Racing\filterscripts\yosis.pwn(62) : error 001: expected token: ";", but found "-identifier-"
D:\gta\Torreto Racing\filterscripts\yosis.pwn(62) : error 017: undefined symbol "money"
D:\gta\Torreto Racing\filterscripts\yosis.pwn(63) : error 035: argument type mismatch (argument 2)
D:\gta\Torreto Racing\filterscripts\yosis.pwn(150) : error 017: undefined symbol "money"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
PHP код:
public OnPlayerDeath(playerid, killerid, reason)
{
new Float:x, Float:y, Float:z;
GetPlayerPos(killerid, x, y, z)
money = CreatePickup(1550, 2, x,y,z);
SendClientMessage(playerid, "Money bag spawned");
return 1;
}
PHP код:
public OnPlayerPickUpPickup(playerid, pickupid)
{
GivePlayerMoney(playerid,1550);
DestroyPickup(money);
return 1;
}