Szerző Téma: RPG mód hiba!  (Megtekintve 609 alkalommal)

RPG mód hiba!
« Dátum: 2012. Január 21. - 15:28:37 »
0 Show voters
Hello!
Ma letöltöttem a Desert town RPG módot! Elkezdtem kijavítani a hibákat mert ugye össze vissza voltak a sorok!
Viszont egy hibát nem tudok kijavítani!
Compiler:
[pawn]C:\\Documents and Settings\\Edit\\Asztal\\dtrpg.pwn(37305) : warning 213: tag mismatch
Pawn compiler 3.2.3664           Copyright © 1997-2006, ITB CompuPhase
1 Warning.
[/pawn]
A hiba itt található:
[pawn]new seged2[50];
         if(PlayerInfo[playerid][pJob] == 27) format(seged2, sizeof(seged2), \"*Testõr\");
         else if(PlayerInfo[playerid][pJob] == 28) format(seged2, sizeof(seged2), \"*Sofõr\");
         else if(PlayerInfo[playerid][pLeader] == 7) format(seged2, sizeof(seged2), \"*Polgármester\");
         format(stringx,sizeof(stringx), \"[%d/%d/%d][%d:%d:%d] %s polgi chatbe: %s\",y,m,d,h,mi,s,nev,result);
         LoOoG(stringx);
         format(string, sizeof(string), \"%s %s: %s\",seged2, sendername, result);
         for(new i = 0; i < MAX_PLAYERS; i++)
         {
            if(IsPlayerConnected(i))
            {
               if(PlayerInfo[pJob] == 27 || PlayerInfo[pJob] == 28 || PlayerInfo == 7)

               {


                  if(PlayerInfo
[pJob] == 27 || PlayerInfo[pJob] == 28 || PlayerInfo[pLeader] == 7)

                   {


                   SendClientMessage(i, 0xFFFF00AA, string);


                   }


               }


            }


         }[/pawn]


Ebbe a sorba írja a hibát:

[pawn]if(PlayerInfo
[pJob] == 27 || PlayerInfo[pJob] == 28 || PlayerInfo == 7)[/pawn]

Köszi a segítséget!

Nem elérhető Flash

  • 5726
  • (っ◕‿◕)っ
    • Profil megtekintése
RPG mód hiba!
« Válasz #1 Dátum: 2012. Január 21. - 15:34:21 »
+3 Show voters
if(PlayerInfo[pJob] == 27 || PlayerInfo[pJob] == 28 || PlayerInfo == 7)

 
ezt nem erre kell?
 
if(PlayerInfo[pJob] == 27 || PlayerInfo[pJob] == 28 || PlayerInfo[pJob] == 7)

RPG mód hiba!
« Válasz #2 Dátum: 2012. Január 21. - 15:37:30 »
0 Show voters
Óóó Köszi! Mostmár lefut :)
Hogy is kell +ot adni? Új vagyok még :D

Nem elérhető Flash

  • 5726
  • (っ◕‿◕)っ
    • Profil megtekintése
RPG mód hiba!
« Válasz #3 Dátum: 2012. Január 21. - 16:23:49 »
0 Show voters
+-t a job felsõ hozzászólásom sarkában egy kéz, vagy hogy mondjam. xD
Amúgy nincs mit! :) De ha megvan témát zárd! :)

 

SimplePortal 2.3.7 © 2008-2024, SimplePortal