https://sampforum.blast.hk/showthread.php?tid=471175
#1

Hi,

Can you explain:

Код:
for(new i; i < sizeof my_spells; i++)
    {
		new
			spell_func[24];

	    strcat(spell_func, my_spells[i]);

	    if(strfind(spell_func, "!", false, strlen(spell_func)-1))
	    {
	    	strdel(spell_func, strlen(spell_func)-1, strlen(spell_func));
		}

	    new
	    	rspace;

	    while((rspace = strfind(spell_func, " ", false, rspace)) != -1)
	    {
	        strdel(spell_func, rspace, rspace + 1);
	        strins(spell_func, "_", rspace);
	    }

		if(!CallLocalFunction(spell_func, "i", INVALID_PLAYER_ID))
		{
		    my_spells[i] = "";
			printf("SPELL:%s - doesn't return value.", spell_func);
		}
	}
printf("SPELL:%s - doesn't return value.", spell_func);

What value she have to return?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)