Ne mogu da se pomerim zbog TD-a

Započeo Teodor, Februar 26, 2020, 20:19:57 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 2 gostiju pregledaju ovu temu.

Problem(error/warning): Ubacio sam novi TD I nmg da se pomerim.Sve se vidi na snimku
Dio skripte:
Debug iz server_log(ukoliko je u pitanju crashanje servera - crashdetect log):
Slika/video ingame problema(obavezno ako je ingame problem): https://vimeo.com/394003545
Poslednja Izmena: Februar 28, 2020, 09:49:00 PRE PODNE od Galardo

Sorry, we couldn't find that page

U kom smislu ne mozes da se pomeras? Pojasni malo, vise detalja, i okaci taj snimak






Citat: V01D poslato Februar 27, 2020, 07:31:27 PRE PODNE
Aj posalji OnPlayerSpawn
[pawn]
public OnPlayerSpawn(playerid)
{
   if(UsaoDM4[playerid] == 1)//ako je igrac u dm 4
   {
      ResetPlayerWeapons(playerid);
       GivePlayerWeapon(playerid, 24, 1000);
       GivePlayerWeapon(playerid, 26, 1000);
       GivePlayerWeapon(playerid, 34, 1000);
       SetPlayerHealth(playerid, 100);
       SetPlayerArmour(playerid, 100);
      new c = random(8);
       if (c == 0){
       SetPlayerPos(playerid, 2428.9216,1810.1237,16.3222);}
       else if (c == 1){
       SetPlayerPos(playerid, 2450.2656,1810.1036,16.3222);}
       else if (c == 2){
       SetPlayerPos(playerid, 2445.5662,1797.0325,16.3222);}
       else if (c == 3){
       SetPlayerPos(playerid, 2430.7859,1789.5752,16.3222);}
       else if (c == 4){
       SetPlayerPos(playerid, 2413.2446,1795.8677,16.3222);}
       else if (c == 5){
       SetPlayerPos(playerid, 2407.2114,1805.4720,16.3222);}
       else if (c == 6){
       SetPlayerPos(playerid, 2410.3164,1823.4310,16.3222);}
       else if (c == 7){
       SetPlayerPos(playerid, 2426.8032,1833.5597,16.3222);}
       else if (c == 8){
       SetPlayerPos(playerid, 2426.8022,1817.2288,16.3222);}
   }
   else if(UsaoDM3[playerid] == 1)//ako je igrac u dm 3
   {
      ResetPlayerWeapons(playerid);
       GivePlayerWeapon(playerid, 26, 99999);
       SetPlayerHealth(playerid, 100);
       SetPlayerArmour(playerid, 100);
      new c = random(8);
       if (c == 0){
       SetPlayerPos(playerid, 1555.8691,29.8205,24.1555);}
       else if (c == 1){
       SetPlayerPos(playerid, 1543.2594,16.4746,24.1406);}
       else if (c == 2){
       SetPlayerPos(playerid, 1552.8804,40.8549,24.1894);}
       else if (c == 3){
       SetPlayerPos(playerid, 1515.2506,21.6214,24.1406);}
       else if (c == 4){
       SetPlayerPos(playerid, 1514.5875,10.8761,24.1406);}
       else if (c == 5){
       SetPlayerPos(playerid, 1551.4248,-29.4435,21.3443);}
       else if (c == 6){
       SetPlayerPos(playerid, 1555.8691,29.8205,24.1555);}
   }
   else if(UsaoDM2[playerid] == 1)//ako je igrac u dm 2
   {
      ResetPlayerWeapons(playerid);
       GivePlayerWeapon(playerid, 23, 100);
       SetPlayerHealth(playerid, 15);
       SetPlayerArmour(playerid, 0);
       new c = random(7);
       if (c == 0){
       SetPlayerPos(playerid, 1568.7727,-1691.2129,5.8906);}
       else if (c == 1){
       SetPlayerPos(playerid, 1526.2644,-1677.8658,5.8906);}
       else if (c == 2){
       SetPlayerPos(playerid, 1545.1101,-1644.9631,5.8906);}
       else if (c == 3){
       SetPlayerPos(playerid, 1556.6836,-1714.4565,5.8906);}
       else if (c == 4){
       SetPlayerPos(playerid, 1606.0156,-1715.5769,6.2188);}
       else if (c == 5){
       SetPlayerPos(playerid, 1584.8646,-1677.4448,5.8972);}
       else if (c == 6){
       SetPlayerPos(playerid, 1568.7727,-1691.2129,5.8906);}
   }
   else if(UsaoDM1[playerid] == 1)//ako je igrac u dm 1
   {
      ResetPlayerWeapons(playerid);
       GivePlayerWeapon(playerid, 24, 1000);
       SetPlayerHealth(playerid, 100);
       SetPlayerArmour(playerid, 100);
       new c = random(6);
       if (c == 0){
       SetPlayerPos(playerid, 727.1071,-1276.7278,13.6484);}
       else if (c == 1){
       SetPlayerPos(playerid, 741.2067,-1248.3481,13.5561);}
       else if (c == 2){
       SetPlayerPos(playerid, 772.6879,-1293.1711,13.5625);}
       else if (c == 3){
       SetPlayerPos(playerid, 770.9338,-1226.7328,13.5534);}
       else if (c == 4){
       SetPlayerPos(playerid, 736.3596,-1260.6207,13.5575);}
       else if (c == 5){
       SetPlayerPos(playerid, 736.9092,-1301.0999,13.5695);}
       else if (c == 6){
       SetPlayerPos(playerid, 755.4571,-1307.3960,13.5625);}
       else if (c == 7){
       SetPlayerPos(playerid, 773.5193,-1303.5291,13.5598);}
       else if (c == 8){
       SetPlayerPos(playerid, 727.1071,-1276.7278,13.6484);}
   }
   
   TextDrawShowForPlayer(playerid,Textdraw0);
   TextDrawShowForPlayer(playerid,Textdraw1);
   TextDrawShowForPlayer(playerid,Textdraw3);
   TextDrawShowForPlayer(playerid,Textdraw4);
   TextDrawShowForPlayer(playerid,Textdraw5);
   TextDrawShowForPlayer(playerid,Textdraw6);

   SetCameraBehindPlayer(playerid);
   
   SpawnPlayer(playerid);
   
   GivePlayerMoney(playerid, PlayerInfo[playerid][pCash]);
    SetPlayerScore(playerid, PlayerInfo[playerid][pScore]);
    SetPlayerSkin(playerid, PlayerInfo[playerid][pSkin]);
   
    TogglePlayerControllable(playerid,true);
   
//    SCM(playerid,-1,"Dobrodosao na New School Death Match server");
            
   return 1;
}
[/pawn]

u OnPlayerSpawn pozivas SpawnPlayer ne ide drug

( ENORMOUS RESPECT Ino420 / Xunder)
( tutorial )
> Sublime Text 3 > Atom.io
( includes & fs )
> Moving Textdraw > Daily Collect [With FS] > Custom GameText > Duel System
( gamemodes )
> Ganton Wars > Arcadius RPG > Light Matrix > Old Nation


SpawnPlayer ne mozes da pozivas u OnPlayerSpawn.. Daj da vidimo sta je, i pritom daj i OnDialogResponse, tacnije kada se igrac registruje i uloguje

Citat: V01D poslato Februar 27, 2020, 20:06:30 POSLE PODNE
SpawnPlayer ne mozes da pozivas u OnPlayerSpawn.. Daj da vidimo sta je, i pritom daj i OnDialogResponse, tacnije kada se igrac registruje i uloguje

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    switch( dialogid )
    {
        case DIALOG_REGISTER:
        {
            if (!response) return Kick(playerid);
            if(response)
            {
                if(!strlen(inputtext)) return ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_INPUT, ""COL_WHITE"Registracija",""COL_RED"Ukucajte vasu sifru kako bi registrovali vas account.\n"COL_WHITE"Type your password below to register a new account.","Register","Quit");
                new INI:File = INI_Open(UserPath(playerid));
                INI_SetTag(File, "data");
                INI_WriteInt(File, "Password", udb_hash(inputtext));
                INI_Close(File);
                PlayerInfo[playerid][pPass] = udb_hash(inputtext);
                SavePlayer(playerid);

                SetSpawnInfo(playerid, 0, 0, 1332.3175,-984.9104,33.8966,269.8959,0,0,0,0,0,0);
                SpawnPlayer(playerid);
}
        }

        case DIALOG_LOGIN:
        {
            if ( !response ) return Kick ( playerid );
            if( response )
            {
                if(udb_hash(inputtext) == PlayerInfo[playerid][pPass])
                {
                    INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
SetSpawnInfo(playerid, 0, 0, 1332.3175,-984.9104,33.8966,269.8959,0,0,0,0,0,0);
                SpawnPlayer(playerid);
                }
                else
                {
                    ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT,""COL_WHITE"Login",""COL_RED"Pogresna sifra.\n"COL_WHITE"Pokusajte opet da ukucate vasu sifru.","Login","Quit");
                }
}
        }
[/code