[POMOC]Eror za makeleader

Započeo Matrix_Green, Maj 29, 2011, 17:19:34 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim:Moj gm od 0
Detaljan opis problema:dodao sam komandu /makeleader i izbacuje mi ove errore
ovo su errori D:\filmovi\filterscripts\EasyAdministration.pwn(322) : error 017: undefined symbol "tmp"
D:\filmovi\filterscripts\EasyAdministration.pwn(322) : error 017: undefined symbol "strtok"
D:\filmovi\filterscripts\EasyAdministration.pwn(323) : error 017: undefined symbol "tmp"
D:\filmovi\filterscripts\EasyAdministration.pwn(330) : error 017: undefined symbol "ReturnUser"
D:\filmovi\filterscripts\EasyAdministration.pwn(331) : error 017: undefined symbol "tmp"
D:\filmovi\filterscripts\EasyAdministration.pwn(331) : error 017: undefined symbol "strtok"
D:\filmovi\filterscripts\EasyAdministration.pwn(332) : error 017: undefined symbol "tmp"
D:\filmovi\filterscripts\EasyAdministration.pwn(334) : error 017: undefined symbol "pAdmin"
D:\filmovi\filterscripts\EasyAdministration.pwn(340) : error 017: undefined symbol "pFMember"
D:\filmovi\filterscripts\EasyAdministration.pwn(345) : error 017: undefined symbol "giveplayer"
D:\filmovi\filterscripts\EasyAdministration.pwn(345) : error 017: undefined symbol "giveplayer"
D:\filmovi\filterscripts\EasyAdministration.pwn(345) : error 029: invalid expression, assumed zero
D:\filmovi\filterscripts\EasyAdministration.pwn(345) : fatal error 107: too many error messages on one line


Dio skripte: ovo je komanda if(strcmp(cmdtext, "/makeleader", true) == 0)
{
    if(IsPlayerConnected(playerid))
    {
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "Korištenje: /makeleader [ID Igrača/Dio Imena] [Number(1-10)]");
return 1;
}
new para1;
new level;
para1 = ReturnUser(tmp);
tmp = strtok(cmdtext, idx);
level = strval(tmp);
if(level > 16 || level < 0) { SendClientMessage(playerid, COLOR_GREY, "* Mora biti izmeÄ'u 0 i 16!"); return 1; }
if (PlayerInfo[playerid][pAdmin] >= 10000)
{
    if(IsPlayerConnected(para1))
    {
        if(para1 != INVALID_PLAYER_ID)
        {
            if(PlayerInfo[para1][pMember] > 0 || PlayerInfo[para1][pFMember] < 9999)
            {
                SendClientMessage(playerid, COLOR_GREY, "** Taj igrač je u organizaciji / Familiji !");
                return 1;
            }
GetPlayerName(para1, giveplayer, sizeof(giveplayer));

PlayerInfo[para1][pLeader] = level;
format(string, sizeof(string), "* Postali ste Leader organizacije: %d by Admin %s",level, sendername);
SendClientMessage(para1, TEAM_GROVE_COLOR, string);
format(string, sizeof(string), "* Dali ste %s kontroli od organizacije broja: %d.", giveplayer,level);
SendClientMessage(playerid, COLOR_ORANGE, string);
            format(string, sizeof(string), "[ADMIN]: %s Je dao kontrolu organizacij-a %d - %s.",sendername,level,giveplayer);
ABroadCast(COLOR_LIGHTRED,string, 5);
new y, m, d;
new h,mi,s;
getdate(y,m,d);
gettime(h,mi,s);
format(string,sizeof(string), "(%d/%d/%d)[%d:%d:%d] %s Gave The Control of the organizacija %d to [%s]",d,m,y,h,mi,s,sendername,level,giveplayer);
LoginLog(string);
AdminLog(string);
if(level == 0) { PlayerInfo[para1][pChar] = 0; PlayerInfo[para1][pRank] = 0; gTeam[para1] = 3; PlayerInfo[para1][pTeam] = 0; return 1; }
else if(level == 1) { PlayerInfo[para1][pChar] = 288; } //Police Force
else if(level == 2) { PlayerInfo[para1][pChar] = 286; } //FBI/ATF
else if(level == 3) { PlayerInfo[para1][pChar] = 287; } //National Guard
else if(level == 4) { PlayerInfo[para1][pChar] = 274; } //Ambulance
else if(level == 5) { PlayerInfo[para1][pChar] = 175; } //Surenos
else if(level == 6) { PlayerInfo[para1][pChar] = 187; } //La Famiglia Sinatra
else if(level == 7) { PlayerInfo[para1][pChar] = 147; } //Mayor
else if(level == 8) { PlayerInfo[para1][pChar] = 20; } //Hitmans
else if(level == 9) { PlayerInfo[para1][pChar] = 227; } //News Reporters
else if(level == 10) { PlayerInfo[para1][pChar] = 61; } //Taxi Cab Company
else if(level == 11) { PlayerInfo[para1][pChar] = 171; } //Driving/Flying School
else if(level == 12) { PlayerInfo[para1][pChar] = 279; } //Firemen
else if(level == 13) { PlayerInfo[para1][pChar] = 248; } //bikers
else if(level == 14) { PlayerInfo[para1][pChar] = 228; } //Yamaguchi
else if(level == 15) { PlayerInfo[para1][pChar] = 113; } //Russian Mafia
else if(level == 16) { PlayerInfo[para1][pChar] = 228; } //La Vice

if(level == 0)
{
    gTeam[para1] = 3;
    PlayerInfo[para1][pTeam] = 3;
    PlayerInfo[para1][pRank] = 0;
}
else if(level == 1)
{
    gTeam[para1] = 2;
    PlayerInfo[para1][pTeam] = 2;
    PlayerInfo[para1][pRank] = 8;
}
else if(level == 2)
{
    gTeam[para1] = 2;
    PlayerInfo[para1][pTeam] = 2;
    PlayerInfo[para1][pRank] = 8;
}
else if(level == 3)
{
    gTeam[para1] = 2;
    PlayerInfo[para1][pTeam] = 2;
    PlayerInfo[para1][pRank] = 8;
}
else if(level == 4)
{
                            gTeam[para1] = 1;
    PlayerInfo[para1][pTeam] = 1;
    PlayerInfo[para1][pRank] = 8;
}
else if(level == 5)
{
    gTeam[para1] = 15;
    PlayerInfo[para1][pTeam] = 15;
    PlayerInfo[para1][pRank] = 6;
}
else if(level == 6)
{
    gTeam[para1] = 15;
    PlayerInfo[para1][pTeam] = 15;
    PlayerInfo[para1][pRank] = 8;
}
else if(level == 7)
{
    gTeam[para1] = 15;
    PlayerInfo[para1][pTeam] = 15;
    PlayerInfo[para1][pRank] = 6;
}
else if(level == 8)
{
    gTeam[para1] = 15;
    PlayerInfo[para1][pTeam] = 15;
    PlayerInfo[para1][pRank] = 6;
}
else if(level == 9)
{
    gTeam[para1] = 15;
    PlayerInfo[para1][pTeam] = 15;
    PlayerInfo[para1][pRank] = 6;
}
else if(level == 10)
{
    gTeam[para1] = 15;
    PlayerInfo[para1][pTeam] = 15;
    PlayerInfo[para1][pRank] = 6;
}
else if(level == 11)
{
    gTeam[para1] = 15;
    PlayerInfo[para1][pTeam] = 15;
    PlayerInfo[para1][pRank] = 6;
}
else if(level == 12)
{
    gTeam[para1] = 15;
    PlayerInfo[para1][pTeam] = 15;
    PlayerInfo[para1][pRank] = 8;
}
else if(level == 13)
{
    gTeam[para1] = 15;
    PlayerInfo[para1][pTeam] = 15;
    PlayerInfo[para1][pRank] = 6;
}
else if(level == 14)
{
    gTeam[para1] = 15;
    PlayerInfo[para1][pTeam] = 15;
    PlayerInfo[para1][pRank] = 6;
}
else if(level == 15)
{
gTeam[para1] = 15;
    PlayerInfo[para1][pTeam] = 15;
    PlayerInfo[para1][pRank] = 7;
}
else if(level == 16)
{
    gTeam[para1] = 15;
    PlayerInfo[para1][pTeam] = 15;
    PlayerInfo[para1][pRank] = 9;
}
else
{
    gTeam[para1] = 3;
    PlayerInfo[para1][pTeam] = 3;
                            PlayerInfo[para1][pRank] = 0;
}
    SetPlayerSkin(para1, PlayerInfo[para1][pChar]);
    SetPlayerToTeamColor(para1);
}
}//not connected
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, "   Niste ovlaÅ¡teni koristiti tu komandu!");
}
}
return 1;


Neke slike/video za lakse dobivanje pomoci(neobavezno)://

<a href="http://tinypic.com?ref=5l2yrb" target="_blank"><img src="http://i47.tinypic.com/5l2yrb.png" border="0" alt="Image and video hosting by TinyPic"></a>

dodao sam i sada su ovi errori
D:\filmovi\filterscripts\EasyAdministration.pwn(324) : error 017: undefined symbol "tmp"
D:\filmovi\filterscripts\EasyAdministration.pwn(324) : error 017: undefined symbol "idx"
D:\filmovi\filterscripts\EasyAdministration.pwn(325) : error 017: undefined symbol "tmp"
D:\filmovi\filterscripts\EasyAdministration.pwn(332) : error 017: undefined symbol "ReturnUser"
D:\filmovi\filterscripts\EasyAdministration.pwn(333) : error 017: undefined symbol "tmp"
D:\filmovi\filterscripts\EasyAdministration.pwn(333) : error 017: undefined symbol "idx"
D:\filmovi\filterscripts\EasyAdministration.pwn(334) : error 017: undefined symbol "tmp"
D:\filmovi\filterscripts\EasyAdministration.pwn(347) : error 017: undefined symbol "giveplayer"
D:\filmovi\filterscripts\EasyAdministration.pwn(347) : error 017: undefined symbol "giveplayer"
D:\filmovi\filterscripts\EasyAdministration.pwn(347) : error 029: invalid expression, assumed zero
D:\filmovi\filterscripts\EasyAdministration.pwn(347) : fatal error 107: too many error messages on one line
<a href="http://tinypic.com?ref=5l2yrb" target="_blank"><img src="http://i47.tinypic.com/5l2yrb.png" border="0" alt="Image and video hosting by TinyPic"></a>

Pa dodaš na vrh gamemoda:
new tmp;
I tako sve iz tih errora.
I postaj ako ne uspiješ.
EDIT: Sad sam pogledao errore, znači sve iz tih errora dodaš pod new, evo ja sam ti sad to učinio, i ti samo kopiraj.
KOD:
new tmp;
new idx;
new ReturnUser;
new giveplayer;
Poslednja Izmena: Maj 29, 2011, 17:31:19 POSLE PODNE od [AG] Reddy

stavi gore na vrh GM
#include <utils>
i ovo
new tmp[128],giveplayer[MAX_PLAYER_NAME],idx;
u komandu
Poslednja Izmena: Maj 29, 2011, 17:35:23 POSLE PODNE od Nenad










Services
Web Designing
Graphic Designing
PAWN Scripting

dodao sam tako sta ste rekli i sada mi ovo izbacuje 4 errore mkr ima iwarninga al errori me muce
D:\filmovi\pawno\include\dutils.inc(293) : warning 219: local variable "tmp" shadows a variable at a preceding level
D:\filmovi\pawno\include\dutils.inc(439) : warning 219: local variable "tmp" shadows a variable at a preceding level
D:\filmovi\pawno\include\dini.inc(46) : warning 219: local variable "tmp" shadows a variable at a preceding level
D:\filmovi\pawno\include\dini.inc(54) : warning 219: local variable "tmp" shadows a variable at a preceding level
D:\filmovi\filterscripts\EasyAdministration.pwn(352) : error 017: undefined symbol "string"
D:\filmovi\filterscripts\EasyAdministration.pwn(352) : error 017: undefined symbol "string"
D:\filmovi\filterscripts\EasyAdministration.pwn(352) : error 029: invalid expression, assumed zero
D:\filmovi\filterscripts\EasyAdministration.pwn(352) : fatal error 107: too many error messages on one line
<a href="http://tinypic.com?ref=5l2yrb" target="_blank"><img src="http://i47.tinypic.com/5l2yrb.png" border="0" alt="Image and video hosting by TinyPic"></a>

Mora imati utils.inc ako hoćeš gore:
#include <utils> :D
Skini utils.inc, i ubaci u pawno: include folder, i zatim ovo gore dodaj.
I onda ono Å¡to je Nenad rekao.
Poslednja Izmena: Maj 29, 2011, 17:37:42 POSLE PODNE od [AG] Reddy

evo dodao sma taj utils ovo sta je Nenad rekao new para1; svi su errori pod 355
D:\filmovi\pawno\include\dutils.inc(293) : warning 219: local variable "tmp" shadows a variable at a preceding level
D:\filmovi\pawno\include\dutils.inc(439) : warning 219: local variable "tmp" shadows a variable at a preceding level
D:\filmovi\pawno\include\dini.inc(46) : warning 219: local variable "tmp" shadows a variable at a preceding level
D:\filmovi\pawno\include\dini.inc(54) : warning 219: local variable "tmp" shadows a variable at a preceding level
D:\filmovi\filterscripts\EasyAdministration.pwn(355) : error 017: undefined symbol "string"
D:\filmovi\filterscripts\EasyAdministration.pwn(355) : error 017: undefined symbol "string"
D:\filmovi\filterscripts\EasyAdministration.pwn(355) : error 029: invalid expression, assumed zero
D:\filmovi\filterscripts\EasyAdministration.pwn(355) : fatal error 107: too many error messages on one line

a to su ovi
<a href="http://tinypic.com?ref=5l2yrb" target="_blank"><img src="http://i47.tinypic.com/5l2yrb.png" border="0" alt="Image and video hosting by TinyPic"></a>

Stavi:
new string;
I valjda će raditi, tj. popraviti te errore, a za ovo ostalo ne znam.

nisi stavio na dobro mjesto to new tmp itd...a ovo string error moras staviti new string[128]; jer ti inace nece dobro raditi komanda
Poslednja Izmena: Maj 29, 2011, 17:48:13 POSLE PODNE od Nenad










Services
Web Designing
Graphic Designing
PAWN Scripting

posto nemogu ovo srediti dali ima ko FS sa register login sistemo u dialogu koji sejva admina leadera membera iz org/MAFIE odma dodane mafie i ostalo da ima komande /ah /makeleader i ostalo
<a href="http://tinypic.com?ref=5l2yrb" target="_blank"><img src="http://i47.tinypic.com/5l2yrb.png" border="0" alt="Image and video hosting by TinyPic"></a>

pogledaj u podforumu filterskripte msm da tamo ima nesto slicno...al bolje ti je da fixas ovo










Services
Web Designing
Graphic Designing
PAWN Scripting

Ma msm da to ipak nebi radilo jer sam to iscupao oz ravensa a kako napraviti za lvl npr da igra lik 4sata u predje na 2 lvl igra 6 i predje na 3 tak nes jel moze pomoc u vezi toga
<a href="http://tinypic.com?ref=5l2yrb" target="_blank"><img src="http://i47.tinypic.com/5l2yrb.png" border="0" alt="Image and video hosting by TinyPic"></a>

Citat: sandman12wolf poslato Maj 29, 2011, 17:54:49 POSLE PODNE
Ma msm da to ipak nebi radilo jer sam to iscupao oz ravensa a kako napraviti za lvl npr da igra lik 4sata u predje na 2 lvl igra 6 i predje na 3 tak nes jel moze pomoc u vezi toga
radilo bi ako si dobro prekopirao...a ovo drugo ne razumijem na sta mislis










Services
Web Designing
Graphic Designing
PAWN Scripting

Ma hocu rec tj. pitam za lvl naprimjer neki igrac na serveru igra 4 sata i onda moze prec na 2 lvl i tako za treci igra 6  sati jesi me razumio
<a href="http://tinypic.com?ref=5l2yrb" target="_blank"><img src="http://i47.tinypic.com/5l2yrb.png" border="0" alt="Image and video hosting by TinyPic"></a>

aha...mislim da to imas na forumu vidio sam negdje u nekoj temi...a mozes to i copy iz nekog GM...skoro svi GM-ovi imaju taj system










Services
Web Designing
Graphic Designing
PAWN Scripting