Hi
also ich will in meinem Script einfügen, dass man, wenn man stirbt, seine Waffen verliert(was man ohne hin tut^^) und diese dann als Pickup nach dem Tod erscheinen.
ich wollte das jetzt so machen:
public OnPlayerDeath1(playerid,pickup,pos)
{
GetPlayerPos(playerid,pos);
if(GetWeaponName(playerid,pickup) == 1)
{
CreatePickup(331,4,pos);
}
else if(GetWeaponName(playerid,pickup) == 2)
{
CreatePickup(333,4,pos);
}
else if(GetWeaponName(playerid,pickup) == 3)
{
CreatePickup(334,4,pos);
}
else if(GetWeaponName(playerid,pickup) == 4)
{
CreatePickup(335,4,pos);
}
// ...
return 1;
}
Kann mir bitte jmd helfen, bzw. eine andere Möglichkeit sagen, das umzusetzen?
lg
diese errors bekomme ich:
ZitatAlles anzeigenSpoiler anzeigen C:\Programme\Rockstar Games\Grand Theft Auto San Andreas\gamemodes\lvdm.pwn(284) : warning 213: tag mismatch
C:\Programme\Rockstar Games\Grand Theft Auto San Andreas\gamemodes\lvdm.pwn(284) : warning 202: number of arguments does not match definition
C:\Programme\Rockstar Games\Grand Theft Auto San Andreas\gamemodes\lvdm.pwn(284) : warning 202: number of arguments does not match definition
C:\Programme\Rockstar Games\Grand Theft Auto San Andreas\gamemodes\lvdm.pwn(285) : error 035: argument type mismatch (argument 2)
C:\Programme\Rockstar Games\Grand Theft Auto San Andreas\gamemodes\lvdm.pwn(287) : warning 202: number of arguments does not match definition
C:\Programme\Rockstar Games\Grand Theft Auto San Andreas\gamemodes\lvdm.pwn(287) : warning 202: number of arguments does not match definition
C:\Programme\Rockstar Games\Grand Theft Auto San Andreas\gamemodes\lvdm.pwn(289) : error 035: argument type mismatch (argument 2)
C:\Programme\Rockstar Games\Grand Theft Auto San Andreas\gamemodes\lvdm.pwn(291) : warning 202: number of arguments does not match definition
C:\Programme\Rockstar Games\Grand Theft Auto San Andreas\gamemodes\lvdm.pwn(291) : warning 202: number of arguments does not match definition
C:\Programme\Rockstar Games\Grand Theft Auto San Andreas\gamemodes\lvdm.pwn(293) : error 035: argument type mismatch (argument 2)
C:\Programme\Rockstar Games\Grand Theft Auto San Andreas\gamemodes\lvdm.pwn(295) : warning 202: number of arguments does not match definition
C:\Programme\Rockstar Games\Grand Theft Auto San Andreas\gamemodes\lvdm.pwn(295) : warning 202: number of arguments does not match definition
C:\Programme\Rockstar Games\Grand Theft Auto San Andreas\gamemodes\lvdm.pwn(297) : error 035: argument type mismatch (argument 2)
C:\Programme\Rockstar Games\Grand Theft Auto San Andreas\gamemodes\lvdm.pwn(299) : warning 202: number of arguments does not match definition
C:\Programme\Rockstar Games\Grand Theft Auto San Andreas\gamemodes\lvdm.pwn(299) : warning 202: number of arguments does not match definition
4 Errors.