SA-MP Forums

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

 
 
Thread Tools Display Modes
Old 28/03/2013, 04:41 PM   #1
Raphy
Big Clucker
 
Raphy's Avatar
 
Join Date: Dec 2011
Posts: 152
Reputation: 0
Default Problema ladmin

Buna seara. Am modificat un script in ladmin, si mi-a dat niste erori pe care nu stiu sa le rezolv:

Code:
D:\Server de SA-MP\filterscripts\ladmin4v2.pwn(790) : error 017: undefined symbol "hooked"
D:\Server de SA-MP\filterscripts\ladmin4v2.pwn(790) : error 029: invalid expression, assumed zero
D:\Server de SA-MP\filterscripts\ladmin4v2.pwn(790 -- 791) : warning 213: tag mismatch
D:\Server de SA-MP\filterscripts\ladmin4v2.pwn(790 -- 791) : warning 215: expression has no effect
D:\Server de SA-MP\filterscripts\ladmin4v2.pwn(791) : error 001: expected token: ";", but found "for"
D:\Server de SA-MP\filterscripts\ladmin4v2.pwn(791) : fatal error 107: too many error messages on one line
pawn Code:
for(new i = 0; i < MAX_PLAYERS; i++) if(IsPlayerConnected(i)) OnPlayerConnect(i);
for(new i = 1; i < MAX_CHAT_LINES; i++) Chat[i] = "<none>";

^Acelea sunt liniile de la erori. Multumesc anticipat.
Raphy is offline  
Old 29/03/2013, 09:30 PM   #2
valii2pac
Big Clucker
 
Join Date: Sep 2012
Posts: 100
Reputation: 1
Default Re: Problema ladmin

for(new i = 0; i < MAX_PLAYERS; i++) { if(IsPlayerConnected(i)) { OnPlayerConnect(i); } return1; }
for(new i = 1; i < MAX_CHAT_LINES; i++) { Chat[i] = "<none>"; }

incearca asa
valii2pac is offline  
Old 31/03/2013, 02:13 PM   #3
Raphy
Big Clucker
 
Raphy's Avatar
 
Join Date: Dec 2011
Posts: 152
Reputation: 0
Default Re: Problema ladmin

Am incercat si imi da alte erori:

Code:
D:\Server de SA-MP\filterscripts\ladmin4v2.pwn(790) : error 017: undefined symbol "hooked"
D:\Server de SA-MP\filterscripts\ladmin4v2.pwn(790) : error 029: invalid expression, assumed zero
D:\Server de SA-MP\filterscripts\ladmin4v2.pwn(790) : error 017: undefined symbol "return1"
D:\Server de SA-MP\filterscripts\ladmin4v2.pwn(790) : fatal error 107: too many error messages on one line
Linia 790:

pawn Code:
for(new i = 0; i < MAX_PLAYERS; i++) { if(IsPlayerConnected(i)) { OnPlayerConnect(i); } return1; }
Raphy is offline  
Old 02/04/2013, 01:47 PM   #4
Raphy
Big Clucker
 
Raphy's Avatar
 
Join Date: Dec 2011
Posts: 152
Reputation: 0
Default Re: Problema ladmin

Am rezolvat ultimele 2 erori si mi-au aparut altelte:

Code:
D:\Server de SA-MP\filterscripts\ladmin4v2.pwn(790) : error 017: undefined symbol "hooked"
D:\Server de SA-MP\filterscripts\ladmin4v2.pwn(790) : error 029: invalid expression, assumed zero
D:\Server de SA-MP\filterscripts\ladmin4v2.pwn(1501) : error 017: undefined symbol "hooked"
D:\Server de SA-MP\filterscripts\ladmin4v2.pwn(1501) : error 029: invalid expression, assumed zero
Linia 790:
pawn Code:
for(new i = 0; i < MAX_PLAYERS; i++) { if(IsPlayerConnected(i)) { OnPlayerConnect(i); } return 1; }

Linia 1501:
pawn Code:
return OnPlayerConnect(player1);

Linia 1501 este de la comanda /setname.

Comanda setname:

pawn Code:
dcmd_setname(playerid,params[]) {
    if(PlayerInfo[playerid][Level] >= 7 || IsPlayerAdmin(playerid)) {
        new tmp[256], tmp2[256], Index; tmp = strtok(params,Index), tmp2 = strtok(params,Index);
        if(!strlen(tmp) || !strlen(tmp2)) return SendClientMessage(playerid, red, "USAGE: /setname [playerid] [new name]");
        new player1 = strval(tmp), length = strlen(tmp2), string[128];
        if(length < 3 || length > MAX_PLAYER_NAME) return SendClientMessage(playerid,red,"ERROR: Incorrect Name Length");
        if(PlayerInfo[player1][Level] == ServerInfo[MaxAdminLevel] && PlayerInfo[playerid][Level] != ServerInfo[MaxAdminLevel]) return SendClientMessage(playerid,red,"ERROR: You cannot use this command on this admin");
        if(IsPlayerConnected(player1) && player1 != INVALID_PLAYER_ID) {
            CMDMessageToAdmins(playerid,"SETNAME");
            format(string, sizeof(string), "{FFFFFF}You have set \"{F81414}%s{FFFFFF}'s\" name to \"{F81414}%s\" ", pName(player1), tmp2); SendClientMessage(playerid,blue,string);
            if(player1 != playerid) { format(string,sizeof(string),"{0049FF}Administrator {F81414}%s {FFFFFF}has set your name to {F81414}%s ", pName(playerid), tmp2); SendClientMessage(player1,blue,string); }
            SetPlayerName(player1, tmp2);
            return OnPlayerConnect(player1);
        } else return SendClientMessage(playerid,red,"ERROR: Player is not connected");
    } else return SendClientMessage(playerid,red,"ERROR: You are not a high enough level to use this command");
}

Last edited by Raphy; 02/04/2013 at 03:36 PM.
Raphy is offline  
 

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
LAdmin Help 5eloo Scripting Help 5 10/08/2012 07:31 AM
I Need LAdmin Tigerbeast11 Scripting Help 7 29/08/2011 10:29 PM


All times are GMT. The time now is 08:31 PM.


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