28.02.2014, 13:54
Quote:
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. |
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");