SA-MP Forums Archive
https://sampforum.blast.hk/showthread.php?tid=471175 - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: https://sampforum.blast.hk/showthread.php?tid=471175 (/showthread.php?tid=544287)



https://sampforum.blast.hk/showthread.php?tid=471175 - Banditukas - 01.11.2014

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?