[POMOC] Chat

Započeo Glisa, Januar 06, 2012, 11:33:14 PRE PODNE

prethodna tema - sledeća tema

0 članova i 2 gostiju pregledaju ovu temu.

Skripta koju koristim: CLRP
Detaljan opis problema: Hocu da namestim da admini mogu koristit /g chat
Dio skripte: //----------------------------------[AdminChat]-----------------------------------------------
if(strcmp(cmd, "/admin", true) == 0 || strcmp(cmd, "/a", true) == 0)
{
    if(IsPlayerConnected(playerid))
    {
GetPlayerName(playerid, sendername, sizeof(sendername));
new length = strlen(cmdtext);
while ((idx < length) && (cmdtext[idx] <= ' '))
{
idx++;
}
new offset = idx;
new result[128];
while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
{
result[idx - offset] = cmdtext[idx];
idx++;
}
result[idx - offset] = EOS;
if(!strlen(result))
{
SendClientMessage(playerid, COLOR_GRAD2, "Koristi: /a [Admin Chat]");
return 1;
}
format(string, sizeof(string), "- [%d][A]%s:{FFFFFF} %s", PlayerInfo[playerid][pAdmin], sendername, result);
if (PlayerInfo[playerid][pAdmin] >= 1)
{
SendAdminMessage(SVETLOPLAVA, string);
}
printf("Admin %s: %s", sendername, result);
}
return 1;
}
//----------------------------------[GameSageChat]-----------------------------------------------
if(strcmp(cmd, "/gamesage", true) == 0 || strcmp(cmd, "/g", true) == 0)
{
    if(IsPlayerConnected(playerid))
    {
GetPlayerName(playerid, sendername, sizeof(sendername));
new length = strlen(cmdtext);
while ((idx < length) && (cmdtext[idx] <= ' '))
{
idx++;
}
new offset = idx;
new result[128];
while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
{
result[idx - offset] = cmdtext[idx];
idx++;
}
result[idx - offset] = EOS;
if(!strlen(result))
{
SendClientMessage(playerid, COLOR_GRAD2, "Koriscenje: (/g)amesage [GameSages Chat]");
return 1;
}

new gmrank[64];
if(PlayerInfo[playerid][pGameSage] == 1) { gmrank = "[1]"; }
else if(PlayerInfo[playerid][pGameSage] == 2) { gmrank = "[2]"; }
else if(PlayerInfo[playerid][pGameSage] == 3) { gmrank = "[3]"; }
else if(PlayerInfo[playerid][pGameSage] == 4) { gmrank = "[4]"; }
            else { gmrank = "[1]"; }

format(string, sizeof(string), "- %s[G]%s: {FFFFFF}%s", gmrank, sendername, result);
if (PlayerInfo[playerid][pGameSage] >= 1)
{
SendGSMessage(ZELENKASTA, string);
}
printf("GameSage %s: %s", sendername, result);
}
return 1;
}

Neke slike/video za lakse dobivanje pomoci(neobavezno): //

Citat: Mare poslato Januar 06, 2012, 11:33:14 PRE PODNE
Skripta koju koristim: CLRP
Detaljan opis problema: Hocu da namestim da admini mogu koristit /g chat
Dio skripte: //----------------------------------[AdminChat]-----------------------------------------------
if(strcmp(cmd, "/admin", true) == 0 || strcmp(cmd, "/a", true) == 0)
{
    if(IsPlayerConnected(playerid))
    {
GetPlayerName(playerid, sendername, sizeof(sendername));
new length = strlen(cmdtext);
while ((idx < length) && (cmdtext[idx] <= ' '))
{
idx++;
}
new offset = idx;
new result[128];
while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
{
result[idx - offset] = cmdtext[idx];
idx++;
}
result[idx - offset] = EOS;
if(!strlen(result))
{
SendClientMessage(playerid, COLOR_GRAD2, "Koristi: /a [Admin Chat]");
return 1;
}
format(string, sizeof(string), "- [%d][A]%s:{FFFFFF} %s", PlayerInfo[playerid][pAdmin], sendername, result);
if (PlayerInfo[playerid][pAdmin] >= 1)
{
SendAdminMessage(SVETLOPLAVA, string);
}
printf("Admin %s: %s", sendername, result);
}
return 1;
}
//----------------------------------[GameSageChat]-----------------------------------------------
if(strcmp(cmd, "/gamesage", true) == 0 || strcmp(cmd, "/g", true) == 0)
{
    if(IsPlayerConnected(playerid))
    {
GetPlayerName(playerid, sendername, sizeof(sendername));
new length = strlen(cmdtext);
while ((idx < length) && (cmdtext[idx] <= ' '))
{
idx++;
}
new offset = idx;
new result[128];
while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
{
result[idx - offset] = cmdtext[idx];
idx++;
}
result[idx - offset] = EOS;
if(!strlen(result))
{
SendClientMessage(playerid, COLOR_GRAD2, "Koriscenje: (/g)amesage [GameSages Chat]");
return 1;
}

new gmrank[64];
if(PlayerInfo[playerid][pGameSage] == 1) { gmrank = "[1]"; }
else if(PlayerInfo[playerid][pGameSage] == 2) { gmrank = "[2]"; }
else if(PlayerInfo[playerid][pGameSage] == 3) { gmrank = "[3]"; }
else if(PlayerInfo[playerid][pGameSage] == 4) { gmrank = "[4]"; }
                                          else if(PlayerInfo[playerid][pAdmin] == 1){admrank ="[1]";}  //ZNACI SAMO DODAJES OVO I LEVEL ADMINA..
            else { gmrank = "[1]"; }

format(string, sizeof(string), "- %s[G]%s: {FFFFFF}%s", gmrank, sendername, result);
if (PlayerInfo[playerid][pGameSage] >= 1)
{
SendGSMessage(ZELENKASTA, string);
}
printf("GameSage %s: %s", sendername, result);
}
return 1;
}

Neke slike/video za lakse dobivanje pomoci(neobavezno): //

Radio sam ja to brate,nego mi izbacuje erore i nece da pokrene server evo erori :

D:\Game mod scripte samp\BL\Balkan Life RPG-novi mod\gamemodes\BLRP.pwn(50840) : error 017: undefined symbol "admrank"
D:\Game mod scripte samp\BL\Balkan Life RPG-novi mod\gamemodes\BLRP.pwn(50840) : warning 215: expression has no effect
D:\Game mod scripte samp\BL\Balkan Life RPG-novi mod\gamemodes\BLRP.pwn(50841) : error 017: undefined symbol "admrank"
D:\Game mod scripte samp\BL\Balkan Life RPG-novi mod\gamemodes\BLRP.pwn(50841) : warning 215: expression has no effect
D:\Game mod scripte samp\BL\Balkan Life RPG-novi mod\gamemodes\BLRP.pwn(50842) : error 017: undefined symbol "admrank"
D:\Game mod scripte samp\BL\Balkan Life RPG-novi mod\gamemodes\BLRP.pwn(50842) : warning 215: expression has no effect
D:\Game mod scripte samp\BL\Balkan Life RPG-novi mod\gamemodes\BLRP.pwn(50843) : error 017: undefined symbol "admrank"
D:\Game mod scripte samp\BL\Balkan Life RPG-novi mod\gamemodes\BLRP.pwn(50843) : warning 215: expression has no effect
D:\Game mod scripte samp\BL\Balkan Life RPG-novi mod\gamemodes\BLRP.pwn(50844) : error 017: undefined symbol "admrank"
D:\Game mod scripte samp\BL\Balkan Life RPG-novi mod\gamemodes\BLRP.pwn(50844) : warning 215: expression has no effect
D:\Game mod scripte samp\BL\Balkan Life RPG-novi mod\gamemodes\BLRP.pwn(50845) : error 017: undefined symbol "admrank"
D:\Game mod scripte samp\BL\Balkan Life RPG-novi mod\gamemodes\BLRP.pwn(50845) : warning 215: expression has no effect

Miči ovo GameSage iz moda !
Poslednja Izmena: Januar 06, 2012, 12:27:16 POSLE PODNE od [TL:RP] Gotti747
Citat: ...Neno... poslato Januar 26, 2013, 23:31:02 POSLE PODNE
Poceo sam mapati i tu je doslo do problema.Nakon par mapa,vidio sam post Gottia i kaze da nista nevalja da je katastrofa,i pocnemo se svadjati,psovati.Popusimo bananu obojica,i nakon toga nesto sam napravio (mapu) i Gotti kaze dobra,uh reko opet me zajebava,i saljem ja njemu na pm reko ti mene zajebavas,kaze on ne,i pomirimo se.Nakon toga postali smo dosta dobri

To je vec bilo u modu..dok je bio CL