Public Help
#4

Quote:
Originally Posted by PowerPC603
Посмотреть сообщение
That's understandable.

You're passing a string to your function: "ANTI_CRASHER".
This string is only 12 characters long.

Your code "if (deger[30] == 1" checks the 30th character to be equal to integer value "1".
Deger has been initialized with only size 13 (your string and NULL character) and you try to access character 30, which gives you an out-of-bounds error.
That's why I made it available in different use

Sample

Antiopen(playerid,"ANTI_CRASHER","Anti_Crasher","A nti Crasher","Anti Crasher");
Antiopen(playerid,"ANTI_CON","Anti_Con","Anti Con","Anti Con");
Antiopen(playerid,"ANTI_PING","Anti_Ping","Anti Ping","Anti Ping");
Antiopen(playerid,"ANTI_SILAH","Anti_Silah","Anti Silah","Anti Weapon");
Reply


Messages In This Thread
Public Help - by Max_Andolini - 27.02.2014, 14:48
Re: Public Help - by Max_Andolini - 27.02.2014, 17:02
Re: Public Help - by PowerPC603 - 28.02.2014, 13:20
Re: Public Help - by Max_Andolini - 28.02.2014, 13:54
Re: Public Help - by Konstantinos - 28.02.2014, 13:57
Re: Public Help - by Max_Andolini - 01.03.2014, 08:23
Re: Public Help - by Max_Andolini - 01.03.2014, 10:15
Re: Public Help - by Konstantinos - 01.03.2014, 10:24
Re: Public Help - by Max_Andolini - 01.03.2014, 10:37
[No subject] - by Max_Andolini - 01.03.2014, 13:28

Forum Jump:


Users browsing this thread: 3 Guest(s)