Szerző Téma: Vonszol parancs nem megy...  (Megtekintve 879 alkalommal)

Vonszol parancs nem megy...
« Dátum: 2014. Január 11. - 12:54:35 »
0
   if(strcmp(cmd, \"/vonszol\", true) == 0)
{
    if(IsPlayerConnected(playerid))
    {
       tmp = strtok(cmdtext, idx);
      if(!strlen(tmp)) {
         SendClientMessage(playerid, COLOR_LIGHTBLUE, \"StarLife Role Play RPG: /vonszol [JátékosID/NévRészlet]\");
         return 1;
      }
      new emberecske;
      giveplayerid = ReturnUser(tmp);
       if(IsPlayerConnected(giveplayerid))
      {
          if(giveplayerid != INVALID_PLAYER_ID)
          {
            if (GetDistanceBetweenPlayers(playerid,giveplayerid) < 3)
            {
                if(giveplayerid == playerid) { SendClientMessage(playerid, COLOR_GRAD2, \"Magadat nem tudod vonszolni!\"); return 1; }
                if(PlayerCuffed[giveplayerid] == 2)
                {
                    GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
                  GetPlayerName(playerid, sendername, sizeof(sendername));
                   format(stringx, sizeof(stringx), \"%s elkezdett vonszolni.\", sendername);
                  SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, stringx);
                  format(stringx, sizeof(stringx), \"Vonszolod %s.\", rag(giveplayer,3));
                  SendClientMessage(playerid, COLOR_LIGHTBLUE, stringx);
                  format(stringx, sizeof(stringx), \"* %s elkezdte vonszolni %s.\", sendername ,rag(giveplayer,3));
                  ProxDetector(30.0, playerid, stringx, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                  PlayerInfo[playerid][vonszol] = 1;
                  PlayerInfo[giveplayerid][vonszol] = 1+playerid;
                  SetTimerEx(\"vonszolas\", 1000, 1, \"dd\", playerid,emberecske);
               } else SendClientMessage(playerid, COLOR_GRAD2, \"A játékos nincs megbilincselve!\");
            } else SendClientMessage(playerid, COLOR_GRAD2, \"A játékos nincs a közeledben!\");
         } else SendClientMessage(playerid, COLOR_GRAD2, \"A játékos nem elérhetõ!\");
      }
} return 1;
}

 
Megbilincseljük és úgy vinni ... Nem megy csak ki írja, hogy elkezdtem vonszolni de semmi reakció... Mi lehet a baj?

Nem elérhető gbr333

  • 670
    • Profil megtekintése
Vonszol parancs nem megy...
« Válasz #1 Dátum: 2014. Január 11. - 13:10:39 »
0
Szeretném látni a
 
public vonszolas()

 
-t

Vonszol parancs nem megy...
« Válasz #2 Dátum: 2014. Január 11. - 13:30:55 »
0
#define vonszolas GetPlayerPos(playerid, plocx, plocy, plocz);
Csak egy define van rá...
Public nincs...

Nem elérhető Lucio

  • 232
    • Profil megtekintése
Vonszol parancs nem megy...
« Válasz #3 Dátum: 2014. Január 11. - 14:14:04 »
+1
Csak lekéri a pozíciót és úgy el van magába.. Csinálni kell egy publicot amiben lekéri a pozíciót és oda is rakja a játékost

 

SimplePortal 2.3.7 © 2008-2024, SimplePortal