AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   strfind error :/ (https://forums.alliedmods.net/showthread.php?t=193436)

Nitroexe 08-19-2012 08:46

strfind error :/
 
Whats wrong?

Code:

iii = strfind(szLine, "Czlonek", 0, iii); // iii = 24
num_to_str(iii, test, 2);
client_print(0, print_console, test);
do
{

iii = iii + 2; // iii = 26 iii = 34
liczbaczlonkowi++;

iii = strfind(szLine, "Czlonek", 0, iii); /// iii 32;
test1++;
num_to_str(iii, test, 2);
client_print(0, print_console, test);
}
while(iii != -1 && test1 < 10)


Arkshine 08-19-2012 10:00

Re: strfind error :/
 
Not sure what is your problem, but if related to the last param, there is a known bug : https://bugs.alliedmods.net/show_bug.cgi?id=4070

Nitroexe 08-19-2012 14:39

Re: strfind error :/
 
thanks.


All times are GMT -4. The time now is 05:47.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.