[pomoc]Mod od 0 problem

Započeo Marko_Epepe, Mart 06, 2013, 20:23:47 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim:od 0
deo skripte da cu vam
slike/video
problem:Uradio komandu aduty sam bez icije pomoci i sad imam problem kada odem aduty  pise 2 puta Administrator je na duznosti i ne pise ime admina vec samo administrator je na duznosti evo komande

//==========================Aduty========================================//
YCMD:aduty(playerid, params[], help)
{
    #pragma unused help
    #pragma unused params
if(PlayerInfo[playerid][pAdmin] < 1) return SCM(playerid, red, "Nemate ovlascenja da Koristitete ovu komandu!");
new ime[MAX_PLAYER_NAME];
new string[128];
format(string, sizeof(string), "Administrator %s je sada da duzosti kucajte /askq ko da pozovete", ime);
SendClientMessageToAll(blue, string);
SCMTA(-1, string);
SCM(playerid, -1, "[Aduty]{F81414}Vi ste sada admin na duznosti.");
return 1;
}
Potreban skripter javite se na fejsu : https://www.facebook.com/dozivotnoepepe

Evo ti ovako, jednom komandom i palis i gasis admin duznost. Trebalo bi raditi.

YCMD:aduty(playerid,params[],help)
{
    #pragma unused help
new
string[128];
if(PlayerInfo[playerid][pAdmin] < 0) return SCM(playerid, red, "Nemate ovlascenja da Koristitete ovu komandu!");
{
if(AdminDuznost[playerid] == 0)
{
AdminDuznost[playerid] = 1;
SetPlayerArmour(playerid, 999);
SetPlayerHealth(playerid, 999);
SetPlayerColor(playerid,0x0066CC);
format(string, sizeof(string), "Administrator %s je sada na duznosti.", ImeIgraca(playerid));
SCMTA(0xFF00EBFF, string);
SCM(playerid, -1, "[Aduty]{F81414}Vi ste sada admin na duznosti.");
}
else if(AdminDuznost[playerid] == 1)
{
AdminDuznost[playerid] = 0;
SetPlayerArmour(playerid, 0);
SetPlayerHealth(playerid, 100);
SetPlayerColor(playerid,0xFFFFFF);
format(string, sizeof(string), "Administrator %s vise nije na duznosti.", ImeIgraca(playerid));
SCMTA(0xFF00EBFF, string);
SCM(playerid, -1, "[Aduty]{F81414}Vi sada vise niste admin na duznosti.");
return 1;
}
}
return 1;
}


stock ImeIgraca(playerid)
{
new Ime[MAX_PLAYER_NAME];
GetPlayerName(playerid, Ime, MAX_PLAYER_NAME);
return Ime;
}
Poslednja Izmena: Mart 06, 2013, 20:35:04 POSLE PODNE od joXy_#

ErrOri

C:\Users\Desktop\Desktop\New folder\gamemodes\ModOd0.pwn(1134) : error 001: expected token: ";", but found "]"
C:\Users\Desktop\Desktop\New folder\gamemodes\ModOd0.pwn(1134) : error 029: invalid expression, assumed zero
C:\Users\Desktop\Desktop\New folder\gamemodes\ModOd0.pwn(1134) : fatal error 107: too many error messages on one line
C:\Users\Desktop\Desktop\New folder\gamemodes\ModOd0.pwn(1134) : error 017: undefined symbol "AdminDuznost"


1134:if(AdminDuznost[playerid] == 0)
Potreban skripter javite se na fejsu : https://www.facebook.com/dozivotnoepepe


sry, zaboravio sam :)

na pocetak moda:
new AdminDuznost[MAX_PLAYERS];

Druze hvala ti ali ako radim od radim od 0 izbrisao sam komandu tvoju sredio sam moju :) :) Ali sam
Potreban skripter javite se na fejsu : https://www.facebook.com/dozivotnoepepe

Problem je rijesen onda. :) Lock.

Last nick: Paradox