Problem(error/warning): Imam problem oko registracije na server, znači registrujem se i prikažu se tdovi, ali me ne spawna
Deo skripte: [pawn]if( playertextid == RegisterTDMain[ playerid ][ 19 ] ) { //Registracija
if( InputPassword[ playerid ] == false ) return GRESKA( playerid, "Prvo moras popuniti gornji dio registracije." );
if( ChoseCountry[ playerid ] == false ) return GRESKA( playerid, "Prvo moras popuniti gornji dio registracije." );
if( InputAge[ playerid ] == false ) return GRESKA( playerid, "Prvo moras popuniti gornji dio registracije." );
if( InputMail[ playerid ] == false ) return GRESKA( playerid, "Prvo moras popuniti gornji dio registracije." );
if( RegSex[ playerid ] == 0 ) return GRESKA( playerid, "Prvo moras popuniti gornji dio registracije." );
CancelSelectTextDraw( playerid );
IgracSeRegistruje[ playerid ] = false;
RegisterTDControlMain( playerid, false );
PlayerInfo[ playerid ][ xRegistrovan ] = 1;
PlayerInfo[ playerid ][ xPocetniTut ] = 1;
PlayerInfo[ playerid ][ xSpawn ] = SetRandomSpawn( playerid );
PlayerInfo[ playerid ][ xLevel ] = ServerInfo[ PocetniLevel ];
new datum[ 64 ]; new year, month,day;
getdate( year, month, day );
new tmphour, tmpminute, tmpsecond;
gettimeEx( tmphour, tmpminute, tmpsecond );
FixHour( tmphour );
tmphour = shifthour;
format( datum, sizeof( datum ), "%02d/%02d/%d - %d/%d/%d", day, month, year, tmphour, tmpminute, tmpsecond );
strmid( PlayerInfo[ playerid ][ xLastLogin ], datum, 0, strlen( datum ), 64 );
SetPlayerScore( playerid, PlayerInfo[ playerid ][ xLevel ] );
DajIgracuNovac( playerid, ServerInfo[ PocetniNovaca ] );
SavePlayer( playerid );
SetPlayerSkin( playerid, PlayerInfo[ playerid ][ xSkin ] );
Info( playerid, "Uspesno ste se registrirali na Athlone, sledi kratak tutorial." );
ServerInfo[ RegistrovanihKorisnika ]++;
SaveServerStats( );
SetPlayerInterior( playerid, 0 );
SetPlayerVirtualWorld( playerid, 1 );
Traxx_SetPlayerPos( playerid, 1463.7633,-1041.4501,26.8281);
SpawnPlayer(playerid);
SPD( playerid, dialog_OSTALO, DSMSG, D_NASLOV, DialogTekstovi[ 1 ], D_OK, "" );
for( new i = 0; i < 36; i ++) {
TextDrawShowForPlayer( playerid, InGameTD[ i ] );
}
if( BiranDaily[ playerid ] == true ) {
for( new i = 0; i < 3; i ++) {
TextDrawShowForPlayer( playerid, DailyDealTD[ i ] );
}
}
if( ServerInfo[ HappyHours ] == true ) {
TextDrawShowForPlayer( playerid, HappyHoursTD );
}
if( ServerInfo[ HappyLVLHours ] == true ) {
new string[ 64 ];
format( string, sizeof( string ), "Happy Hours do lvl %d", ServerInfo[ HLVLHours ] );
TextDrawSetString( HappyHoursTD, string );
TextDrawShowForPlayer( playerid, HappyHoursTD );
}
ResetAllWeapons( playerid );
new playersip[ 128 ];
GetPlayerIp( playerid, playersip, sizeof( playersip ) );
format( globalstring, sizeof( globalstring ), "Igrac: %s | [ID:%d] | [IP:%s] se registrovao na server.", ImeIgraca( playerid ), playerid, playersip );
AdminPoruka( SERVERBOJA, globalstring );
}[/pawn]
Debug iz server_log(ukoliko je u pitanju crashanje servera - crashdetect log): [pawn]/[/pawn]
Slika/video ingame problema(obavezno ako je ingame problem): https://cdn.discordapp.com/attachments/1066133146904580107/1087503950078562334/sa-mp-001.png (https://cdn.discordapp.com/attachments/1066133146904580107/1087503950078562334/sa-mp-001.png)
CitatMa nije teško, nego mi mrsko da se dangubim sa time
Ne morate mi pomoći gonite se
Citat: Ivo Dev poslato Mart 21, 2023, 00:12:17 PRE PODNE
Ne morate mi pomoći gonite se
Bitno je da si stavio u nick Dev i ponasanje uskladio s tim.
Kako da ti iko pomogne kada ne razume ovako shit code ???