Wysłany: 2017-05-07, 05:26
DjLeito
Wiek: 25 Na forum: 3351 dni Posty: 16
Nick w MP: DjLeito
Piwa : 58
Pawn
CoolServer\gamemodes\PCS . pwn ( 209 ) : error 006 : must be assigned to an array
CoolServer\gamemodes\PCS . pwn ( 210 ) : error 006 : must be assigned to an array
CoolServer\gamemodes\PCS . pwn ( 211 ) : error 006 : must be assigned to an array
CoolServer\gamemodes\PCS . pwn ( 212 ) : error 006 : must be assigned to an array
CoolServer\gamemodes\PCS . pwn ( 213 ) : error 006 : must be assigned to an array
CoolServer\gamemodes\PCS . pwn ( 214 ) : error 006 : must be assigned to an array
CoolServer\gamemodes\PCS . pwn ( 215 ) : error 006 : must be assigned to an array
CoolServer\gamemodes\PCS . pwn ( 216 ) : error 006 : must be assigned to an array
CoolServer\gamemodes\PCS . pwn ( 218 ) : error 035 : argument type mismatch
CoolServer\gamemodes\PCS . pwn ( 221 ) : error 035 : argument type mismatch
CoolServer\gamemodes\PCS . pwn ( 224 ) : error 035 : argument type mismatch
CoolServer\gamemodes\PCS . pwn ( 227 ) : error 035 : argument type mismatch
CoolServer\gamemodes\PCS . pwn ( 230 ) : error 035 : argument type mismatch
Pawn
fServ [ ServerUrl ] = dini_Get ( "map/Ustawienia.ini" , "ServerUrl" );
fServ [ ServerVersion ] = dini_Get ( "map/Ustawienia.ini" , "ServerVersion" );
fServ [ ServerAuthor ] = dini_Get ( "map/Ustawienia.ini" , "ServerAuthor" );
fServ [ ServerCompiled ] = dini_Get ( "map/Ustawienia.ini" , "CompiledDate" );
fServ [ ServerRcon ] = dini_Get ( "map/Ustawienia.ini" , "RconPassword" );
fServ [ ServerAdmin ] = dini_Get ( "map/Ustawienia.ini" , "AdminPassword" );
fServ [ ServerMod ] = dini_Get ( "map/Ustawienia.ini" , "ModPassword" );
fServ [ ServerHostname ] = dini_Get ( "map/Ustawienia.ini" , "ServerHostname" );
format ( tmp , "weburl %s" , fServ [ ServerUrl ]);
SendRconCommand ( "tmp" );
format ( tmp , "hostname %s" , fServ [ ServerHostname ]);
SendRconCommand ( "tmp" );
format ( tmp , "hostname %s" , fServ [ ServerHostname ]);
SendRconCommand ( "tmp" );
format ( tmp , "mapname .: %s :." , fServ [ ServerVersion ]);
SendRconCommand ( "tmp" );
format ( tmp , "rcon_password %s" , fServ [ ServerRcon ]);
SendRconCommand ( "tmp" );
Pawn
enum _serverfiles
{
ServerUrl ,
ServerVersion ,
ServerAuthor ,
ServerCompiled ,
ServerHostname ,
ServerRcon ,
ServerAdmin ,
ServerMod
};
Pawn
Koledzy, jakie? ideas na rozwi?zanie tych b??d?w
Daje ciep?e xD Nie no zimne
Wysłany: 2017-05-07, 07:37
Wafelowski
Wiek: 29 Na forum: 5348 dni Posty: 428
Piwa : 100
Wysłany: 2017-05-07, 11:45
Zamek
Wiek: 26 Na forum: 3788 dni Posty: 168
Nick w MP: Zamek
Piwa : 276
Pawn
enum _serverfiles
{
ServerUrl [ 100 ],
ServerVersion [ 100 ],
ServerAuthor [ 100 ],
ServerCompiled [ 100 ],
ServerHostname [ 100 ],
ServerRcon [ 100 ],
ServerAdmin [ 100 ],
ServerMod [ 100 ]
};
Tak to powinno wygladac, poniewaz zmienne ktore zastosowales do wczytywanie roznych danych sa zmiennymi typu string czyli ciag tekstowy, musisz dac informacje kodowi, ze ta zmienna jest string w?a?nie poprzez nadawanie wielkosci w nawiasach kwadratowych, "100", oznacza maksymalna dlugosc tekstu
Wysłany: 2017-05-07, 18:38
DjLeito
Wiek: 25 Na forum: 3351 dni Posty: 16
Nick w MP: DjLeito
Piwa : 58
Kumple,
Pawn
\CoolServer\gamemodes\PCS . pwn ( 196 ) : error 047 : array sizes do not match , or destination array is too small
\CoolServer\gamemodes\PCS . pwn ( 197 ) : error 047 : array sizes do not match , or destination array is too small
\CoolServer\gamemodes\PCS . pwn ( 198 ) : error 047 : array sizes do not match , or destination array is too small
\CoolServer\gamemodes\PCS . pwn ( 199 ) : error 047 : array sizes do not match , or destination array is too small
\CoolServer\gamemodes\PCS . pwn ( 200 ) : error 047 : array sizes do not match , or destination array is too small
\CoolServer\gamemodes\PCS . pwn ( 201 ) : error 047 : array sizes do not match , or destination array is too small
\CoolServer\gamemodes\PCS . pwn ( 202 ) : error 047 : array sizes do not match , or destination array is too small
Powi?ksza?em nawet do ~500 i nadal to samo
Pawn
Admin_Pass [ 32 ],
Mod_Pass [ 32 ],
Rcon_Pass [ 32 ],
gVersion [ 30 ],
gAuthor [ 30 ],
gCompiled [ 30 ],
gUrl [ 30 ]
Wysłany: 2017-05-07, 19:05
Combacior
Wiek: 29 Na forum: 5795 dni Posty: 1516
Piwa : 2161
Ustaw na 256, jak nie pomo?e, to u?yj funkcji format
Kod: format(fServ[ServerUrl], 256, dini_Get("map/Ustawienia.ini","ServerUrl"));
Kto jeszcze dini u?ywa xD kodu nie testowa?em. Mo?e czas najwy?szy na MySQL si? przerzuci??
Wysłany: 2017-05-07, 19:51
DjLeito
Wiek: 25 Na forum: 3351 dni Posty: 16
Nick w MP: DjLeito
Piwa : 58
Combacior , Gdybym umia? jeszcze to MySQL.. ;v
Wysłany: 2017-05-07, 20:18
Wafelowski
Wiek: 29 Na forum: 5348 dni Posty: 428
Piwa : 100
Tyle darmowej wiedzy na necie w postaci gamemod?w opartych o MySQL lub te? zwyk?e poradniki pod inne j?zyki niekoniecznie PAWN. Czego jeszcze chcie?? Wystarczy troch? wolnego czasu i ch?ci. MySQL samo w sobie nie jest ci??kie, wystarczy tym si? troch? zainteresowa? (relacje, kwerendy, normalizacja bazy danych itp.). Nikt nie urodzi? si? z tak? wiedza od razu, trzeba od czego? zacz??. Masz dodatkowo fora gdzie ludzie z mi?? ch?ci? Ci pomog? gdyby? nie wiedzia? od czego zacz?? i/lub nie widzia? jak co? zrobi?.
Wysłany: 2017-05-07, 21:43
Virex_PL
Głos rozsądku
Wiek: 26 Na forum: 4187 dni Posty: 170
Nick w MP: Virex_PL
Piwa : 31
Wysłany: 2017-05-08, 11:03
Wafelowski
Wiek: 29 Na forum: 5348 dni Posty: 428
Piwa : 100
Tagi: must :: assigned :: array
Anonymous
Na forum: 245 dni
Posty: 1
Anonymous Koniecznie zajrzyj na: