[Pomoc] Komanda /kick.

Započeo Darko, Februar 11, 2011, 22:33:07 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 2 gostiju pregledaju ovu temu.

Imam nesto malo od adm sys. i sad sam krenuo sa komandama.. I evo sto me pati sad

Citatgamemodes\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.

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[playerid][pAdmin] >= 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] <= ' '))
{
idx++;
}
new offset = idx;
new result[64];
while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
{
result[idx - offset] = cmdtext[idx];
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), "[ADM]: %s je izbacio %s, Razlog: %s (%d-%d-%d)", giveplayer, sendername, (result),month,day,year);
KickLog(string);
Kick(giveplayerid);
format(string, sizeof(string), "[ADM]: %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.
Poslednja Izmena: Februar 11, 2011, 22:40:02 POSLE PODNE od Darko

Sopranov tut za gamemastere mislim, to ti je komanda za GodFather mod  :-\ 8)

Respekt:
eXtreme
BloodMaster
Paradox

Citat: John_DillingthonEldin_Omanovic mi je ukrao auto.

Svjedok: Emir_Scofield.




Rekao mi je jedan frend da moze i za admine , samo da ne pisem pGameMaster , neg pAdmin..

Ali mi rega sve dobro , u script files pise "Admin=0" itd.

Ali me pate te komande ,

kak cu ja imat komande na serveru koje imaju tak to nes slicno ko GF i nece mi :( ?

Citat: Darko poslato Februar 11, 2011, 22:43:07 POSLE PODNE
Rekao mi je jedan frend da moze i za admine , samo da ne pisem pGameMaster , neg pAdmin..

Ali mi rega sve dobro , u script files pise "Admin=0" itd.

Ali me pate te komande ,

kak cu ja imat komande na serveru koje imaju tak to nes slicno ko GF i nece mi :( ?



Vidi, ako radis gamemode od 0 onda pogledaj RedManov tut za admine :D

Respekt:
eXtreme
BloodMaster
Paradox

Citat: John_DillingthonEldin_Omanovic mi je ukrao auto.

Svjedok: Emir_Scofield.




Jesam , ali nerazumijem one PVarove i ja vec imam neki login , register system..

I cjel mod mi moze u paste bin stat , vrlo mali :)

____

Nego jel mi mozes kako pomoci , da Ä'abe ne pisem tu..

Bilo kako da mi pokazete samo da skuzim kak da to popravim ?

Pa, tebi mozda nije pAdmin nego pAdministrator...
Pogledaj redmanov tut
For ya...


I'd catch a grenade for ya
Throw my hand on a blade for ya
I'd jump in front of a train for ya
You know I'd do anything for ya


BestOne.exe | Mapper | n00b Skripter | Bruno Mars Fan | Balkan SA:MP <3 | Fifa 11 <3


For ya...



ajde daj nam enum pInfo cijeli da vidimo pa cemo ti pomoc

Respekt:
eXtreme
BloodMaster
Paradox

Citat: John_DillingthonEldin_Omanovic mi je ukrao auto.

Svjedok: Emir_Scofield.