new strget[256];
if(!strcmp(strget(cmdtext,0),"/heal"))
{
if(gTeam[playerid] == 4)
{
new ziel = strval(strget(cmdtext,1));
new preis = strval(strget(cmdtext,2)); // Is für mich neu muss aber ja klappen wenn du das so hast
if(!strlen(strget(cmdtext,2))) { SendClientMessage(playerid,COLOR_RED,"Benutzung: /heal [ID] [preis]"); return 1; }
if(GetPlayerVehicleid(playerid) != 416 && GetPlayerVehicleid(ziel) != 416) { SendClientMessage(playerid,COLOR_RED,"Du musst im RTW sitzen"); return 1; }
SetPlayerHealth(ziel,100);
GivePlayerMoney(playerid, -preis);
new msg[100],msg2[100];
format(msg, sizeof(msg), "%s hat dich für %d$ geheilt",PlayerName(playerid),preis);
format(msg2, sizeof(msg2), "Du hast %s für %d$ geheilt",PlayerName(ziel),preis);
SendClientMessage(ziel, COLOR,msg);
SendClientMessage(playerid, COLOR,msg2);
}
else
{
SendClientMessage(playerid,COLOR_RED,"Du bist kein Medic!");
}
return 1;
}
C:\Users\Dominik\Desktop\Alle Programme\Grand Theft Auto\SCRIPTING\samp 0.3a server\gamemodes\SLRP.pwn(19877) : error 012: invalid function call, not a valid address
C:\Users\Dominik\Desktop\Alle Programme\Grand Theft Auto\SCRIPTING\samp 0.3a server\gamemodes\SLRP.pwn(19877) : warning 215: expression has no effect
C:\Users\Dominik\Desktop\Alle Programme\Grand Theft Auto\SCRIPTING\samp 0.3a server\gamemodes\SLRP.pwn(19877) : warning 215: expression has no effect
C:\Users\Dominik\Desktop\Alle Programme\Grand Theft Auto\SCRIPTING\samp 0.3a server\gamemodes\SLRP.pwn(19877) : error 001: expected token: ";", but found ")"
C:\Users\Dominik\Desktop\Alle Programme\Grand Theft Auto\SCRIPTING\samp 0.3a server\gamemodes\SLRP.pwn(19877) : error 029: invalid expression, assumed zero
C:\Users\Dominik\Desktop\Alle Programme\Grand Theft Auto\SCRIPTING\samp 0.3a server\gamemodes\SLRP.pwn(19877) : fatal error 107: too many error messages on one line