Problem oko Logina

Započeo Lyzzi, Maj 07, 2020, 10:23:05 PRE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Problem(error/warning):Ovako ubacio sam TD.Ali TD mi izadje nakon sta ukucam PW i nestane i nemogu da se spawn
Dio skripte: [ pawn ]///[ /pawn ]
Debug iz server_log(ukoliko je u pitanju crashanje servera - crashdetect log): [ code ]////[ /code ]
Slika/video ingame problema(obavezno ako je ingame problem): https://streamable.com/t5ytwy

Citat: CheezItFollow your heart and own style.
Citat: PottusThat is perfectly fine, I'm just pointing out where you made mistakes what does hearing "good job" get you? Absolutely nothing. You need to hear the problems otherwise you'll keep making the same mistakes :)

Citat: ShadowMortar poslato Maj 07, 2020, 11:31:37 PRE PODNE
https://wiki.sa-mp.com/wiki/SetSpawnInfo
https://wiki.sa-mp.com/wiki/SpawnPlayer

pojasni,znaci ne treba mi mene komande.Nego da se pojavi TD da ukucam sifru i odma da me spawnuje...


public OnPlayerRequestClass( playerid, classid) {
if( PlayerLogged[ playerid ] == true ) {
Dimiskov_SetSpawnInfo( playerid );
    SpawnPlayer( playerid );
}
    else return false;
return true;
}
Poslednja Izmena: Maj 07, 2020, 12:01:02 POSLE PODNE od Jack_White[BU]

Sorry za DP moze da pomogne ko ?

Posalji nam taj ceo dialog, ne to
GAD SAM JA

[pawn]new PlayerText:LoginTD[ MAX_PLAYERS ][ 10 ];[/pawn]


[pawn]stock LoginTDControl( playerid, bool:show ) {

    if( show == true ) {

   LoginTD[playerid][0] = CreatePlayerTextDraw(playerid, 273.601654, 214.499923, "box");
   PlayerTextDrawLetterSize(playerid, LoginTD[playerid][0], 0.000000, 4.518302);
   PlayerTextDrawTextSize(playerid, LoginTD[playerid][0], 372.000000, 0.000000);
   PlayerTextDrawAlignment(playerid, LoginTD[playerid][0], 1);
   PlayerTextDrawColor(playerid, LoginTD[playerid][0], -1);
   PlayerTextDrawUseBox(playerid, LoginTD[playerid][0], 1);
   PlayerTextDrawBoxColor(playerid, LoginTD[playerid][0], 255);
   PlayerTextDrawSetShadow(playerid, LoginTD[playerid][0], 0);
   PlayerTextDrawSetOutline(playerid, LoginTD[playerid][0], 0);
   PlayerTextDrawBackgroundColor(playerid, LoginTD[playerid][0], 255);
   PlayerTextDrawFont(playerid, LoginTD[playerid][0], 1);
   PlayerTextDrawSetProportional(playerid, LoginTD[playerid][0], 1);
   PlayerTextDrawSetShadow(playerid, LoginTD[playerid][0], 0);
   
   LoginTD[playerid][1] = CreatePlayerTextDraw(playerid, 312.957672, 214.499938, "A");
   PlayerTextDrawLetterSize(playerid, LoginTD[playerid][1], 0.520878, 1.984999);
   PlayerTextDrawAlignment(playerid, LoginTD[playerid][1], 1);
   PlayerTextDrawColor(playerid, LoginTD[playerid][1], 74427903);
   PlayerTextDrawSetShadow(playerid, LoginTD[playerid][1], 0);
   PlayerTextDrawSetOutline(playerid, LoginTD[playerid][1], 1);
   PlayerTextDrawBackgroundColor(playerid, LoginTD[playerid][1], 255);
   PlayerTextDrawFont(playerid, LoginTD[playerid][1], 2);
   PlayerTextDrawSetProportional(playerid, LoginTD[playerid][1], 1);
   PlayerTextDrawSetShadow(playerid, LoginTD[playerid][1], 0);

   LoginTD[playerid][2] = CreatePlayerTextDraw(playerid, 302.650360, 230.249954, "Angers");
   PlayerTextDrawLetterSize(playerid, LoginTD[playerid][2], 0.208843, 0.835833);
   PlayerTextDrawAlignment(playerid, LoginTD[playerid][2], 1);
   PlayerTextDrawColor(playerid, LoginTD[playerid][2], -1);
   PlayerTextDrawSetShadow(playerid, LoginTD[playerid][2], 0);
   PlayerTextDrawSetOutline(playerid, LoginTD[playerid][2], -1);
   PlayerTextDrawBackgroundColor(playerid, LoginTD[playerid][2], 255);
   PlayerTextDrawFont(playerid, LoginTD[playerid][2], 2);
   PlayerTextDrawSetProportional(playerid, LoginTD[playerid][2], 1);
   PlayerTextDrawSetShadow(playerid, LoginTD[playerid][2], 0);

   LoginTD[playerid][3] = CreatePlayerTextDraw(playerid, 302.181823, 214.499938, "[]");
   PlayerTextDrawLetterSize(playerid, LoginTD[playerid][3], 0.223835, 0.579167);
   PlayerTextDrawAlignment(playerid, LoginTD[playerid][3], 1);
   PlayerTextDrawColor(playerid, LoginTD[playerid][3], 74427903);
   PlayerTextDrawSetShadow(playerid, LoginTD[playerid][3], 0);
   PlayerTextDrawSetOutline(playerid, LoginTD[playerid][3], 1);
   PlayerTextDrawBackgroundColor(playerid, LoginTD[playerid][3], 255);
   PlayerTextDrawFont(playerid, LoginTD[playerid][3], 2);
   PlayerTextDrawSetProportional(playerid, LoginTD[playerid][3], 1);
   PlayerTextDrawSetShadow(playerid, LoginTD[playerid][3], 0);

   LoginTD[playerid][4] = CreatePlayerTextDraw(playerid, 309.678405, 212.749954, "[]");
   PlayerTextDrawLetterSize(playerid, LoginTD[playerid][4], 0.223835, 0.579167);
   PlayerTextDrawAlignment(playerid, LoginTD[playerid][4], 1);
   PlayerTextDrawColor(playerid, LoginTD[playerid][4], -1);
   PlayerTextDrawSetShadow(playerid, LoginTD[playerid][4], 0);
   PlayerTextDrawSetOutline(playerid, LoginTD[playerid][4], 1);
   PlayerTextDrawBackgroundColor(playerid, LoginTD[playerid][4], 255);
   PlayerTextDrawFont(playerid, LoginTD[playerid][4], 2);
   PlayerTextDrawSetProportional(playerid, LoginTD[playerid][4], 1);
   PlayerTextDrawSetShadow(playerid, LoginTD[playerid][4], 0);

   LoginTD[playerid][5] = CreatePlayerTextDraw(playerid, 318.580535, 214.499938, "[]");
   PlayerTextDrawLetterSize(playerid, LoginTD[playerid][5], 0.223835, 0.579167);
   PlayerTextDrawAlignment(playerid, LoginTD[playerid][5], 1);
   PlayerTextDrawColor(playerid, LoginTD[playerid][5], 74427903);
   PlayerTextDrawSetShadow(playerid, LoginTD[playerid][5], 0);
   PlayerTextDrawSetOutline(playerid, LoginTD[playerid][5], 1);
   PlayerTextDrawBackgroundColor(playerid, LoginTD[playerid][5], 255);
   PlayerTextDrawFont(playerid, LoginTD[playerid][5], 2);
   PlayerTextDrawSetProportional(playerid, LoginTD[playerid][5], 1);
   PlayerTextDrawSetShadow(playerid, LoginTD[playerid][5], 0);

   LoginTD[playerid][6] = CreatePlayerTextDraw(playerid, 271.559356, 241.333267, "LD_SPAC:white");
   PlayerTextDrawLetterSize(playerid, LoginTD[playerid][6], 0.000000, 0.000000);
   PlayerTextDrawTextSize(playerid, LoginTD[playerid][6], 102.329429, 14.000000);
   PlayerTextDrawAlignment(playerid, LoginTD[playerid][6], 1);
   PlayerTextDrawColor(playerid, LoginTD[playerid][6], 74427903);
   PlayerTextDrawSetShadow(playerid, LoginTD[playerid][6], 0);
   PlayerTextDrawSetOutline(playerid, LoginTD[playerid][6], 0);
   PlayerTextDrawBackgroundColor(playerid, LoginTD[playerid][6], 255);
   PlayerTextDrawFont(playerid, LoginTD[playerid][6], 4);
   PlayerTextDrawSetProportional(playerid, LoginTD[playerid][6], 0);
   PlayerTextDrawSetShadow(playerid, LoginTD[playerid][6], 0);

   LoginTD[playerid][7] = CreatePlayerTextDraw(playerid, 306.398376, 244.249954, "Lozinka");
   PlayerTextDrawLetterSize(playerid, LoginTD[playerid][7], 0.172298, 0.760000);
   PlayerTextDrawAlignment(playerid, LoginTD[playerid][7], 1);
   PlayerTextDrawColor(playerid, LoginTD[playerid][7], 255);
   PlayerTextDrawSetShadow(playerid, LoginTD[playerid][7], 0);
   PlayerTextDrawSetOutline(playerid, LoginTD[playerid][7], 0);
   PlayerTextDrawBackgroundColor(playerid, LoginTD[playerid][7], 255);
   PlayerTextDrawFont(playerid, LoginTD[playerid][7], 2);
   PlayerTextDrawSetProportional(playerid, LoginTD[playerid][7], 1);
   PlayerTextDrawSetShadow(playerid, LoginTD[playerid][7], 0);

   LoginTD[playerid][8] = CreatePlayerTextDraw(playerid, 273.433441, 210.999969, "ld_beat:chit");
   PlayerTextDrawLetterSize(playerid, LoginTD[playerid][8], 0.000000, 0.000000);
   PlayerTextDrawTextSize(playerid, LoginTD[playerid][8], 94.000000, 2.000000);
   PlayerTextDrawAlignment(playerid, LoginTD[playerid][8], 1);
   PlayerTextDrawColor(playerid, LoginTD[playerid][8], 74427903);
   PlayerTextDrawSetShadow(playerid, LoginTD[playerid][8], 0);
   PlayerTextDrawSetOutline(playerid, LoginTD[playerid][8], 0);
   PlayerTextDrawBackgroundColor(playerid, LoginTD[playerid][8], 255);
   PlayerTextDrawFont(playerid, LoginTD[playerid][8], 4);
   PlayerTextDrawSetProportional(playerid, LoginTD[playerid][8], 0);
   PlayerTextDrawSetShadow(playerid, LoginTD[playerid][8], 0);

   LoginTD[playerid][9] = CreatePlayerTextDraw(playerid, 275.307586, 256.499969, "ld_beat:chit");
   PlayerTextDrawLetterSize(playerid, LoginTD[playerid][9], 0.000000, 0.000000);
   PlayerTextDrawTextSize(playerid, LoginTD[playerid][9], 94.000000, 2.000000);
   PlayerTextDrawAlignment(playerid, LoginTD[playerid][9], 1);
   PlayerTextDrawColor(playerid, LoginTD[playerid][9], -1);
   PlayerTextDrawSetShadow(playerid, LoginTD[playerid][9], 0);
   PlayerTextDrawSetOutline(playerid, LoginTD[playerid][9], 0);
   PlayerTextDrawBackgroundColor(playerid, LoginTD[playerid][9], 255);
   PlayerTextDrawFont(playerid, LoginTD[playerid][9], 4);
   PlayerTextDrawSetProportional(playerid, LoginTD[playerid][9], 0);
   PlayerTextDrawSetShadow(playerid, LoginTD[playerid][9], 0);


    for( new i = 0; i < 10; i ++) {
        PlayerTextDrawShow( playerid, LoginTD[ playerid ][ i ] );
    }
    SelectTextDraw( playerid, SCBOJA);
    }
    else if( show == false ) {

        for( new i = 0; i < 16; i ++) {

         PlayerTextDrawHide( playerid, LoginTD[ playerid ][ i ] );
         PlayerTextDrawDestroy( playerid, LoginTD[ playerid ][ i ] );
         LoginTD[ playerid ][ i ] = PlayerText:INVALID_TEXT_DRAW;
      }
       CancelSelectTextDraw( playerid );
   }
}[/pawn]