Hay Leute,
habe entschlossen was selbst zu machen... kann mir wer helfen bin ja neu im scripten und macht spaß... aber das macht kein spaß ;D 9 Errors aber aus Fehlern lernt man...^^
Die Errors:
ZitatAlles anzeigenC:\SAMP\Server\gamemodes\testmedic.pwn(71) : error 001: expected token: ")", but found ";"
C:\SAMP\Server\gamemodes\testmedic.pwn(71) : error 036: empty statement
C:\SAMP\Server\gamemodes\testmedic.pwn(73) : error 017: undefined symbol "LoopingAnim"
C:\SAMP\Server\gamemodes\testmedic.pwn(74) : error 017: undefined symbol "FreezePlayer"
C:\SAMP\Server\gamemodes\testmedic.pwn(78) : warning 225: unreachable code
C:\SAMP\Server\gamemodes\testmedic.pwn(78) : error 001: expected token: ")", but found ";"
C:\SAMP\Server\gamemodes\testmedic.pwn(78) : error 036: empty statement
C:\SAMP\Server\gamemodes\testmedic.pwn(80) : error 017: undefined symbol "plyayerid"
C:\SAMP\Server\gamemodes\testmedic.pwn(81) : error 017: undefined symbol "FreezePlayer"
C:\SAMP\Server\gamemodes\testmedic.pwn(106) : error 017: undefined symbol "SetPlayerHeal"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
9 Errors.
Der Script:
public OnPlayerDeath(playerid, killerid, reason)
{
if(SetPlayerHealth(playerid,0);
{
LoopingAnim(playerid, "CRACK", "crckdeth2", 4.0, 1, 0, 0, 0, 0); // Dieing of Crack
FreezePlayer(playerid);
SendClientMessage(playerid,0xFFFA00FF,"Benutze /heal um dich zu heilen");
return 1;
}
if(SetPlayerHealth(playerid,100);
{
GivePlayerMoney(plyayerid,-3000);
UnFreezePlayer(playerid);
SendClientMessage(playerid,0xFFFA00FF,"Du hast dich erfolgreich verarztet, kosten -3000$");
return 1;
}
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/heal", cmdtext, true, 10) == 0)
{
SetPlayerHeal(playerid,100);
return 1;
}
return 0;
}
Danke schonmal der wo mir helfen kann, oder was schicken kann!
Gruß Andy