28.02.2014, 13:20
Quote:
public deger values does not work help!!
Код:
Antiopen(playerid,"ANTI_CRASHER","Anti_Crasher","Anti Crasher","Anti Crasher"); // Deger is "ANTI_CRASHER" Код:
forward Antiopen(playerid,deger[],const dini[],const turkce2[], const english2[]); public Antiopen(playerid,deger[],const dini[],const turkce2[],const english2[]) { new str[100],file[256],string[144],string2[144]; PlayerPlaySound(playerid, 1056, 0.0, 0.0, 0.0); if(deger[30] == 1){ // value does not work } |
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.