Quote
gamemodes\SBDM.pwn(369) : error 017: undefined symbol "cmd"
gamemodes\SBDM.pwn(373) : error 017: undefined symbol "tmp"
gamemodes\SBDM.pwn(373) : error 017: undefined symbol "idx"
gamemodes\SBDM.pwn(374) : error 017: undefined symbol "tmp"
gamemodes\SBDM.pwn(379) : error 017: undefined symbol "giveplayerid"
gamemodes\SBDM.pwn(379) : error 017: undefined symbol "ReturnUser"
gamemodes\SBDM.pwn(382) : error 017: undefined symbol "giveplayerid"
gamemodes\SBDM.pwn(384) : error 017: undefined symbol "giveplayerid"
gamemodes\SBDM.pwn(386) : error 017: undefined symbol "giveplayerid"
gamemodes\SBDM.pwn(386) : error 017: undefined symbol "giveplayer"
gamemodes\SBDM.pwn(386) : error 029: invalid expression, assumed zero
gamemodes\SBDM.pwn(386) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
12 Errors.
gamemodes\SBDM.pwn(373) : error 017: undefined symbol "tmp"
gamemodes\SBDM.pwn(373) : error 017: undefined symbol "idx"
gamemodes\SBDM.pwn(374) : error 017: undefined symbol "tmp"
gamemodes\SBDM.pwn(379) : error 017: undefined symbol "giveplayerid"
gamemodes\SBDM.pwn(379) : error 017: undefined symbol "ReturnUser"
gamemodes\SBDM.pwn(382) : error 017: undefined symbol "giveplayerid"
gamemodes\SBDM.pwn(384) : error 017: undefined symbol "giveplayerid"
gamemodes\SBDM.pwn(386) : error 017: undefined symbol "giveplayerid"
gamemodes\SBDM.pwn(386) : error 017: undefined symbol "giveplayer"
gamemodes\SBDM.pwn(386) : error 029: invalid expression, assumed zero
gamemodes\SBDM.pwn(386) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
12 Errors.
Evo i komanda :
if(strcmp(cmd, "/kick", true) == 0)
{
if(IsPlayerConnected(playerid))
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_LIGHTBLUE, ""#COL_RED "KORISTITE"#COL_LIGHTBLUE ": /kick ["#COL_RED "Korisnicko ime i prezime ili ID korisnika"#COL_LIGHTBLUE "] ["#COL_RED "Razlog"#COL_LIGHTBLUE "]");
return 1;
}
giveplayerid = ReturnUser(tmp);
if (PlayerInfo >= 1)
{
if(IsPlayerConnected(giveplayerid))
{
if(giveplayerid != INVALID_PLAYER_ID)
{
GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
new length = strlen(cmdtext);
while ((idx < length) && (cmdtext <= ' '))
{
idx++;
}
new offset = idx;
new result;
while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
{
result[idx - offset] = cmdtext;
idx++;
}
result[idx - offset] = EOS;
if(!strlen(result))
{
SendClientMessage(playerid, COLOR_LIGHTBLUE, ""#COL_RED "KORISTITE"#COL_LIGHTBLUE ": /kick ["#COL_RED "Korisnicko ime i prezime ili ID korisnika"#COL_LIGHTBLUE "] ["#COL_RED "Razlog"#COL_LIGHTBLUE "]");
return 1;
}
new year, month,day;
getdate(year, month, day);
format(string, sizeof(string), ": %s je izbacio %s, Razlog: %s (%d-%d-%d)", giveplayer, sendername, (result),month,day,year);
KickLog(string);
Kick(giveplayerid);
format(string, sizeof(string), ": %s je izbacio %s, Razlog: %s", giveplayer, sendername, (result));
SendClientMessageToAll(COLOR_LIGHBLUE, string);
return 1;
}
}
}
else
{
format(string, sizeof(string), "["#COL_RED "GRESKA"#COL_LIGHTBLUE "] %d nije aktivan igrac.", giveplayerid);
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
}
}
return 1;
}
Komandu nisam ja radio , nego sam ju uzeo tu sa jednog TUTorijala ( Sopranov TUT tu negdje je )
Sad da ne pisem svaki red posebno , radi se opcenito o toj komandi..
O MODU : Inace to je mali TDM server , imam 2-3 komande , tek sam krenuo.. I stalno me ovo zeza , koju god komandu dodam.
