Sziasztok!
valaki tudna segíteni? ::|
[pawn]CMD:heal(playerid, params[])
{
if(GetPlayerSkin(playerid) == 274){
new giveplayerid;
new Float:x, Float:y, Float:z;
GetPlayerPos(playerid, x, y, z);
if(sscanf(params, \"u\", giveplayerid)) return SendClientMessage(playerid, 0xFF0000AA, \"Használat: /heal [iD]\");
if(giveplayerid == INVALID_PLAYER_ID) return SendClientMessage(playerid, 0xFF0000AA, \"Hiba: Nincs ilyen játékos!\");
if(!IsPlayerInRangeOfPoint(giveplayerid, 3.0, x,y,z)) return SendClientMessage(playerid, 0xFF0000AA, \"Hiba: A játékos nincs a közeledben\");
new Name[MAX_PLAYER_NAME];
new Name2[MAX_PLAYER_NAME];
new id;
GetPlayerName(playerid, Name, sizeof(Name));
GetPlayerName(id, Name2, sizeof(Name2));
{
format(string,sizeof(string),\"[%s MENTÕS]: %s Életét feltöltötte!\",Name,Name2);
SendClientMessageToAll(0xaada04AA, string);
SetPlayerHealth(giveplayerid, 100);
}else{ SendClientMessage(playerid, hiba, \"Nem vagy mentõs!\");}
return 1;
}[/pawn]
[pawn]error 017: undefined symbol \"string\"
error 017: undefined symbol \"string\"
error 029: invalid expression, assumed zero
fatal error 107: too many error messages on one line[/pawn]