SA-MP Forums

Go Back   SA-MP Forums > Non-English > Languages > Română/Romanian

Reply
 
Thread Tools Display Modes
Old 04/06/2012, 08:23 PM   #1
IuLyAnBoSs
Gangsta
 
IuLyAnBoSs's Avatar
 
Join Date: Jun 2011
Posts: 677
Reputation: 13
Default Comanda /o si /a

Salut am probleme cu 2 comenzi de la admin: /o si /a.
Am adaugat la fiecare comanda un nou admin "1340" la amandoua comenzi.
Quote:
if(strcmp(cmd, "/ooc", true) == 0 || strcmp(cmd, "/o", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(gPlayerLogged[playerid] == 0)
{
SendClientMessage(playerid, COLOR_GREY, " Inca nu esti logat!");
return 1;
}
if(PlayerOOC[playerid] == -1)
{
SendClientMessage(playerid,COLOR_1RED,"Poti trimite un mesaj ooc doar o data la 5 secunde !");
return 1;
}
if ((noooc) && PlayerInfo[playerid][pAdminServer] < 1)
{
SendClientMessage(playerid, COLOR_GRAD2, " Canalul OOC este oprit!");
return 1;
}
if(PlayerInfo[playerid][pMuted] == 1 && PlayerInfo[playerid][pMuteTime] > 0)
{
SendClientMessage(playerid, TEAM_CYAN_COLOR, " Nu poti vorbii,esti pe MUTE !");
return 1;
}
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, "USAGE: (/o)oc [ooc chat]");
return 1;
}
if(PlayerInfo[playerid][pAdminServer] >= 1340)
{
format(string, sizeof(string), "{FFFFFF}((Protected Owner {80FF00}%s{FFFFFF} : {FFFFFF}%s ))",sendername, result);
OOCOff(COLOR_OOC,string);
printf("%s", string);
}
if(PlayerInfo[playerid][pAdminServer] >= 1339)
{
format(string, sizeof(string), "{FFFFFF}(( Owner {F81414}%s{FFFFFF} : {FFFFFF}%s ))",sendername, result);
OOCOff(COLOR_OOC,string);
printf("%s", string);
//SetTimerEx("ResetOOC", 5000, 0, "d", playerid);
//PlayerOOC[playerid] = -1;
}
if(PlayerInfo[playerid][pAdminServer] == 133
{
format(string, sizeof(string), "{FFFFFF}(( Co-Owner {FF8000}%s{FFFFFF} : %s ))",sendername, result);
OOCOff(COLOR_OOC,string);
printf("%s", string);
//SetTimerEx("ResetOOC", 5000, 0, "d", playerid);
//PlayerOOC[playerid] = -1;
}
if(PlayerInfo[playerid][pAdminServer] == 1337)
{
format(string, sizeof(string), "{FFFFFF}(( Super Admin {FFBF00}%s{FFFFFF} : %s ))",sendername, result);
OOCOff(COLOR_OOC,string);
printf("%s", string);
//SetTimerEx("ResetOOC", 5000, 0, "d", playerid);
//PlayerOOC[playerid] = -1;
}
if(PlayerInfo[playerid][pAdminServer] == 4)
{
format(string, sizeof(string), "{FFFFFF}(( VIP Admin {4000FF}%s{FFFFFF} : %s ))",sendername, result);
OOCOff(COLOR_OOC,string);
printf("%s", string);
// SetTimerEx("ResetOOC", 5000, 0, "d", playerid);
//PlayerOOC[playerid] = -1;
}
if(PlayerInfo[playerid][pAdminServer] == 3)
{
format(string, sizeof(string), "{FFFFFF}(( Extra Admin {4080FF}%s{FFFFFF} : %s ))",sendername, result);
OOCOff(COLOR_OOC,string);
printf("%s", string);
//SetTimerEx("ResetOOC", 5000, 0, "d", playerid);
//PlayerOOC[playerid] = -1;
}
if(PlayerInfo[playerid][pAdminServer] == 2)
{
format(string, sizeof(string), "{FFFFFF}(( Advanced Admin {00BFFF}%s{FFFFFF} : %s ))",sendername, result);
OOCOff(COLOR_OOC,string);
printf("%s", string);
//SetTimerEx("ResetOOC", 5000, 0, "d", playerid);
//PlayerOOC[playerid] = -1;
}
if(PlayerInfo[playerid][pAdminServer] == 1)
{
format(string, sizeof(string), "{FFFFFF}(( Demo Admin {80FFFF}%s{FFFFFF} : %s ))",sendername, result);
OOCOff(COLOR_OOC,string);
printf("%s", string);
//SetTimerEx("ResetOOC", 5000, 0, "d", playerid);
//PlayerOOC[playerid] = -1;
}
}
return 1;
}
Quote:
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, "USAGE: (/a)dmin [admin chat]");
return 1;
}
if(PlayerInfo[playerid][pMuted] == 1 && PlayerInfo[playerid][pMuteTime] > 0)
{
SendClientMessage(playerid, TEAM_CYAN_COLOR, "Nu poti vorbii, esti pe MUTE!");
return 0;
}
if (PlayerInfo[playerid][pAdminServer] == 1)
{
format(string, sizeof(string), "[Demo Admin] %s: %s", sendername, result);
SendAdminMessage(0x6698FFFF, string);
}
if (PlayerInfo[playerid][pAdminServer] == 2)
{
format(string, sizeof(string), "[Avanced Admin] %s: %s", sendername, result);
SendAdminMessage(0x6698FFFF, string);
}
if (PlayerInfo[playerid][pAdminServer] == 3)
{
format(string, sizeof(string), "[eXtra Admin] %s: %s", sendername, result);
SendAdminMessage(0x6698FFFF, string);
}
if (PlayerInfo[playerid][pAdminServer] == 4)
{
format(string, sizeof(string), "[VIP Admin] %s: %s", sendername, result);
SendAdminMessage(0x6698FFFF, string);
}
if (PlayerInfo[playerid][pAdminServer] == 1337)
{
format(string, sizeof(string), "[Super Admin] %s: %s", sendername, result);
SendAdminMessage(0x6698FFFF, string);
}
if (PlayerInfo[playerid][pAdminServer] == 133
{
format(string, sizeof(string), "{0049FF}[Co-Owner] {FFAA00}~ %s ~{0049FF}: %s", sendername, result);
SendAdminMessage(0x6698FFFF, string);
}
if (PlayerInfo[playerid][pAdminServer] >= 1339)
{
format(string, sizeof(string), "[Owner] {FF000F}~ %s ~{FF8C00}: %s", sendername, result);
SendAdminMessage(0xFFA000FF, string);
}
if (PlayerInfo[playerid][pAdminServer] >= 1340)
{
format(string, sizeof(string), "[Protected Owner] {80FF00}~ %s ~{8000FF}: %s", sendername, result);
SendAdminMessage(0x8000FFC8, string);
}
printf("Admin %s: %s", sendername, result);
}
return 1;
}

Cand intru pe server cu admin 1340 si scriu /o sau /a imi apare de doua ori adica admin 1339 si admin 1340.
Uitati poze:


Comanda /o:


Comanda /a:


Unde am gresit de imi apare asa?
Va rog sa ma ajutati putin.
Multumesc mult.
IuLyAnBoSs is offline   Reply With Quote
Old 04/06/2012, 09:39 PM   #2
jdey
Big Clucker
 
Join Date: Aug 2010
Location: Romania
Posts: 72
Reputation: 8
Default Re: Comanda /o si /a

Nu ti-am mai facut eu odata comanda?

Edit: Se pare ca i-am facut lu` BosS.

Uite link-ul aici http://forum.sa-mp.com/showthread.php?t=346189


PS: Puteai fi si tu original
jdey is offline   Reply With Quote
Old 05/06/2012, 05:24 AM   #3
IuLyAnBoSs
Gangsta
 
IuLyAnBoSs's Avatar
 
Join Date: Jun 2011
Posts: 677
Reputation: 13
Default Re: Comanda /o si /a

Comanda /a imi da 26 de errori adica imi face bug:

uitati erorile:
Quote:
J:\Bloodzrp Actual\gamemodes\bloodzrp.pwn(2750) : error 004: function "ProxDetector" is not implemented
J:\Bloodzrp Actual\gamemodes\bloodzrp.pwn(275 : error 004: function "ProxDetector" is not implemented
J:\Bloodzrp Actual\gamemodes\bloodzrp.pwn(2850) : error 004: function "PlayerToPoint" is not implemented
J:\Bloodzrp Actual\gamemodes\bloodzrp.pwn(2886) : error 004: function "PlayerToPoint" is not implemented
J:\Bloodzrp Actual\gamemodes\bloodzrp.pwn(2922) : error 004: function "PlayerToPoint" is not implemented
J:\Bloodzrp Actual\gamemodes\bloodzrp.pwn(2941) : error 004: function "PlayerToPoint" is not implemented
J:\Bloodzrp Actual\gamemodes\bloodzrp.pwn(295 : error 004: function "PlayerToPoint" is not implemented
J:\Bloodzrp Actual\gamemodes\bloodzrp.pwn(299 : error 004: function "ProxDetector" is not implemented
J:\Bloodzrp Actual\gamemodes\bloodzrp.pwn(3010) : error 004: function "ProxDetector" is not implemented
J:\Bloodzrp Actual\gamemodes\bloodzrp.pwn(3640) : error 004: function "PlayerToPoint" is not implemented
J:\Bloodzrp Actual\gamemodes\bloodzrp.pwn(3644) : error 004: function "PlayerToPoint" is not implemented
J:\Bloodzrp Actual\gamemodes\bloodzrp.pwn(365 : error 004: function "PlayerToPoint" is not implemented
J:\Bloodzrp Actual\gamemodes\bloodzrp.pwn(3662) : error 004: function "PlayerToPoint" is not implemented
J:\Bloodzrp Actual\gamemodes\bloodzrp.pwn(3666) : error 004: function "PlayerToPoint" is not implemented
J:\Bloodzrp Actual\gamemodes\bloodzrp.pwn(3670) : error 004: function "PlayerToPoint" is not implemented
J:\Bloodzrp Actual\gamemodes\bloodzrp.pwn(3674) : error 004: function "PlayerToPoint" is not implemented
J:\Bloodzrp Actual\gamemodes\bloodzrp.pwn(367 : error 004: function "PlayerToPoint" is not implemented
J:\Bloodzrp Actual\gamemodes\bloodzrp.pwn(3682) : error 004: function "PlayerToPoint" is not implemented
J:\Bloodzrp Actual\gamemodes\bloodzrp.pwn(3686) : error 004: function "PlayerToPoint" is not implemented
J:\Bloodzrp Actual\gamemodes\bloodzrp.pwn(3690) : error 004: function "PlayerToPoint" is not implemented
J:\Bloodzrp Actual\gamemodes\bloodzrp.pwn(3694) : error 004: function "PlayerToPoint" is not implemented
J:\Bloodzrp Actual\gamemodes\bloodzrp.pwn(369 : error 004: function "PlayerToPoint" is not implemented
J:\Bloodzrp Actual\gamemodes\bloodzrp.pwn(3702) : error 004: function "PlayerToPoint" is not implemented
J:\Bloodzrp Actual\gamemodes\bloodzrp.pwn(3706) : error 004: function "PlayerToPoint" is not implemented
J:\Bloodzrp Actual\gamemodes\bloodzrp.pwn(3720) : error 004: function "PlayerToPoint" is not implemented
J:\Bloodzrp Actual\gamemodes\bloodzrp.pwn(3724) : error 004: function "PlayerToPoint" is not implemented

Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


26 Errors.

Last edited by IuLyAnBoSs; 05/06/2012 at 06:43 AM.
IuLyAnBoSs is offline   Reply With Quote
Old 05/06/2012, 07:09 AM   #4
jdey
Big Clucker
 
Join Date: Aug 2010
Location: Romania
Posts: 72
Reputation: 8
Default Re: Comanda /o si /a

Vezi ca mai trebuia pusa o acolada }
jdey is offline   Reply With Quote
Old 05/06/2012, 07:37 AM   #5
IuLyAnBoSs
Gangsta
 
IuLyAnBoSs's Avatar
 
Join Date: Jun 2011
Posts: 677
Reputation: 13
Default Re: Comanda /o si /a

Daca nu imi spuneai ca trebuie sa pun o } nu imi venea in minte sa pun
Quote:
return 1;
}
TC rezolvat
IuLyAnBoSs is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Comanda /v buy TinKode Română/Romanian 3 09/05/2012 03:34 PM
Comanda SpeedyRO Română/Romanian 0 22/11/2011 09:24 PM
comanda gabyk Română/Romanian 3 02/11/2011 08:26 PM
Comanda Roberteu11 Română/Romanian 0 28/06/2011 12:43 PM
Comanda Roberteu11 Română/Romanian 3 30/03/2011 05:38 PM


All times are GMT. The time now is 10:51 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.