[POMOC]Chat

Započeo William Johnson, Novembar 26, 2011, 22:49:58 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 3 gostiju pregledaju ovu temu.

Skripta koju koristim:Sreetstories
Detaljan opis problema: Znaci ja sebi dam heada. pise Head Admin ....   kad si dam ADmin lvl 1 pise isto head admin ... kako to da rjesim nznm sta nevalja?
Dio skripte:
Neke slike/video za lakse dobivanje pomoci(neobavezno):

if(strcmp(cmd, "/g", true) == 0 || strcmp(cmd, "/gm", 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[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_GRAD2, "Koristi: /g(m) [Game Master Chat]");
return 1;
}
format(string, sizeof(string), "{00FF1D}%d {00FF1D}GameMaster {00FF1D}%s: {FFFFFF}%s", PlayerInfo[playerid][pGameMaster], sendername, result);
if (PlayerInfo[playerid][pGameMaster] >= 1)

format(string, sizeof(string), "{00FF1D}%d {00FF1D}Admin {00FF1D}%s: {FFFFFF}%s", PlayerInfo[playerid][pAdmin], sendername, result);
if (PlayerInfo[playerid][pAdmin] <= 1337)

format(string, sizeof(string), "{00FF1D}Head Admin {00FF1D}%s: {FFFFFF}%s", sendername, result);
if (PlayerInfo[playerid][pAdmin] >= 1338)

printf("{00FF00}|%d {00FF00}GameMaster {00FF00}%s: {FFFFFF}%s", playerid, sendername, result);

{
SendAdminMessage(COLOR_LIGHTBLUE, string);
}
}
         return 1;
}


Poslednja Izmena: Novembar 26, 2011, 23:33:14 POSLE PODNE od William Johnson

Evo ti pa samo editaj sta ti nevalja :)

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[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_GRAD2, "KORISTENJE: (/a)dmin [admin chat]");
return 1;
}

new arank[64];
if(PlayerInfo[playerid][pAdmin] == 1) { arank = "Admin [1]"; }
else if(PlayerInfo[playerid][pAdmin] == 2) { arank = "Admin [2]"; }
else if(PlayerInfo[playerid][pAdmin] == 3) { arank = "Admin [3]"; }
else if(PlayerInfo[playerid][pAdmin] == 4) { arank = "Admin [4]"; }
else if(PlayerInfo[playerid][pAdmin] == 1337) { arank = "Admin [1337]"; }
else if(PlayerInfo[playerid][pAdmin] == 1338) { arank = "Admin [1338]"; }
else { arank = "Moderator"; }

format(string, sizeof(string), "%s %s: %s", arank, sendername, result);
if (PlayerInfo[playerid][pAdmin] >= 1)
{
SendAdminMessage(COLOR_YELLOW, string);
}
printf("Admin %s: %s", sendername, result);
}
return 1;
}



Virtual Reality Roleplay
Register & Login System - Dialog [100%]
Car Dealership System - Dialog [100%]
Trunk System - Dialog [100%]
Fuel, Registarske Oznake, Engine, DMV System [100%]
Animations [100%]
Admin & GameMaster System [100%]
Save Tunning System [100%]
Job System - In Progress [8%]

OPet mi dodju erori.. ako moze ikako da onu moju komandu popravis? il bilo kako? Samo da kad A lvl 1 pise da pise 1 Admin  %S itd .. a ne stalno Head Admin

Citat: William Johnson poslato Novembar 27, 2011, 09:55:03 PRE PODNE
OPet mi dodju erori.. ako moze ikako da onu moju komandu popravis? il bilo kako? Samo da kad A lvl 1 pise da pise 1 Admin  %S itd .. a ne stalno Head Admin
daj nam error

Hvala.. Moze LOCK
Poslednja Izmena: Novembar 27, 2011, 17:13:20 POSLE PODNE od William Johnson