ja
igy nem jó ?
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if(pressed(KEY_FIRE))
{
if(pInfo[playerid][Iszik] == true && GetPlayerSpecialAction(playerid) == SPECIAL_ACTION_DRINK_SPRUNK && pInfo[playerid][IszikTimer] == 0) { pInfo[playerid][Iszik] = false; SetPlayerSpecialAction(playerid,SPECIAL_ACTION_NONE); }
if(pInfo[playerid][Iszik] == true) {
pInfo[playerid][IszikTimer]--; Kozerzet(playerid, 2, -3); }
}
if(pressed(KEY_NO))
{
ShowInventory(playerid);
return 1;
}
if(pressed(KEY_YES))
{
if(pInfo[playerid][pBelepve] == false) return 1;
if(IsPlayerInRangeOfPoint(playerid, 2.0, -326.1909,1049.2335,19.7422) || IsPlayerInRangeOfPoint(playerid, 2.0, -323.0682,1050.5905,19.7422))
{
format(wszoveg,sizeof(wszoveg),""#COL_LRED"Név\t"#COL_LRED"Indok\n\
%s\t%s\n\
%s\t%s\n\
%s\t%s\n\
%s\t%s\n",Beteg[0],Ok[0],Beteg[1],Ok[1],Beteg[2],Ok[2],Beteg[3],Ok[3]);
ShowPlayerDialog(playerid, 9999, DIALOG_STYLE_TABLIST_HEADERS, ""#COL_LRED"[Kórházi Pácienslista]",
wszoveg, // Etc.
"OK", "");
return 1;
}
if(IsPlayerInShop(playerid)) return ShowBoltDialog(playerid);
if(IsPlayerInCarShop(playerid)) return ShowJarmuVasarlas(playerid);
if(IsPlayerInBank(playerid))
{
if(BszInfo[playerid][Bejelentkezve] == 0)
ShowPlayerDialog(playerid, DIALOG_UJBANK_ELSOPANEL, DIALOG_STYLE_LIST, "{FFF700}[Bankszámla Felület]", ""#COL_FEHER"Új Bankszámlaszám Létrehozása\nMeglévő Bankszámlaszám Használata", "Tovább","Kilépés");
else
ShowBankDialog(playerid);
return 1;
}
}
if(pressed(KEY_YES))
{
HazAjtoKereses(playerid);
PickUpItem(playerid);
IsPlayerAtBiznisz(playerid);
}
if(pressed(KEY_YES))
{
if(IsPlayerInRangeOfPoint(playerid, 3.0,1309.4163,1302.4043,10.9708))
{
ShowPlayerDialog(playerid, 9999, DIALOG_STYLE_MSGBOX, ""#COL_FEHER"Buszmegálló", ""#COL_FEHER"Buszjáratok.:\n"#COL_LRED"62E "#COL_FEHER"- Átlagos közlekedési idő - 5 perc - (Las Venturas Reptér - Fort Carson)\n\
"COL_LRED"63 "#COL_FEHER"- Átlagos közlekedési idő - 7 perc - (Las Venturas Reptér - Fort Carson)", "Kilépés","");
return 1;
}
if(IsPlayerInRangeOfPoint(playerid, 3.0,1344.1357,1258.2992,10.8203)) // Kávézó - Reptér
{
PlayerPlaySound(playerid, 1054, 0.0, 0.0, 10.0);
ShowPlayerDialog(playerid, DIALOG_KAVE, DIALOG_STYLE_TABLIST_HEADERS, ""#COL_LRED"[Kávé - Vásárlás]",
""#COL_FEHER"Termék\t"#COL_FEHER"Ár\t"#COL_FEHER"Darabszám\n\
Kávé\t$5\t1 (0.5l)\t-\n", // Etc.
"Vásárlás", "Vissza");
}
}
return 1;
}
most meg ezt iírja Array max index is 499 but accessing an element at -1
Script[gamemodes\mod.amx]: During execution of OnPlayerKeyStateChange():
Script[gamemodes\mod.amx]: Run time error 4: "Array index out of bounds"
Additional information:
Array max index is 499 but accessing an element at -1
Script[gamemodes\mod.amx]: During execution of OnPlayerKeyStateChange():
Script[gamemodes\mod.amx]: Run time error 4: "Array index out of bounds"
Additional information:
Array max index is 499 but accessing an element at -1
Script[gamemodes\mod.amx]: During execution of OnPlayerKeyStateChange():
Script[gamemodes\mod.amx]: Run time error 4: "Array index out of bounds"
Additional information:
Array max index is 499 but accessing an element at -1
Script[gamemodes\mod.amx]: During execution of OnPlayerKeyStateChange():
Script[gamemodes\mod.amx]: Run time error 4: "Array index out of bounds"
Additional information:
Array max index is 499 but accessing an element at -1
Script[gamemodes\mod.amx]: During execution of OnPlayerKeyStateChange():
Script[gamemodes\mod.amx]: Run time error 4: "Array index out of bounds"
Additional information:
Array max index is 499 but accessing an element at -1
Script[gamemodes\mod.amx]: During execution of OnPlayerKeyStateChange():
Script[gamemodes\mod.amx]: Run time error 4: "Array index out of bounds"
az szerepet játszik hogy az egész modban "wszoveg" irja ki a SendClientMessage(palyerid,-1,wszoveg); az egész modban ? format(wszoveg,sizeof(wszoveg),"Test");
van a szöveg le formátumozva ?