Ich hab mich shon bei dem thema [Wunsch]set hp 0 erkundigt aber nun wurd das thema geschlossen.
ich habimmer noch das problem
hier meine error:
D:\GTA San andreas\SA.MP 0.3\samp03asvr_win32\gamemodes\CaR.pwn(415) : warning 225: unreachable code
D:\GTA San andreas\SA.MP 0.3\samp03asvr_win32\gamemodes\CaR.pwn(415) : error 017: undefined symbol "cmd"
D:\GTA San andreas\SA.MP 0.3\samp03asvr_win32\gamemodes\CaR.pwn(418) : error 017: undefined symbol "index"
D:\GTA San andreas\SA.MP 0.3\samp03asvr_win32\gamemodes\CaR.pwn(418) : error 047: array sizes do not match, or destination array is too small
D:\GTA San andreas\SA.MP 0.3\samp03asvr_win32\gamemodes\CaR.pwn(422) : error 029: invalid expression, assumed zero
D:\GTA San andreas\SA.MP 0.3\samp03asvr_win32\gamemodes\CaR.pwn(429) : error 029: invalid expression, assumed zero
D:\GTA San andreas\SA.MP 0.3\samp03asvr_win32\gamemodes\CaR.pwn(593) : warning 203: symbol is never used: "pInfo"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
5 Errors.
if (strcmp(cmd, "/killhim", true) == 0)
{
new tmp[30],id;
tmp = strtok(cmdtext, index);
if (strlen(tmp))
{
id = strval(tmp);
if (IsPlayerConnected(id) && gTeam[playerid] == TEAM_medic))
{
SetPlayerHealth(id,100.0);
GivePlayerMoney(id, -100);
SendClientMessage(id, 0x00FF00AA, "Du wurdest geheilt!");
SendClientMessage(playerid, 0x00FF00AA, "Du hast eine Person geheilt!");
}
else
{
SendClientMessage(playerid, 0xFF0000AA, "Spieler nicht gefunden!");
}
}
else
{
SendClientMessage(playerid, 0xFF0000AA, "Hinweis: \"/killhim <playerid>\"");
}
}
return 1;
}
return 0;
}