[Ajuda] Erro no fs
#1

Код:
new 
	pIP[MAX_PLAYERS][16],
	pTime[MAX_PLAYERS];

public OnPlayerConnect(playerid)
{
	new 
		playerIP[16],
		playerInteger[2];

	GetPlayerIp(playerid, playerIP, 16);
	playerInteger[0] = gettime() + 2;

	for(new i; i < MAX_PLAYERS; ++i)
	{
		if(pTime[i] && !strcmp(pIP, playerIP) && pTime[i] >= playerInteger[0]) 
		{
			if(++playerInteger[1] == 3) 
				return BanEx(playerid, "FUCK OFF IDIOT, YOU SUCK.");
		}
	}

	strmid(pIP, playerIP, 0, 16);
	return pTime[playerid] = pInteger[0];
}

da varios erros! (+REP para quem solucionar)
Reply
#2

Consertei os erros do seu cуdigo :


pawn Код:
new
    pIP[MAX_PLAYERS][16],
    pTime[MAX_PLAYERS];
   

public OnPlayerConnect(playerid)
{
    new
        playerIP[16],
        playerInteger[2];

    GetPlayerIp(playerid, playerIP, 16);
    playerInteger[0] = gettime() + 2;

    for(new i; i < MAX_PLAYERS; ++i)
    {
        if(pTime[i] && !strcmp(pIP[playerid], playerIP) && pTime[i] >= playerInteger[0])
        {
            if(++playerInteger[1] == 3)
                return BanEx(playerid, "FUCK OFF IDIOT, YOU SUCK.");
        }
    }

    strmid(pIP[playerid], playerIP, 0, 16, sizeof(pIP[]));
    return pTime[playerid] = playerInteger[0];
}


Espero ter ajudado .
Reply
#3

vlw vlw +REP
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)