Wysłany: 2017-04-09, 15:11
DjLeito
Wiek: 25 Na forum: 3351 dni Posty: 16
Nick w MP: DjLeito
Piwa : 58
Pawn
[ debug ] Run time error 4 : "Array index out of bounds"
[ debug ] Accessing element at index 3 past array upper bound 2
[ debug ] AMX backtrace :
[ debug ] #0 0000915c in public Itter_OnGameModeInit () at C:\Users\DjLeito\Desktop\GamingParty\gamemodes\new2.pwn:329
[ debug ] #1 native CallLocalFunction () from samp-server.exe
[ debug ] #2 00006590 in public SSCANF_OnGameModeInit () at C:\Users\---\Desktop\p4s-dm\pawno\include\foreach.inc:480
[ 14 : 45 : 45 ] [ debug ] #3 00000694 in public zcmd_OnGameModeInit () at C:\Users\DjLeito\Desktop\GamingParty\pawno\include\sscanf2.inc:174
[ debug ] #4 native CallLocalFunction () from samp-server.exe
[ debug ] #5 0000012c in public OnGameModeInit () at C:\Users\DjLeito\Desktop\p4s-dm\pawno\include\zcmd.inc:58
Number of vehicle models : 0
[ connection ] XXX requests connection cookie .
[ connection ] incoming connection : XXX id : 0
[ join ] pseudol_driva has joined the server ( XXX )
A tu macie poszczeg?lne wymienione linijki
Pawn
Linijka : 329
for(new i ; i != MAX_PLAYERS ; i ++)
{
PasekStanu [ i ][ 1 ] = TextDrawCreate ( 0.000000 , 429.333312 , "LD_SPAC:white" );
Pawn
+ Tablica PaskaStanu
new Text : PasekStanu [ 3 ][ MAX_PLAYERS ];
Pawn
zcmd : 58
return CallLocalFunction ( "zcmd_OnGameModeInit" , "" );
Pawn
sscanf2 : 174
public OnGameModeInit ()
{
if (! SSCANF_gInit )
{
SSCANF_Init ( GetMaxPlayers (), INVALID_PLAYER_ID , MAX_PLAYER_NAME );
SSCANF_gInit = true ;
}
#if defined SSCANF_OnGameModeInit
SSCANF_OnGameModeInit ();
#endif
return 1 ;
}
Pawn
foreach: 480
CallLocalFunction ( "Itter_OnGameModeInit" , "" );
I co wed?ug was mo?e by? przyczyn? wypluwanych log?w z crsdtc, dodam i? sam serwer + interface dzia?a normalnie, pisz? to dlatego i? boje si? ?e w p??niejszych fazach robienia /gamemode/ ten b??d zostanie wytkni?ty i b?dzie powodowa? wi?ksze b??dy.
Sam kompliator nie wypluwa b??d?w, dodatkowo mam w??czone paramerty -d2 i -r
Wysłany: 2017-04-09, 15:40
Zamek
Wiek: 26 Na forum: 3788 dni Posty: 168
Nick w MP: Zamek
Piwa : 276
Wysłany: 2017-04-09, 15:50
Combacior
Wiek: 29 Na forum: 5796 dni Posty: 1516
Piwa : 2161
Masz b??d w deklaracji tablicy PasekStanu, dok?adniej chodzi mi o kolejno?? wymiaru gracz-textdraw. Podczas tworzenia TD masz [gracz][textdraw] a podczas tworzenia tablicy masz [textdraw][gracz].
Więcej szczegółów
Wystawiono 1 piw(a):DjLeito
Wysłany: 2017-04-09, 15:53
DjLeito
Wiek: 25 Na forum: 3351 dni Posty: 16
Nick w MP: DjLeito
Piwa : 58
PawnMasterRTRP ,
Pawn PasekStanu [ playerid ][ 1 ] = CreatePlayerTextDraw ( playerid , 0.000000 , 429.333312 , "LD_SPAC:white" );
Pawn
C : \Users\DjLeito\Desktop\p4s - dm\gamemodes\new2 . pwn ( 383 ) : warning 215 : expression has no effect
C : \Users\DjLeito\Desktop\p4s - dm\gamemodes\new2 . pwn ( 383 ) : error 001 : expected token : ";" , but found "["
C : \Users\DjLeito\Desktop\p4s - dm\gamemodes\new2 . pwn ( 383 ) : error 029 : invalid expression , assumed zero
C : \Users\DjLeito\Desktop\p4s - dm\gamemodes\new2 . pwn ( 383 ) : warning 215 : expression has no effect
C : \Users\DjLeito\Desktop\p4s - dm\gamemodes\new2 . pwn ( 383 ) : error 001 : expected token : ";" , but found "]"
C : \Users\DjLeito\Desktop\p4s - dm\gamemodes\new2 . pwn ( 383 ) : fatal error 107 : too many error messages on one line
Co tu jest nie okej?
[ Dodano : 2017-04-09, 16:01 ]
"Combacior" napisał/a :Masz b??d w deklaracji tablicy PasekStanu, dok?adniej chodzi mi o kolejno?? wymiaru gracz-textdraw. Podczas tworzenia TD masz [gracz][textdraw] a podczas tworzenia tablicy masz [textdraw][gracz].
Dzi?ki, pomog?o. Zapami?tam na przysz?o??. Leci
// Mod, do zamkni?cia.
Tagi: runtime :: crsdtc
Anonymous
Na forum: 245 dni
Posty: 1
Anonymous Koniecznie zajrzyj na: