Hallo ich bekomme errors weis nicht wie man die behebt
public OnPlayerDeath(playerid, killerid, reason)
{
new Float:X,Float:Y,Float:Z;
GetPlayerPos(playerid, X, Y, Z);
DropGun(playerid, GetPlayerWeapon(playerid),GetPlayerAmmo(playerid), X,Y,Z,GetPlayerVirtualWorld(playerid), GetPlayerInterior(playerid));
return 1;
}
command(dropgun, playerid, params[])
{
new Float:X,Float:Y,Float:Z;
new GunID = GetPlayerWeapon(playerid);
new GunAmmo = GetPlayerAmmo(playerid);
GetPlayerName(playerid, sendername, sizeof(sendername));
GetPlayerPos(playerid, X, Y, Z);
RemovePlayerWeapon(playerid, GunID);
DropGun(playerid, GunID,GunAmmo,X,Y,Z,GetPlayerVirtualWorld(playerid ),GetPlayerInterior(playerid));
format(string, sizeof(string), "* %s drops his weapon to the pavement.", sendername);
SendLocalMessage(playerid, string, 10.0, COLOR_ACTION, COLOR_ACTION);
return 1;
}
C:\Users\Tom\Desktop\GcR Selfmade\gamemodes\PcR.pwn(157) : error 017: undefined symbol "DropGun"
C:\Users\Tom\Desktop\GcR Selfmade\gamemodes\PcR.pwn(326) : error 017: undefined symbol "sendername"
C:\Users\Tom\Desktop\GcR Selfmade\gamemodes\PcR.pwn(326) : error 017: undefined symbol "sendername"
C:\Users\Tom\Desktop\GcR Selfmade\gamemodes\PcR.pwn(326) : error 029: invalid expression, assumed zero
C:\Users\Tom\Desktop\GcR Selfmade\gamemodes\PcR.pwn(326) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
5 Errors.
ich hoffe ihr könnt mir schnell dabei helfen
mit freundlichen Grüßen
Tom