if(AdminDuty == 1) if(PlayerInfo[rejtozes] == 0) { SetPlayerChatBubble(i, \"Adminszolgálatban, /pm: %d\", 0xFB0000FF ,40,1200, playerid); }
SziasztokAdminszolgálatba lépek és a fejem fölött ugye oda van írva , hogy Adminszolgálatban , /pm [id]Nem írja ki az ID-t hanem %d - t ír..Mi a hiba?? if(AdminDuty == 1) if(PlayerInfo[rejtozes] == 0) { SetPlayerChatBubble(i, \"Adminszolgálatban, /pm: %d\", 0xFB0000FF ,40,1200, playerid); } [mod]Javítottam pawn code tagre az idézetet![/mod]
if(AdminDuty == 1) if(PlayerInfo[rejtozes] == 0) { new string[256]; format(string, sizeof(string), \"Adminszolgálatban, /pm %d\", playerid); SetPlayerChatBubble(i, string, 0xFB0000FF ,40,1200); }
if(!strcmp(cmdtext, \"/aduty\", true) || !strcmp(cmdtext, \"/aduty\", true) || !strcmp(cmdtext, \"/aduty\", true) || !strcmp(cmdtext, \"/aduty\", true)) { if(IsPlayerConnected(playerid)) { if(gPlayerLogged[playerid] == 0) { SendClientMessage(playerid, COLOR_GREY, \"Elõbb jelentkezz be!!\"); return 1; } if(Admin(playerid, 1)) { if(AdminDuty[playerid] == 0) { if(PlayerInfo[playerid][rejtozes] == 0) { if(PlayerInfo[playerid][Adminsz] == 1) { Nevekbe(playerid); } if(PlayerInfo[playerid][Adminsz] == 0) { Nevekbe(playerid); } AdminDuty[playerid] = 1; PlayerInfo[playerid][Engedi] = 1; new kuldo[MAX_PLAYER_NAME]; GetPlayerName(playerid, kuldo, sizeof(kuldo)); new Float:AX,Float:AY,Float:AZ; GetPlayerPos(giveplayerid, X1, Y1, Z1); SendClientMessage(playerid,COLOR_WHITE,\"Adminszolgálatba álltál!\"); GetPlayerName(playerid,sendername,sizeof(sendername)); format(string, sizeof(string), \"%s Adminszolgálatba lépett, ha segítség kell írj neki: /pm %d\", sendername, playerid); OOCNews(COLOR_LIGHTBLUE,string); SetPlayerColor(playerid, COLOR_DBLUE); /*DutyLabel[playerid] = Create3DTextLabel(\"Admin Szolgálatban\",0xFB0000FF,0,0,0,50,-1,1); Attach3DTextLabelToPlayer(DutyLabel[playerid], playerid, 0,0,0);*/ TogglePlayerControllable(playerid, 1); new nev[32]; GetPlayerName(playerid, nev, sizeof(nev)); GetPlayerPos(playerid, AX,AY,AZ); SetPlayerPos(playerid, AX,AY,AZ+1); format(stringx,sizeof(stringx), \"%s\",nev); DutyLabelNev[playerid] = Create3DTextLabel(stringx,0xFB0000FF,0,0,0,50,-1,1); Attach3DTextLabelToPlayer(DutyLabelNev[playerid], playerid, 0,0,0.2); new h,mi,s,y,m,d; getdate(y,m,d); gettime(h,mi,s); format(stringx,sizeof(stringx), \"[%d/%d/%d][%d:%d:%d] %s adminszolgálatba állt.\",y,m,d,h,mi,s,nev); LoOoG(stringx); if(Admin(playerid, 1)) { for(new i = 0; i < sizeof(CarInfo); i++) { SetVehicleParamsForPlayer(i,playerid,0,0); } } if(Admin(playerid, 1)) { for(new slot = 0; slot != 12; slot++) { new wep, ammo; GetPlayerWeaponData(playerid, slot, wep, ammo); if(wep != 0 && ammo != 0) { if(wep == 1) { PlayerInfo[playerid][fegyver1] = 1; PlayerInfo[playerid][tolteny1] += ammo; } else if(wep == 5) { PlayerInfo[playerid][fegyver2] = 1; PlayerInfo[playerid][tolteny2] += ammo; } else if(wep == 4) { PlayerInfo[playerid][fegyver3] = 1; PlayerInfo[playerid][tolteny3] += ammo; } else if(wep == 22) { PlayerInfo[playerid][fegyver4] = 1; PlayerInfo[playerid][tolteny4] += ammo; } else if(wep == 24) { PlayerInfo[playerid][fegyver5] = 1; PlayerInfo[playerid][tolteny5] += ammo; } else if(wep == 29) { PlayerInfo[playerid][fegyver6] = 1; PlayerInfo[playerid][tolteny6] += ammo; } else if(wep == 30) { PlayerInfo[playerid][fegyver7] = 1; PlayerInfo[playerid][tolteny7] += ammo; } else if(wep == 31) { PlayerInfo[playerid][fegyver8] = 1; PlayerInfo[playerid][tolteny8] += ammo; } else if(wep == 25) { PlayerInfo[playerid][fegyver9] = 1; PlayerInfo[playerid][tolteny9] += ammo; } else if(wep == 41) { PlayerInfo[playerid][fegyver10] = 1; PlayerInfo[playerid][tolteny10] += ammo; } else if(wep == 17) { PlayerInfo[playerid][fegyver11] = 1; PlayerInfo[playerid][tolteny11] += ammo; } else if(wep == 3) { PlayerInfo[playerid][fegyver12] = 1; PlayerInfo[playerid][tolteny12] += ammo; } } } Fegyverelol[playerid] = 0; SafeResetPlayerWeapons(playerid); TogglePlayerControllable(playerid, 1); } } return 1; } else if(AdminDuty[playerid] == 1) { if(Admin(playerid, 1)) { if(Spectate[playerid] == 255) { //SafeResetPlayerWeapons(playerid); //SetPlayerWeapons(playerid); TogglePlayerControllable(playerid, 1); } SetPlayerHealth(playerid, 100); TogglePlayerControllable(playerid, 1); } if(PlayerInfo[playerid][Adminsz] == 1) { Nevekbe(playerid); } if(PlayerInfo[playerid][Adminsz] == 0) { Nevekki(playerid); } PlayerInfo[playerid][Engedi] = 0; //Delete3DTextLabel(DutyLabel[playerid]); Delete3DTextLabel(DutyLabelNev[playerid]); TogglePlayerControllable(playerid, 1); AdminDuty[playerid] = 0; new kuldo[MAX_PLAYER_NAME]; GetPlayerName(playerid, kuldo, sizeof(kuldo)); new Float:X,Float:Y,Float:Z; GetPlayerPos(playerid, X,Y,Z); SetPlayerPos(playerid, X,Y,Z+1); SetPlayerToTeamColor(playerid); SetPlayerHealth(playerid, 100); SendClientMessage(playerid,COLOR_WHITE,\"Kiléptél Adminszolgálatból!\"); GetPlayerName(playerid,sendername,sizeof(sendername)); format(string, sizeof(string), \"%s kilépett az Adminszolgálatból. Segítség kell /asreport.\", sendername); OOCNews(COLOR_LIGHTRED,string); SetPlayerColor(playerid, COLOR_GRAD2); new nev[32]; GetPlayerName(playerid, nev, sizeof(nev)); new h,mi,s,y,m,d; getdate(y,m,d); gettime(h,mi,s); format(stringx,sizeof(stringx), \"[%d/%d/%d][%d:%d:%d] %s kilépett adminszolgálatból.\",y,m,d,h,mi,s,nev); SetPlayerColor(playerid, COLOR_GRAD2); LoOoG(stringx); return 1; } } else { SendClientMessage(playerid, COLOR_GREY, \"Nem vagy admin.\"); return 1; } } return 1; }
if(!strcmp(cmdtext, \"/aduty\", true) || !strcmp(cmdtext, \"/aduty\", true) || !strcmp(cmdtext, \"/aduty\", true) || !strcmp(cmdtext, \"/aduty\", true)) { if(IsPlayerConnected(playerid)) { if(gPlayerLogged[playerid] == 0) { SendClientMessage(playerid, COLOR_GREY, \"Elõbb jelentkezz be!!\"); return 1; } if(Admin(playerid, 1)) { if(AdminDuty[playerid] == 0) { if(PlayerInfo[playerid][rejtozes] == 0) { if(PlayerInfo[playerid][Adminsz] == 1) { Nevekbe(playerid); } if(PlayerInfo[playerid][Adminsz] == 0) { Nevekbe(playerid); } AdminDuty[playerid] = 1; PlayerInfo[playerid][Engedi] = 1; new kuldo[MAX_PLAYER_NAME]; GetPlayerName(playerid, kuldo, sizeof(kuldo)); new Float:AX,Float:AY,Float:AZ; GetPlayerPos(giveplayerid, X1, Y1, Z1); SendClientMessage(playerid,COLOR_WHITE,\"Adminszolgálatba álltál!\"); GetPlayerName(playerid,sendername,sizeof(sendername)); format(string, sizeof(string), \"%s Adminszolgálatba lépett, ha segítség kell írj neki: /pm %d\", sendername, playerid); //========================================================== new string[256]; format(string, sizeof(string), \"Adminszolgálatban, /pm %d\", playerid); SetPlayerChatBubble(playerid, string, 0xFB0000FF ,40,1200); OOCNews(COLOR_LIGHTBLUE,string); SetPlayerColor(playerid, COLOR_DBLUE); /*DutyLabel[playerid] = Create3DTextLabel(\"Admin Szolgálatban\",0xFB0000FF,0,0,0,50,-1,1); Attach3DTextLabelToPlayer(DutyLabel[playerid], playerid, 0,0,0);*/ TogglePlayerControllable(playerid, 1); new nev[32]; GetPlayerName(playerid, nev, sizeof(nev)); GetPlayerPos(playerid, AX,AY,AZ); SetPlayerPos(playerid, AX,AY,AZ+1); format(stringx,sizeof(stringx), \"%s\",nev); DutyLabelNev[playerid] = Create3DTextLabel(stringx,0xFB0000FF,0,0,0,50,-1,1); Attach3DTextLabelToPlayer(DutyLabelNev[playerid], playerid, 0,0,0.2); new h,mi,s,y,m,d; getdate(y,m,d); gettime(h,mi,s); format(stringx,sizeof(stringx), \"[%d/%d/%d][%d:%d:%d] %s adminszolgálatba állt.\",y,m,d,h,mi,s,nev); LoOoG(stringx); if(Admin(playerid, 1)) { for(new i = 0; i < sizeof(CarInfo); i++) { SetVehicleParamsForPlayer(i,playerid,0,0); } } if(Admin(playerid, 1)) { for(new slot = 0; slot != 12; slot++) { new wep, ammo; GetPlayerWeaponData(playerid, slot, wep, ammo); if(wep != 0 && ammo != 0) { if(wep == 1) { PlayerInfo[playerid][fegyver1] = 1; PlayerInfo[playerid][tolteny1] += ammo; } else if(wep == 5) { PlayerInfo[playerid][fegyver2] = 1; PlayerInfo[playerid][tolteny2] += ammo; } else if(wep == 4) { PlayerInfo[playerid][fegyver3] = 1; PlayerInfo[playerid][tolteny3] += ammo; } else if(wep == 22) { PlayerInfo[playerid][fegyver4] = 1; PlayerInfo[playerid][tolteny4] += ammo; } else if(wep == 24) { PlayerInfo[playerid][fegyver5] = 1; PlayerInfo[playerid][tolteny5] += ammo; } else if(wep == 29) { PlayerInfo[playerid][fegyver6] = 1; PlayerInfo[playerid][tolteny6] += ammo; } else if(wep == 30) { PlayerInfo[playerid][fegyver7] = 1; PlayerInfo[playerid][tolteny7] += ammo; } else if(wep == 31) { PlayerInfo[playerid][fegyver8] = 1; PlayerInfo[playerid][tolteny8] += ammo; } else if(wep == 25) { PlayerInfo[playerid][fegyver9] = 1; PlayerInfo[playerid][tolteny9] += ammo; } else if(wep == 41) { PlayerInfo[playerid][fegyver10] = 1; PlayerInfo[playerid][tolteny10] += ammo; } else if(wep == 17) { PlayerInfo[playerid][fegyver11] = 1; PlayerInfo[playerid][tolteny11] += ammo; } else if(wep == 3) { PlayerInfo[playerid][fegyver12] = 1; PlayerInfo[playerid][tolteny12] += ammo; } } } Fegyverelol[playerid] = 0; SafeResetPlayerWeapons(playerid); TogglePlayerControllable(playerid, 1); } } return 1; } else if(AdminDuty[playerid] == 1) { if(Admin(playerid, 1)) { if(Spectate[playerid] == 255) { //SafeResetPlayerWeapons(playerid); //SetPlayerWeapons(playerid); TogglePlayerControllable(playerid, 1); } SetPlayerHealth(playerid, 100); TogglePlayerControllable(playerid, 1); } if(PlayerInfo[playerid][Adminsz] == 1) { Nevekbe(playerid); } if(PlayerInfo[playerid][Adminsz] == 0) { Nevekki(playerid); } PlayerInfo[playerid][Engedi] = 0; //Delete3DTextLabel(DutyLabel[playerid]); Delete3DTextLabel(DutyLabelNev[playerid]); TogglePlayerControllable(playerid, 1); AdminDuty[playerid] = 0; new kuldo[MAX_PLAYER_NAME]; GetPlayerName(playerid, kuldo, sizeof(kuldo)); new Float:X,Float:Y,Float:Z; GetPlayerPos(playerid, X,Y,Z); SetPlayerPos(playerid, X,Y,Z+1); SetPlayerToTeamColor(playerid); SetPlayerHealth(playerid, 100); SendClientMessage(playerid,COLOR_WHITE,\"Kiléptél Adminszolgálatból!\"); GetPlayerName(playerid,sendername,sizeof(sendername)); format(string, sizeof(string), \"%s kilépett az Adminszolgálatból. Segítség kell /asreport.\", sendername); OOCNews(COLOR_LIGHTRED,string); SetPlayerColor(playerid, COLOR_GRAD2); new nev[32]; GetPlayerName(playerid, nev, sizeof(nev)); new h,mi,s,y,m,d; getdate(y,m,d); gettime(h,mi,s); format(stringx,sizeof(stringx), \"[%d/%d/%d][%d:%d:%d] %s kilépett adminszolgálatból.\",y,m,d,h,mi,s,nev); SetPlayerColor(playerid, COLOR_GRAD2); LoOoG(stringx); return 1; } } else { SendClientMessage(playerid, COLOR_GREY, \"Nem vagy admin.\"); return 1; } } return 1; }
C:\\Users\\user\\Desktop\\SA-MP szerver\\gamemodes\\afterlife.pwn(35531) : warning 217: loose indentationC:\\Users\\user\\Desktop\\SA-MP szerver\\gamemodes\\afterlife.pwn(35538) : warning 217: loose indentationC:\\Users\\user\\Desktop\\SA-MP szerver\\gamemodes\\afterlife.pwn(35550) : warning 217: loose indentationC:\\Users\\user\\Desktop\\SA-MP szerver\\gamemodes\\afterlife.pwn(35554) : warning 217: loose indentationC:\\Users\\user\\Desktop\\SA-MP szerver\\gamemodes\\afterlife.pwn(35557) : warning 217: loose indentationC:\\Users\\user\\Desktop\\SA-MP szerver\\gamemodes\\afterlife.pwn(35559) : warning 217: loose indentationC:\\Users\\user\\Desktop\\SA-MP szerver\\gamemodes\\afterlife.pwn(35560) : warning 217: loose indentationC:\\Users\\user\\Desktop\\SA-MP szerver\\gamemodes\\afterlife.pwn(35561) : warning 217: loose indentationC:\\Users\\user\\Desktop\\SA-MP szerver\\gamemodes\\afterlife.pwn(35562) : warning 217: loose indentationC:\\Users\\user\\Desktop\\SA-MP szerver\\gamemodes\\afterlife.pwn(35564) : warning 217: loose indentationC:\\Users\\user\\Desktop\\SA-MP szerver\\gamemodes\\afterlife.pwn(35564) : warning 219: local variable \"string\" shadows a variable at a preceding levelC:\\Users\\user\\Desktop\\SA-MP szerver\\gamemodes\\afterlife.pwn(35565) : warning 217: loose indentationC:\\Users\\user\\Desktop\\SA-MP szerver\\gamemodes\\afterlife.pwn(35567) : warning 217: loose indentationC:\\Users\\user\\Desktop\\SA-MP szerver\\gamemodes\\afterlife.pwn(35571) : warning 217: loose indentationC:\\Users\\user\\Desktop\\SA-MP szerver\\gamemodes\\afterlife.pwn(35615) : warning 217: loose indentationC:\\Users\\user\\Desktop\\SA-MP szerver\\gamemodes\\afterlife.pwn(35620) : warning 217: loose indentationC:\\Users\\user\\Desktop\\SA-MP szerver\\gamemodes\\afterlife.pwn(35622) : warning 217: loose indentationC:\\Users\\user\\Desktop\\SA-MP szerver\\gamemodes\\afterlife.pwn(35632) : warning 217: loose indentationC:\\Users\\user\\Desktop\\SA-MP szerver\\gamemodes\\afterlife.pwn(35633) : warning 217: loose indentationC:\\Users\\user\\Desktop\\SA-MP szerver\\gamemodes\\afterlife.pwn(35635) : warning 217: loose indentationC:\\Users\\user\\Desktop\\SA-MP szerver\\gamemodes\\afterlife.pwn(35647) : warning 217: loose indentationC:\\Users\\user\\Desktop\\SA-MP szerver\\gamemodes\\afterlife.pwn(35649) : warning 217: loose indentationC:\\Users\\user\\Desktop\\SA-MP szerver\\gamemodes\\afterlife.pwn(35653) : warning 217: loose indentationC:\\Users\\user\\Desktop\\SA-MP szerver\\gamemodes\\afterlife.pwn(35655) : warning 217: loose indentationC:\\Users\\user\\Desktop\\SA-MP szerver\\gamemodes\\afterlife.pwn(35656) : warning 217: loose indentationC:\\Users\\user\\Desktop\\SA-MP szerver\\gamemodes\\afterlife.pwn(35657) : warning 217: loose indentationC:\\Users\\user\\Desktop\\SA-MP szerver\\gamemodes\\afterlife.pwn(35658) : warning 217: loose indentationC:\\Users\\user\\Desktop\\SA-MP szerver\\gamemodes\\afterlife.pwn(35660) : warning 217: loose indentationC:\\Users\\user\\Desktop\\SA-MP szerver\\gamemodes\\afterlife.pwn(35666) : warning 217: loose indentationC:\\Users\\user\\Desktop\\SA-MP szerver\\gamemodes\\afterlife.pwn(35667) : warning 217: loose indentationC:\\Users\\user\\Desktop\\SA-MP szerver\\gamemodes\\afterlife.pwn(35677) : warning 217: loose indentationC:\\Users\\user\\Desktop\\SA-MP szerver\\gamemodes\\afterlife.pwn(35680) : warning 217: loose indentationPawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase 33 Warnings.
if(!strcmp(cmdtext, \"/aduty\", true) || !strcmp(cmdtext, \"/aduty\", true) || !strcmp(cmdtext, \"/aduty\", true) || !strcmp(cmdtext, \"/aduty\", true)) { if(IsPlayerConnected(playerid)) { if(gPlayerLogged[playerid] == 0) { SendClientMessage(playerid, COLOR_GREY, \"Elõbb jelentkezz be!!\"); return 1; } if(Admin(playerid, 1)) { if(AdminDuty[playerid] == 0) { if(PlayerInfo[playerid][rejtozes] == 0) { if(PlayerInfo[playerid][Adminsz] == 1) { Nevekbe(playerid); } if(PlayerInfo[playerid][Adminsz] == 0) { Nevekbe(playerid); } AdminDuty[playerid] = 1; PlayerInfo[playerid][Engedi] = 1; new kuldo[MAX_PLAYER_NAME]; GetPlayerName(playerid, kuldo, sizeof(kuldo)); new Float:AX,Float:AY,Float:AZ; GetPlayerPos(giveplayerid, X1, Y1, Z1); SendClientMessage(playerid,COLOR_WHITE,\"Adminszolgálatba álltál!\"); GetPlayerName(playerid,sendername,sizeof(sendername)); format(string, sizeof(string), \"%s Adminszolgálatba lépett, ha segítség kell írj neki: /pm %d\", sendername, playerid); //========================================================== new astring[256]; format(astring, sizeof(astring), \"Adminszolgálatban, /pm %d\", playerid); SetPlayerChatBubble(playerid, astring, 0xFB0000FF ,40,1200); OOCNews(COLOR_LIGHTBLUE,string); SetPlayerColor(playerid, COLOR_DBLUE); /*DutyLabel[playerid] = Create3DTextLabel(\"Admin Szolgálatban\",0xFB0000FF,0,0,0,50,-1,1); Attach3DTextLabelToPlayer(DutyLabel[playerid], playerid, 0,0,0);*/ TogglePlayerControllable(playerid, 1); new nev[32]; GetPlayerName(playerid, nev, sizeof(nev)); GetPlayerPos(playerid, AX,AY,AZ); SetPlayerPos(playerid, AX,AY,AZ+1); format(stringx,sizeof(stringx), \"%s\",nev); DutyLabelNev[playerid] = Create3DTextLabel(stringx,0xFB0000FF,0,0,0,50,-1,1); Attach3DTextLabelToPlayer(DutyLabelNev[playerid], playerid, 0,0,0.2); new h,mi,s,y,m,d; getdate(y,m,d); gettime(h,mi,s); format(stringx,sizeof(stringx), \"[%d/%d/%d][%d:%d:%d] %s adminszolgálatba állt.\",y,m,d,h,mi,s,nev); LoOoG(stringx); if(Admin(playerid, 1)) { for(new i = 0; i < sizeof(CarInfo); i++) { SetVehicleParamsForPlayer(i,playerid,0,0); } } if(Admin(playerid, 1)) { for(new slot = 0; slot != 12; slot++) { new wep, ammo; GetPlayerWeaponData(playerid, slot, wep, ammo); if(wep != 0 && ammo != 0) { if(wep == 1) { PlayerInfo[playerid][fegyver1] = 1; PlayerInfo[playerid][tolteny1] += ammo; } else if(wep == 5) { PlayerInfo[playerid][fegyver2] = 1; PlayerInfo[playerid][tolteny2] += ammo; } else if(wep == 4) { PlayerInfo[playerid][fegyver3] = 1; PlayerInfo[playerid][tolteny3] += ammo; } else if(wep == 22) { PlayerInfo[playerid][fegyver4] = 1; PlayerInfo[playerid][tolteny4] += ammo; } else if(wep == 24) { PlayerInfo[playerid][fegyver5] = 1; PlayerInfo[playerid][tolteny5] += ammo; } else if(wep == 29) { PlayerInfo[playerid][fegyver6] = 1; PlayerInfo[playerid][tolteny6] += ammo; } else if(wep == 30) { PlayerInfo[playerid][fegyver7] = 1; PlayerInfo[playerid][tolteny7] += ammo; } else if(wep == 31) { PlayerInfo[playerid][fegyver8] = 1; PlayerInfo[playerid][tolteny8] += ammo; } else if(wep == 25) { PlayerInfo[playerid][fegyver9] = 1; PlayerInfo[playerid][tolteny9] += ammo; } else if(wep == 41) { PlayerInfo[playerid][fegyver10] = 1; PlayerInfo[playerid][tolteny10] += ammo; } else if(wep == 17) { PlayerInfo[playerid][fegyver11] = 1; PlayerInfo[playerid][tolteny11] += ammo; } else if(wep == 3) { PlayerInfo[playerid][fegyver12] = 1; PlayerInfo[playerid][tolteny12] += ammo; } } } Fegyverelol[playerid] = 0; SafeResetPlayerWeapons(playerid); TogglePlayerControllable(playerid, 1); } } return 1; } else if(AdminDuty[playerid] == 1) { if(Admin(playerid, 1)) { if(Spectate[playerid] == 255) { //SafeResetPlayerWeapons(playerid); //SetPlayerWeapons(playerid); TogglePlayerControllable(playerid, 1); } SetPlayerHealth(playerid, 100); TogglePlayerControllable(playerid, 1); } if(PlayerInfo[playerid][Adminsz] == 1) { Nevekbe(playerid); } if(PlayerInfo[playerid][Adminsz] == 0) { Nevekki(playerid); } PlayerInfo[playerid][Engedi] = 0; //Delete3DTextLabel(DutyLabel[playerid]); Delete3DTextLabel(DutyLabelNev[playerid]); TogglePlayerControllable(playerid, 1); AdminDuty[playerid] = 0; new kuldo[MAX_PLAYER_NAME]; GetPlayerName(playerid, kuldo, sizeof(kuldo)); new Float:X,Float:Y,Float:Z; GetPlayerPos(playerid, X,Y,Z); SetPlayerPos(playerid, X,Y,Z+1); SetPlayerToTeamColor(playerid); SetPlayerHealth(playerid, 100); SendClientMessage(playerid,COLOR_WHITE,\"Kiléptél Adminszolgálatból!\"); GetPlayerName(playerid,sendername,sizeof(sendername)); format(string, sizeof(string), \"%s kilépett az Adminszolgálatból. Segítség kell /asreport.\", sendername); OOCNews(COLOR_LIGHTRED,string); SetPlayerColor(playerid, COLOR_GRAD2); new nev[32]; GetPlayerName(playerid, nev, sizeof(nev)); new h,mi,s,y,m,d; getdate(y,m,d); gettime(h,mi,s); format(stringx,sizeof(stringx), \"[%d/%d/%d][%d:%d:%d] %s kilépett adminszolgálatból.\",y,m,d,h,mi,s,nev); SetPlayerColor(playerid, COLOR_GRAD2); LoOoG(stringx); return 1; } } else { SendClientMessage(playerid, COLOR_GREY, \"Nem vagy admin.\"); return 1; } } return 1; }
Ugyanúgy megmarad a warning, huhboy. Csupán nem veszi figyelembe a fordító, ugyanis ezáltal nem figyel a forráskód elrendezésére. Öreg hiba. Ez csak azért van, hogy azok, akik nem képesek szépen programozni, les*@rhassák a rendet. Amúgy 2 perc kijavítani rendesen is, nem csak ilyen tabsizeos módszerrel.OFF: RP-t?