Poziv i SMS


Započeo Kenan Maras, Februar 17, 2020, 17:48:32 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Problem(error/warning): Koristim telefon u TDovima,i kada unesem broj i kleknem na poziv nece da pozove
Dio skripte: [ pawn ]  else if(clickedid == iPhonePoziv)
{
if(UnioBroj1[playerid] == 0)
{
if(UnioBroj2[playerid] == 0)
{
if(UnioBroj3[playerid] == 1)
{
if(UnioBroj4[playerid] == 0)
{
if(UnioBroj5[playerid] == 0)
{
if(UnioBroj6[playerid] == 0)
{
MupPoziv(playerid);
}
}
}
}
}
}
////////////////////////////////////////////////////////////////////////////////
if(UnioBroj1[playerid] == 0)
{
if(UnioBroj2[playerid] == 0)
{
if(UnioBroj3[playerid] == 2)
{
if(UnioBroj4[playerid] == 0)
{
if(UnioBroj5[playerid] == 0)
{
if(UnioBroj6[playerid] == 0)
{
HitnaPoziv(playerid);
}
}
}
}
}
}
////////////////////////////////////////////////////////////////////////////////
if(UnioBroj1[playerid] == 0)
{
if(UnioBroj2[playerid] == 0)
{
if(UnioBroj3[playerid] == 3)
{
if(UnioBroj4[playerid] == 0)
{
if(UnioBroj5[playerid] == 0)
{
if(UnioBroj6[playerid] == 0)
{
MehanicarPoziv(playerid);
}
}
}
}
}
}
////////////////////////////////////////////////////////////////////////////////
if(UnioBroj1[playerid] == 0)
{
if(UnioBroj2[playerid] == 0)
{
if(UnioBroj3[playerid] == 4)
{
if(UnioBroj4[playerid] == 0)
{
if(UnioBroj5[playerid] == 0)
{
if(UnioBroj6[playerid] == 0)
{
//TaxiPoziv(playerid);
}
}
}
}
}
}
if(UnioBroj1[playerid] == 0)
{
if(UnioBroj2[playerid] == 0)
{
if(UnioBroj3[playerid] == 5)
{
if(UnioBroj4[playerid] == 0)
{
if(UnioBroj5[playerid] == 0)
{
if(UnioBroj6[playerid] == 0)
{
SendClientMessageEx(playerid, 0xA5AAB0FF,"{FFFFFF}[BC | Telekom]: {F0B767}Vas kredit za mobitel iznosi: {FFFFFF}%d$.",PI[playerid][pTKredit]);
UnistiMobitel(playerid);
}
}
}
}
}
}
////////////////////////////////////////////////////////////////////////////////
else
{
////////////////////////////////////////////////////////////////////////////////
if(UnioBrojeva[playerid] != 6) return SCM(playerid, 0xAAB3BFFF,"{FFFFFF}[BC | Telekom]: {F0B767}Birali ste nepostojeci broj!");
foreach(Player, i)
{
if(UnioBroj1[playerid] == PI[pBroj1])
{
if(UnioBroj2[playerid] == PI[pBroj2])
{
if(UnioBroj3[playerid] == PI[pBroj3])
{
if(UnioBroj4[playerid] == PI[pBroj4])
{
if(UnioBroj5[playerid] == PI[pBroj5])
{
if(UnioBroj6[playerid] == PI[pBroj6])
{
if(IgracLogovan >= 1)
{
//if(playerid == i) return SCM(playerid, 0xAAB3BFFF,"{FFFFFF}[BC | Telekom]: {F0B767}Ne mozete pozivati broj koji Vi koristite!");
if(Mobile2 != -1) return SCM(playerid, 0xAAB3BFFF,"{FFFFFF}[BC | Telekom]: {F0B767}Zauzeto je, pokusajte poslije!");
if(Mobile != -1) return SCM(playerid, 0xAAB3BFFF,"{FFFFFF}[BC | Telekom]: {F0B767}Zauzeto je, pokusajte poslije!");
if(Mobile[playerid] != -1) return SCM(playerid, 0xAAB3BFFF,"{FFFFFF}[BC | Telekom]: {F0B767}Vec pricate sa nekim!");
if(Mobile2[playerid] != -1) return SCM(playerid, 0xAAB3BFFF,"{FFFFFF}[BC | Telekom]: {F0B767}Neko Vas zove, ne mozete Vi vrsiti poziv!");
if(PI[playerid][pTKredit] < 1) return SCM(playerid, 0xAAB3BFFF,"{FFFFFF}[BC | Telekom]: {F0B767}Dostigli ste limit za poziv, zao nam je!");
if(PI[pMobilni] != 1) return SCM(playerid, 0xAAB3BFFF, "{FFFFFF}[BC | Telekom]: {F0B767}Taj korisnik nije pretplatnik telekoma!");
if(PI[pSpecaIgraca] != 0) return SCM(playerid, 0xAAB3BFFF, "{FFFFFF}[BC | Telekom]: {F0B767}Taj korisnik nije pretplatnik telekoma!");
if(PI[pUgasenMob] == 1) return SCM(playerid, 0xAAB3BFFF,"{FFFFFF}[BC | Telekom]: {F0B767}Birani pretplatnik trenutno je nedostupan!");
new kozove[MAX_PLAYER_NAME]; new kogazove[MAX_PLAYER_NAME]; new stringg[256];
GetPlayerName(playerid, kozove, sizeof(kozove));
GetPlayerName(i, kogazove, sizeof(kogazove));
kozove[strfind(kozove,"_")] = ' ';
kogazove[strfind(kogazove,"_")] = ' ';
format(stringg, sizeof(stringg), "{FFFFFF}[BC | Telekom]: {F0B767}Vas mobitel zvoni, poziva Vas broj: {FFFFFF}%d%d%d%d%d%d...",PI[playerid][pBroj1],PI[playerid][pBroj2],PI[playerid][pBroj3],PI[playerid][pBroj4],PI[playerid][pBroj5],PI[playerid][pBroj6]);
SendClientMessage(i, 0xAAB3BFFF, stringg);
format(stringg, sizeof(stringg), "{FFFFFF}[BC | Telekom]: {F0B767}Pozivate broj: {FFFFFF}%d%d%d%d%d%d...",PI[pBroj1],PI[pBroj2],PI[pBroj3],PI[pBroj4],PI[pBroj5],PI[pBroj6]);
SendClientMessage(playerid, 0xAAB3BFFF, stringg);
format(stringg, sizeof(stringg), "Mobitel osobe %s zvoni...", kogazove);
ProxDetector(30.0, i, stringg, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
PlayerPlaySound(playerid,3600,0.0,0.0,0.0);
PlayerPlaySound(i,3600,0.0,0.0,0.0);
Mobile[playerid] = i;
Mobile2 = playerid;
UnioBroj1[playerid] = 0; UnioBroj2[playerid] = 0; UnioBroj3[playerid] = 0; UnioBroj4[playerid] = 0; UnioBroj5[playerid] = 0; UnioBroj6[playerid] = 0; UnioBrojeva[playerid] = 0;
UnistiMobitel(playerid);
}
}
}
}
}
}
}
}
}
}[ /pawn ]
Debug iz server_log(ukoliko je u pitanju crashanje servera - crashdetect log): [ code ]   [debug] Run time error 4: "Array index out of bounds"
[debug]  Accessing element at negative index -1
[debug] AMX backtrace:
[debug] #0 004b9b78 in public MS_OnPlayerClickTextDraw (playerid=0, Text:clickedid=88) at C:\Users\Keno\Desktop\pokusaj mysql\yini update\gamemodes\bcrp.pwn:56653
[debug] #1 native CallLocalFunction () from samp-server.exe
[debug] #2 0002087c in public MP_OPCTD (playerid=0, Text:clickedid=88) at C:\Users\Keno\Desktop\pokusaj mysql\yini update\pawno\include\eSelection.inc:521
[debug] #3 native CallLocalFunction () from samp-server.exe
[debug] #4 0001e8a0 in ?? (... <2 arguments>) at C:\Users\Keno\Desktop\pokusaj mysql\yini update\pawno\include\mSelection.inc:454
[debug] #5 0000ea50 in public OnPlayerClickTextDraw (playerid=0, Text:clickedid=88) at C:\Users\Keno\Desktop\pokusaj mysql\yini update\pawno\include\YSI\y_hooks/impl.inc:2842
[debug] Run time error 4: "Array index out of bounds"
[debug]  Accessing element at negative index -1
[debug] AMX backtrace:
[debug] #0 004b9b78 in public MS_OnPlayerClickTextDraw (playerid=0, Text:clickedid=88) at C:\Users\Keno\Desktop\pokusaj mysql\yini update\gamemodes\bcrp.pwn:56653
[debug] #1 native CallLocalFunction () from samp-server.exe
[debug] #2 0002087c in public MP_OPCTD (playerid=0, Text:clickedid=88) at C:\Users\Keno\Desktop\pokusaj mysql\yini update\pawno\include\eSelection.inc:521
[debug] #3 native CallLocalFunction () from samp-server.exe
[debug] #4 0001e8a0 in ?? (... <2 arguments>) at C:\Users\Keno\Desktop\pokusaj mysql\yini update\pawno\include\mSelection.inc:454
[debug] #5 0000ea50 in public OnPlayerClickTextDraw (playerid=0, Text:clickedid=88) at C:\Users\Keno\Desktop\pokusaj mysql\yini update\pawno\include\YSI\y_hooks/impl.inc:2842
[debug] Run time error 4: "Array index out of bounds"
[debug]  Accessing element at negative index -1
[debug] AMX backtrace:
[debug] #0 004b9b78 in public MS_OnPlayerClickTextDraw (playerid=0, Text:clickedid=88) at C:\Users\Keno\Desktop\pokusaj mysql\yini update\gamemodes\bcrp.pwn:56653
[debug] #1 native CallLocalFunction () from samp-server.exe
[debug] #2 0002087c in public MP_OPCTD (playerid=0, Text:clickedid=88) at C:\Users\Keno\Desktop\pokusaj mysql\yini update\pawno\include\eSelection.inc:521
[debug] #3 native CallLocalFunction () from samp-server.exe
[debug] #4 0001e8a0 in ?? (... <2 arguments>) at C:\Users\Keno\Desktop\pokusaj mysql\yini update\pawno\include\mSelection.inc:454
[debug] #5 0000ea50 in public OnPlayerClickTextDraw (playerid=0, Text:clickedid=88) at C:\Users\Keno\Desktop\pokusaj mysql\yini update\pawno\include\YSI\y_hooks/impl.inc:2842
[debug] Run time error 4: "Array index out of bounds"
[debug]  Accessing element at negative index -1
[debug] AMX backtrace:
[debug] #0 004b9b78 in public MS_OnPlayerClickTextDraw (playerid=0, Text:clickedid=88) at C:\Users\Keno\Desktop\pokusaj mysql\yini update\gamemodes\bcrp.pwn:56653
[debug] #1 native CallLocalFunction () from samp-server.exe
[debug] #2 0002087c in public MP_OPCTD (playerid=0, Text:clickedid=88) at C:\Users\Keno\Desktop\pokusaj mysql\yini update\pawno\include\eSelection.inc:521
[debug] #3 native CallLocalFunction () from samp-server.exe
[debug] #4 0001e8a0 in ?? (... <2 arguments>) at C:\Users\Keno\Desktop\pokusaj mysql\yini update\pawno\include\mSelection.inc:454
[debug] #5 0000ea50 in public OnPlayerClickTextDraw (playerid=0, Text:clickedid=88) at C:\Users\Keno\Desktop\pokusaj mysql\yini update\pawno\include\YSI\y_hooks/impl.inc:2842
[debug] Run time error 4: "Array index out of bounds"
[debug]  Accessing element at negative index -1
[debug] AMX backtrace:
[debug] #0 004b9b78 in public MS_OnPlayerClickTextDraw (playerid=0, Text:clickedid=88) at C:\Users\Keno\Desktop\pokusaj mysql\yini update\gamemodes\bcrp.pwn:56653
[debug] #1 native CallLocalFunction () from samp-server.exe
[debug] #2 0002087c in public MP_OPCTD (playerid=0, Text:clickedid=88) at C:\Users\Keno\Desktop\pokusaj mysql\yini update\pawno\include\eSelection.inc:521
[debug] #3 native CallLocalFunction () from samp-server.exe
[debug] #4 0001e8a0 in ?? (... <2 arguments>) at C:\Users\Keno\Desktop\pokusaj mysql\yini update\pawno\include\mSelection.inc:454
[debug] #5 0000ea50 in public OnPlayerClickTextDraw (playerid=0, Text:clickedid=88) at C:\Users\Keno\Desktop\pokusaj mysql\yini update\pawno\include\YSI\y_hooks/impl.inc:2842
[debug] Run time error 4: "Array index out of bounds"
[debug]  Accessing element at negative index -1
[debug] AMX backtrace:
[debug] #0 004b9b78 in public MS_OnPlayerClickTextDraw (playerid=0, Text:clickedid=88) at C:\Users\Keno\Desktop\pokusaj mysql\yini update\gamemodes\bcrp.pwn:56653
[debug] #1 native CallLocalFunction () from samp-server.exe
[debug] #2 0002087c in public MP_OPCTD (playerid=0, Text:clickedid=88) at C:\Users\Keno\Desktop\pokusaj mysql\yini update\pawno\include\eSelection.inc:521
[debug] #3 native CallLocalFunction () from samp-server.exe
[debug] #4 0001e8a0 in ?? (... <2 arguments>) at C:\Users\Keno\Desktop\pokusaj mysql\yini update\pawno\include\mSelection.inc:454
[debug] #5 0000ea50 in public OnPlayerClickTextDraw (playerid=0, Text:clickedid=88) at C:\Users\Keno\Desktop\pokusaj mysql\yini update\pawno\include\YSI\y_hooks/impl.inc:2842
[debug] Run time error 4: "Array index out of bounds"
[debug]  Accessing element at negative index -1
[debug] AMX backtrace:
[debug] #0 004b9b78 in public MS_OnPlayerClickTextDraw (playerid=0, Text:clickedid=88) at C:\Users\Keno\Desktop\pokusaj mysql\yini update\gamemodes\bcrp.pwn:56653
[debug] #1 native CallLocalFunction () from samp-server.exe
[debug] #2 0002087c in public MP_OPCTD (playerid=0, Text:clickedid=88) at C:\Users\Keno\Desktop\pokusaj mysql\yini update\pawno\include\eSelection.inc:521
[debug] #3 native CallLocalFunction () from samp-server.exe
[debug] #4 0001e8a0 in ?? (... <2 arguments>) at C:\Users\Keno\Desktop\pokusaj mysql\yini update\pawno\include\mSelection.inc:454
[debug] #5 0000ea50 in public OnPlayerClickTextDraw (playerid=0, Text:clickedid=88) at C:\Users\Keno\Desktop\pokusaj mysql\yini update\pawno\include\YSI\y_hooks/impl.inc:2842
[part] Edward has left the server (0:1)
[connection] 127.0.0.1:57237 requests connection cookie.
[connection] incoming connection: 127.0.0.1:57237 id: 0
[join] Edward has joined the server (0:127.0.0.1)
Iter_OnPlayerConnect: 0
Iter_OnPlayerConnect end
[connection] 127.0.0.1:53599 requests connection cookie.
[connection] incoming connection: 127.0.0.1:53599 id: 1
[join] Arda_Morrison has joined the server (1:127.0.0.1)
Iter_OnPlayerConnect: 1
Iter_OnPlayerConnect end
[debug] Run time error 4: "Array index out of bounds"
[debug]  Accessing element at negative index -1
[debug] AMX backtrace:
[debug] #0 004b9b78 in public MS_OnPlayerClickTextDraw (playerid=0, Text:clickedid=88) at C:\Users\Keno\Desktop\pokusaj mysql\yini update\gamemodes\bcrp.pwn:56653
[debug] #1 native CallLocalFunction () from samp-server.exe
[debug] #2 0002087c in public MP_OPCTD (playerid=0, Text:clickedid=88) at C:\Users\Keno\Desktop\pokusaj mysql\yini update\pawno\include\eSelection.inc:521
[debug] #3 native CallLocalFunction () from samp-server.exe
[debug] #4 0001e8a0 in ?? (... <2 arguments>) at C:\Users\Keno\Desktop\pokusaj mysql\yini update\pawno\include\mSelection.inc:454
[debug] #5 0000ea50 in public OnPlayerClickTextDraw (playerid=0, Text:clickedid=88) at C:\Users\Keno\Desktop\pokusaj mysql\yini update\pawno\include\YSI\y_hooks/impl.inc:2842  [ /code ]
Slika/video ingame problema(obavezno ako je ingame problem): //
Poslednja Izmena: Februar 18, 2020, 00:03:05 PRE PODNE od Galardo

ovu proveru dodaj
if(playerid == -1) return 1;
GAD SAM JA


Moja greska ne playerid vec i
if(i == -1) return 1;
GAD SAM JA

Nije pomoglo, samo je sada malo manji debag  :-X

[connection] 127.0.0.1:57487 requests connection cookie.
[connection] incoming connection: 127.0.0.1:57487 id: 0
[join] Edward has joined the server (0:127.0.0.1)
Iter_OnPlayerConnect: 0
Iter_OnPlayerConnect end
[debug] Run time error 4: "Array index out of bounds"
[debug]  Accessing element at negative index -1
[debug] AMX backtrace:
[debug] #0 004b9ba4 in public MS_OnPlayerClickTextDraw (playerid=0, Text:clickedid=88) at C:\Users\Keno\Desktop\BCRP\gamemodes\bcrp.pwn:56654
[debug] #1 native CallLocalFunction () from samp-server.exe
[debug] #2 0002087c in public MP_OPCTD (playerid=0, Text:clickedid=88) at C:\Users\Keno\Desktop\BCRP\pawno\include\eSelection.inc:521
[debug] #3 native CallLocalFunction () from samp-server.exe
[debug] #4 0001e8a0 in ?? (... <2 arguments>) at C:\Users\Keno\Desktop\BCRP\pawno\include\mSelection.inc:454
[debug] #5 0000ea50 in public OnPlayerClickTextDraw (playerid=0, Text:clickedid=88) at C:\Users\Keno\Desktop\BCRP\pawno\include\YSI\y_hooks/impl.inc:2842
[debug] Run time error 4: "Array index out of bounds"
[debug]  Accessing element at negative index -1
[debug] AMX backtrace:
[debug] #0 0038534c in ?? (... <5 arguments>) at C:\Users\Keno\Desktop\BCRP\gamemodes\bcrp.pwn:37130
[debug] #1 0000d708 in public OnDialogResponse (playerid=0, dialogid=1168, response=1, listitem=-1, inputtext[]=@0383c20c "sadsa") at C:\Users\Keno\Desktop\BCRP\pawno\include\YSI\y_hooks/impl.inc:2270

Poslaji mi ovu liniju 37130
GAD SAM JA

KoSalje[strfind(KoSalje,"_")] = ' ';  to je samo da crtu iz imena izbaci

Posalji mi celu tu funkciju
GAD SAM JA

if(playerid == i) return SCM(playerid, 0xAAB3BFFF,"{FFFFFF}[BC | Telekom]: {F0B767}Ne mozete pozivati broj koji Vi koristite!");
if(Mobile2 != -1) return SCM(playerid, 0xAAB3BFFF,"{FFFFFF}[BC | Telekom]: {F0B767}Zauzeto je, pokusajte poslije!");
if(Mobile != -1) return SCM(playerid, 0xAAB3BFFF,"{FFFFFF}[BC | Telekom]: {F0B767}Zauzeto je, pokusajte poslije!");
if(Mobile[playerid] != -1) return SCM(playerid, 0xAAB3BFFF,"{FFFFFF}[BC | Telekom]: {F0B767}Vec pricate sa nekim!");
if(Mobile2[playerid] != -1) return SCM(playerid, 0xAAB3BFFF,"{FFFFFF}[BC | Telekom]: {F0B767}Neko Vas zove, ne mozete Vi vrsiti poziv!");
if(PI[playerid][pTKredit] < 1) return SCM(playerid, 0xAAB3BFFF,"{FFFFFF}[BC | Telekom]: {F0B767}Dostigli ste limit za poziv, zao nam je!");
if(PI[pMobilni] != 1) return SCM(playerid, 0xAAB3BFFF, "{FFFFFF}[BC | Telekom]: {F0B767}Taj korisnik nije pretplatnik telekoma!");
if(PI[pSpecaIgraca] != 0) return SCM(playerid, 0xAAB3BFFF, "{FFFFFF}[BC | Telekom]: {F0B767}Taj korisnik nije pretplatnik telekoma!");
if(PI[pUgasenMob] == 1) return SCM(playerid, 0xAAB3BFFF,"{FFFFFF}[BC | Telekom]: {F0B767}Birani pretplatnik trenutno je nedostupan!");
new kozove[MAX_PLAYER_NAME]; new kogazove[MAX_PLAYER_NAME]; new stringg[256];
GetPlayerName(playerid, kozove, sizeof(kozove));
GetPlayerName(i, kogazove, sizeof(kogazove));
kozove[strfind(kozove,"_")] = ' ';
kogazove[strfind(kogazove,"_")] = ' ';
format(stringg, sizeof(stringg), "{FFFFFF}[BC | Telekom]: {F0B767}Vas mobitel zvoni, poziva Vas broj: {FFFFFF}%d%d%d%d%d%d...",PI[playerid][pBroj1],PI[playerid][pBroj2],PI[playerid][pBroj3],PI[playerid][pBroj4],PI[playerid][pBroj5],PI[playerid][pBroj6]);
SendClientMessage(i, 0xAAB3BFFF, stringg);
format(stringg, sizeof(stringg), "{FFFFFF}[BC | Telekom]: {F0B767}Pozivate broj: {FFFFFF}%d%d%d%d%d%d...",PI[pBroj1],PI[pBroj2],PI[pBroj3],PI[pBroj4],PI[pBroj5],PI[pBroj6]);
SendClientMessage(playerid, 0xAAB3BFFF, stringg);
format(stringg, sizeof(stringg), "Mobitel osobe %s zvoni...", kogazove);
ProxDetector(30.0, i, stringg, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
PlayerPlaySound(playerid,3600,0.0,0.0,0.0);
PlayerPlaySound(i,3600,0.0,0.0,0.0);
Mobile[playerid] = i;
Mobile2 = playerid;
UnioBroj1[playerid] = 0; UnioBroj2[playerid] = 0; UnioBroj3[playerid] = 0; UnioBroj4[playerid] = 0; UnioBroj5[playerid] = 0; UnioBroj6[playerid] = 0; UnioBrojeva[playerid] = 0;
UnistiMobitel(playerid);

Nije mi jasan ovaj kod negde koristis globalne funkcije za pojedinacnog igraca, a negde za playere ?
Mobile2 = playerid;
GAD SAM JA

Nema funkcije,samo strfind iz _ u nista,naravno ima smao u vrhu NEW dodato.

Ne razumes, ne koristis Mobile2[playerid] vec Mobile2
GAD SAM JA

Citat: Kriso poslato Februar 17, 2020, 21:51:39 POSLE PODNE
if(playerid == i) return SCM(playerid, 0xAAB3BFFF,"{FFFFFF}[BC | Telekom]: {F0B767}Ne mozete pozivati broj koji Vi koristite!");
if(Mobile2 != -1) return SCM(playerid, 0xAAB3BFFF,"{FFFFFF}[BC | Telekom]: {F0B767}Zauzeto je, pokusajte poslije!");
if(Mobile != -1) return SCM(playerid, 0xAAB3BFFF,"{FFFFFF}[BC | Telekom]: {F0B767}Zauzeto je, pokusajte poslije!");
if(Mobile[playerid] != -1) return SCM(playerid, 0xAAB3BFFF,"{FFFFFF}[BC | Telekom]: {F0B767}Vec pricate sa nekim!");
if(Mobile2[playerid] != -1) return SCM(playerid, 0xAAB3BFFF,"{FFFFFF}[BC | Telekom]: {F0B767}Neko Vas zove, ne mozete Vi vrsiti poziv!");
if(PI[playerid][pTKredit] < 1) return SCM(playerid, 0xAAB3BFFF,"{FFFFFF}[BC | Telekom]: {F0B767}Dostigli ste limit za poziv, zao nam je!");
if(PI[pMobilni] != 1) return SCM(playerid, 0xAAB3BFFF, "{FFFFFF}[BC | Telekom]: {F0B767}Taj korisnik nije pretplatnik telekoma!");
if(PI[pSpecaIgraca] != 0) return SCM(playerid, 0xAAB3BFFF, "{FFFFFF}[BC | Telekom]: {F0B767}Taj korisnik nije pretplatnik telekoma!");
if(PI[pUgasenMob] == 1) return SCM(playerid, 0xAAB3BFFF,"{FFFFFF}[BC | Telekom]: {F0B767}Birani pretplatnik trenutno je nedostupan!");
new kozove[MAX_PLAYER_NAME]; new kogazove[MAX_PLAYER_NAME]; new stringg[256];
GetPlayerName(playerid, kozove, sizeof(kozove));
GetPlayerName(i, kogazove, sizeof(kogazove));
kozove[strfind(kozove,"_")] = ' ';
kogazove[strfind(kogazove,"_")] = ' ';
format(stringg, sizeof(stringg), "{FFFFFF}[BC | Telekom]: {F0B767}Vas mobitel zvoni, poziva Vas broj: {FFFFFF}%d%d%d%d%d%d...",PI[playerid][pBroj1],PI[playerid][pBroj2],PI[playerid][pBroj3],PI[playerid][pBroj4],PI[playerid][pBroj5],PI[playerid][pBroj6]);
SendClientMessage(i, 0xAAB3BFFF, stringg);
format(stringg, sizeof(stringg), "{FFFFFF}[BC | Telekom]: {F0B767}Pozivate broj: {FFFFFF}%d%d%d%d%d%d...",PI[pBroj1],PI[pBroj2],PI[pBroj3],PI[pBroj4],PI[pBroj5],PI[pBroj6]);
SendClientMessage(playerid, 0xAAB3BFFF, stringg);
format(stringg, sizeof(stringg), "Mobitel osobe %s zvoni...", kogazove);
ProxDetector(30.0, i, stringg, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
PlayerPlaySound(playerid,3600,0.0,0.0,0.0);
PlayerPlaySound(i,3600,0.0,0.0,0.0);
Mobile[playerid] = i;
Mobile2 = playerid;
UnioBroj1[playerid] = 0; UnioBroj2[playerid] = 0; UnioBroj3[playerid] = 0; UnioBroj4[playerid] = 0; UnioBroj5[playerid] = 0; UnioBroj6[playerid] = 0; UnioBrojeva[playerid] = 0;
UnistiMobitel(playerid);

Nije mi jasan ovaj kod negde koristis globalne funkcije za pojedinacnog igraca, a negde za playere ?
Mobile2 = playerid;

pa playerid je ko zove,a i koga igrac zove i to mobile poslije ostaje,za ic chata

Citat: Kriso poslato Februar 17, 2020, 21:53:36 POSLE PODNE
Ne razumes, ne koristis Mobile2[playerid] vec Mobile2

u skripti svako je definisano sa [playerid] i  [ i ] ,a kad kopiram ovdje ne prikazuje
Poslednja Izmena: Februar 17, 2020, 22:01:43 POSLE PODNE od The Alpha

Rijeseno,hvala puno.moze lock