Насчет Dini
#2

теперь вот такой еррор...error 006: must be assigned to an array

а вот кодец, подскажите что непраильно?
Код:
    if(strcmp(cmd, "/setvip", true) == 0)
    {
    	tmp = strtok(cmdtext, idx);
     	if(!strlen(tmp))
        {
        	SendClientMessage(playerid, COLOR_A, "ошибка: /setvip [ид] [кол-во]");
         	return 1;
         }
        giveplayeridd = strval(tmp);
        tmp = strtok(cmdtext, idx);
        if(!strlen(tmp))
        {
            SendClientMessage(playerid, COLOR_A, "ошибка: /setvip [ид] [кол-во]");
            return 1;
        }
        if (IsPlayerConnected(giveplayeridd))
        {
        	new VipAccount[256];
            format(VipAccount,256,"VipAccounts/%s.txt", PlayerName(playerid));
            
            new proverka;
            proverka=dini_Get(VipAccount,"vip");
			if(proverka == 1) dini_IntSet(VipAccount, "vip",0);
      		if(proverka == 0) dini_IntSet(VipAccount, "vip",1);
        }
        else
        {
			format(string, sizeof(string), "%d неактивный игрок.", giveplayeridd);
			SendClientMessage(playerid, COLOR_A, string);
        }
        return 1;
    }
Reply


Messages In This Thread
Насчет Dini - by temka1993 - 19.03.2011, 20:30
Re: Насчет Dini - by temka1993 - 20.03.2011, 07:34
Re: Насчет Dini - by On1xS - 20.03.2011, 12:37
Re: Насчет Dini - by Aleks10 - 21.03.2011, 11:48
Re: Насчет Dini - by ]KenT[ - 21.03.2011, 18:04
Re: Насчет Dini - by kazmorebig - 25.03.2011, 11:38

Forum Jump:


Users browsing this thread: 1 Guest(s)