Provjeri Ime

Započeo Robyo97o, Jul 31, 2010, 16:05:52 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Dobijem error - C:\Users\robert\Desktop\Samp 0.3a R8\filterscripts\kicck.pwn(11) : error 033: array must be indexed (variable "splitname")

A kod;

#include <a_samp>

public OnPlayerConnect(playerid)
{
        new player[24];
        GetPlayerName(playerid,player,24);
        for(new n = 0; n < strlen(player); n++)
        {
            new splitname[2][MAX_PLAYER_NAME];
split(player, splitname, '_');
if (player[n] == '_' && splitname[0+1] >= 'A' && splitname[0+1] <= 'Z' && splitname[1+1] >= 'A' && splitname[1+1]<= 'Z')
Kick(playerid);
return 1;
    }
    return 1;
}
stock split(const strsrc[], strdest[][], delimiter)
{
    new i, li;
    new aNum;
    new len;
    while(i <= strlen(strsrc))
    {
        if(strsrc[i] == delimiter || i == strlen(strsrc))
        {
            len = strmid(strdest[aNum], strsrc, li, i, 128);
            strdest[aNum][len] = 0;
            li = i+1;
            aNum++;
        }
        i++;
    }
    return 1;
}


Red 11
if (player[n] == '_' && splitname[0+1] >= 'A' && splitname[0+1] <= 'Z' && splitname[1+1] >= 'A' && splitname[1+1]<= 'Z')

De treba i men to ajde ak neko zna da napise