Erorri

Započeo Merks.exe, Maj 03, 2020, 06:34:51 PRE PODNE

prethodna tema - sledeća tema

0 članova i 4 gostiju pregledaju ovu temu.

Problem(error/warning): Pa 4 errora na jednoj liniji mi izbacuje, ako moze pomoc pocetnik sam
Dio skripte: [pawn]player_stream[playerid] = sv_gstream_create()[/pawn]
Debug iz server_log(ukoliko je u pitanju crashanje servera - crashdetect log): D:\Ideal Gaming\Fortuna RealLife\gamemodes\IG.pwn(13480) : error 029: invalid expression, assumed zero
D:\Ideal Gaming\Fortuna RealLife\gamemodes\IG.pwn(13480) : warning 215: expression has no effect
D:\Ideal Gaming\Fortuna RealLife\gamemodes\IG.pwn(13480) : error 001: expected token: ";", but found "]"
D:\Ideal Gaming\Fortuna RealLife\gamemodes\IG.pwn(13480) : error 029: invalid expression, assumed zero
D:\Ideal Gaming\Fortuna RealLife\gamemodes\IG.pwn(13480) : fatal error 107: too many error messages on one line

Slika/video ingame problema(obavezno ako je ingame problem): //

[pawn]player_stream[playerid] = sv_gstream_create()[/pawn]

Sta ti je uopste ovo ? ???

Gde si deklarisao player_stream?

Mozda ti fala ; na kraju, ili si je samo izostavio kada si kopirao..

Takodje daj par linija ispod i iznad

Citat: V01D poslato Maj 03, 2020, 08:18:23 PRE PODNE
[pawn]player_stream[playerid] = sv_gstream_create()[/pawn]

Sta ti je uopste ovo ? ???

Gde si deklarisao player_stream?

Mozda ti fala ; na kraju, ili si je samo izostavio kada si kopirao..

Takodje daj par linija ispod i iznad
Kako mislis dekralisao? I ne fali mi nigde ;

[pawn]player_stream[playerid] = sv_gstream_create();[/pawn]

Citat: over poslato Maj 03, 2020, 17:51:41 POSLE PODNE
[pawn]player_stream[playerid] = sv_gstream_create();[/pawn]
Isto je i kad dodam ;

Citat: over poslato Maj 03, 2020, 17:51:41 POSLE PODNE
[pawn]player_stream[playerid] = sv_gstream_create();[/pawn]
Bude mi isto, isti errori

Daj par linija iznad i ispod

Citat: Teodor poslato Maj 03, 2020, 21:15:37 POSLE PODNE
Daj par linija iznad i ispod
player_stream[playerid] = sv_gstream_create();
sv_stream_player_attach(stream, playerid);
sv_stream_player_attach(player_stream[playerid], playerid);
// Installation of player microphone activation keys
sv_set_key(playerid, 0x32); // 0x32 - this is the code for the key '2'


Citat: Teodor poslato Maj 03, 2020, 21:29:38 POSLE PODNE
Daj Iznad
// Checking availability and relevance of the client plugin
    if(sv_get_version(playerid) == SV_NULL) {
        SendClientMessage(playerid, -1, "SAMP-VOICE: Nemate instaliran plugin samp voice, ne mozete pristupiti voice chatu !");
    } else if(sv_get_version(playerid) < SV_VERSION) {
        SendClientMessage(playerid, -1, "SAMP-VOICE: Vi imate staru verziju samp-voice, novu mozete skinuti na forumu: www.fortuna-rl.com");
    }
    // Checking microphone availability
    if(!sv_has_micro(playerid)) {
        SendClientMessage(playerid, -1, "SAMP-VOICE: Nemate prikljucen mikrofon, mozete cuti igrace ali oni ne mogu vas !");
    }
    // Creating a global stream for the player and connecting him to it

Jel imas [pawn]new player_stream[MAX_PLAYERS];[/pawn]

Citat: Sploxs poslato Maj 03, 2020, 21:52:26 POSLE PODNE
Jel imas [pawn]new player_stream[MAX_PLAYERS];[/pawn]
Ne, gde to da ubacim ?

Pretpostavljam sampvocie? xDDD

Daj svuda i skripti gde imas [pawn]player_stream[/pawn]

Citat: V01D poslato Maj 03, 2020, 22:23:21 POSLE PODNE
Pretpostavljam sampvocie? xDDD

Daj svuda i skripti gde imas [pawn]player_stream[/pawn]
new SV_GSTREAM:player_stream[MAX_PLAYERS];
#define player_stream
player_stream[playerid] = sv_gstream_create();
sv_stream_player_attach(player_stream[playerid], playerid);
sv_send_packet(packet, player_stream[playerid]);
sv_stream_delete(player_stream[playerid]);

Citat: Merks.exe poslato Maj 03, 2020, 22:47:38 POSLE PODNE
new SV_GSTREAM:player_stream[MAX_PLAYERS];
#define player_stream
player_stream[playerid] = sv_gstream_create();
sv_stream_player_attach(player_stream[playerid], playerid);
sv_send_packet(packet, player_stream[playerid]);
sv_stream_delete(player_stream[playerid]);


Umjesto #define player_stream ukucaj new player_stream[MAX_PLAYERS];