Pomoci za mene

Započeo [BC]spiele, Januar 28, 2011, 19:55:36 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 2 gostiju pregledaju ovu temu.

evo opet ja  ;D

dakle prjemestio sam komandu iz cmd i dcmd

i zanima me jel ovo tocno.

public OnPlayerCommandText(playerid, cmdtext[])
{
dcmd(gotols, 6, cmdtext);
return 0;
}


i odman ispod toga.

dcmd_gotols(playerid, params[])
{
    new id;
if (strlen(params))
{
id = strval(params);
if (IsPlayerConnected(id))
{
SetPlayerHealth(id, 100.0);
SendClientMessage(id, 0x00FF00AA, "You have been healed");
SendClientMessage(playerid, 0x00FF00AA, "Player healed");
}
else
{
SendClientMessage(playerid, 0xFF0000AA, "Player not found");
}
}
else
{
SendClientMessage(playerid, 0xFF0000AA, "Usage: \"/heal <playerid>\"");
}
return 1;
}


i na vrh skripte.
#define dcmd(%1,%2,%3) if (!strcmp((%3)[1], #%1, true, (%2)) && ((((%3)[(%2) + 1] == '\0') && (dcmd_%1(playerid, ""))) || (((%3)[(%2) + 1] == ' ') && (dcmd_%1(playerid, (%3)[(%2) + 2]))))) return 1


slika by NaNx


www.balkan-city.info
vidi vise i osjeti razliku

Pa compile, i jer ti izaÄ'u neki errori?