Код:
{
new msg2[128];
SendClientMessage(playerid, COLOR_NICERED,"=======================================YOU ARE BANNED======================================");
SendClientMessage(playerid, COLOR_LIGHTRED,"Acest IP A fost banat pe server, Si nu a Fost Niciodata unbanat.");
SendClientMessage(playerid, COLOR_LIGHTRED,"Daca doresti sa fi unbanat intra pe forumul nostru wwww.darktouchrp.tk!");
SendClientMessage(playerid, COLOR_LIGHTRED,"Ban Evading will result in a Permanent Range Ban.");
SendClientMessage(playerid, COLOR_NICERED,"=======================================BAN INFORMATION=====================================");
format(msg2,sizeof(msg2),"Ime od naloga je banovan na ovaj IP %s"),dini_Get(bancheck,BanName));
SendClientMessage(playerid, COLOR_WHITE,msg2);
format(msg2,sizeof(msg2),"Ban issued by administrator: %s"),dini_Get(bancheck,BannedBy));
SendClientMessage(playerid, COLOR_WHITE,msg2);
format(msg2,sizeof(msg2),"Ban issued on date: %s"),dini_Get(bancheck,BanDate));
SendClientMessage(playerid, COLOR_WHITE,msg2);
format(msg2,sizeof(msg2),"Ban Reason: %s"),dini_Get(bancheck,BanReason));
SendClientMessage(playerid, COLOR_WHITE,msg2);
SendClientMessage(playerid, COLOR_NICERED,"========================================YOU ARE BANNED=======================================");
format(msg2,sizeof(msg2),"[ADMIN]: %s (%d), A luat kick pentru posibil Ban Evading",plname,playerid);
SendAdminMessage(COLOR_LIGHTRED,msg2);
format(msg2,sizeof(msg2),"(%d/%d/%d) [%d:%d:%d] %s A luat kick de la Anti-Cheat pentru posibil Ban Evading",d,m,y,h,mi,s,plname);
KickLog(msg2);
format(msg2,sizeof(msg2),"LARP/Users/%s.ini",plname);
if(dini_Exists(msg2))
{
dini_IntSet(msg2,"Banned",1);
}
OnPlayerUpdateEx(playerid);
SetTimerEx("KickPlayerOut",500,false,"i",playerid);
return 1;
}
{
format(pFILE[playerid], 128, "ECRP/Users/Aliases/%s.txt", plname);
dini_Create(pFILE[playerid]);
dini_Set(pFILE[playerid], "Nameip", playersip);
}
if(strlen(dini_Get("ECRP/Users/Aliases/ips.txt", plname)) == 0)
{
dini_Set("ECRP/Users/Aliases/ips.txt", plname, playersip);
}
else
{
if( strfind( dini_Get("ECRP/Users/Aliases/ips.txt", plname), playersip, true) == -1 )
{
format(string,sizeof(string),"%s, %s", dini_Get("ECRP/Users/Aliases/ips.txt",plname), playersip);
dini_Set("ECRP/Users/Aliases/ips.txt", plname, string);
}
}
new pAKA[256];
pAKA = dini_Get("ECRP/Users/Aliases/alias.txt",playersip);
new pIPs[256];
pIPs = dini_Get("ECRP/Users/Aliases/ips.txt",plname);
if (strlen(pAKA) < 3)
{
format(string,sizeof(string),"[INFO]: %s (%d) je usao na Extreme-Crafting RP. (%s)", plname, playerid,playersip);
if (strlen(pIPs) < 3) SendIP = 0;
else if (!strcmp(pIPs,playersip,true)) SendIP = 0;
else
{
if(strlen(pIPs) >= 128)
{
format(string2,sizeof(string2),"* %s (%d)'s Ostale IP adrese: -Too Many, Be Careful-", plname, playerid);
}
else
{
format(string2,sizeof(string2),"* %s (%d)'s Ostale IP adrese: %s", plname, playerid, pIPs);
}
SendIP = 1;
}
}
else if (!strcmp(pAKA,plname,true))
{
format(string,sizeof(string),"[INFO]: %s (%d) je usao na Extreme-Crafting RP. (%s)", plname, playerid,playersip);
if (strlen(pIPs) < 3) SendIP = 0;
else if (!strcmp(pIPs,playersip,true)) SendIP = 0;
else
{
if(strlen(pIPs) >= 128)
{
format(string2,sizeof(string2),"* %s (%d)'s Ostale IP adrese: -Too Many, Be Careful-", plname, playerid);
}
else
{
format(string2,sizeof(string2),"* %s (%d)'s Ostale IP adrese: %s", plname, playerid, pIPs);
}
SendIP = 1;
}
}
else
{
format(string,sizeof(string),"[INFO]: %s (%d) je usao na Server (%s). (Alias: %s)", plname, playerid,playersip, pAKA);
if (strlen(pIPs) < 3) SendIP = 0;
else if (!strcmp(pIPs,playersip,true)) SendIP = 0;
else
{
if(strlen(pIPs) >= 128)
{
format(string2,sizeof(string2),"* %s (%d)'s Ostale IP adrese: -Too Many, Be Careful-", plname, playerid);
}
else
{
format(string2,sizeof(string2),"* %s (%d)'s Ostale IP adrese: %s", plname, playerid, pIPs);
}
SendIP = 1;
}
}
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i) && playerid != i)
{
if(PlayerInfo[i][pAdmin] > 1)
{
SendClientMessage(i,COLOR_GREEN,string);
if(SendIP == 1)
{
SendClientMessage(i,COLOR_GREEN,string2);
SendIP = 0;
}
}
/*else
{
format(string,sizeof(string),"* %s (%d) je usao na Extreme-Crafting RP.", plname, playerid);
SendClientMessage(i,COLOR_GREY,string);
}*/
}
}
format(string, sizeof(string), "ECRP/Users/%s.ini", plname);
SendClientMessage(playerid, COLOR_YELLOW2, "Molimo vas sacekajte...");
if(fexist(string))
{
gPlayerNalog[playerid] = 1;
}
else
{
gPlayerNalog[playerid] = 0;
}
//fclose(hFile);
return 1;
}
return 1;
}
i try to fix it and when i did it in show 26 problems and when i check everythink is ok
United Gaming RP's Scripter clearly stated its not for newbies...u make me cry
It's not from United Gaming RP its my server i make it and it's Urban Gaming
When you script, you should indent your code.
to explain how it works. Basically it means you leave blank spaces in your code to make it more readable.
This is just a warning, you can choose to ignore it (but it's not recommanded).
The function waits for an argument of a certain type but you provide an argument of another type. For example, if there is a function like
, the compiler will return this error. You can see which argument is wrong for each error.
You are using a variable which was not created before. Check if you're using the right variable or create it beore you use it.
Something is dumb in your code. Show us this portion as this error can happen with different things.
Well. It's self-explained.