Szerző Téma: Mi a gond ?  (Megtekintve 374 alkalommal)

Nem elérhető instant

  • 2778
  • ZzzzzZ
    • Profil megtekintése
Mi a gond ?
« Dátum: 2012. Június 05. - 16:58:48 »
0 Show voters
Üdv.
Mi lehet ebbe a hiba?
 

new bool:vgod[MAX_PLAYERS];
CMD:vgod(playerid)
{
if( GetPVarInt(playerid, \"VIP\") == 3)
if(vgod[playerid] == 1)
{
SetPlayerHealth(playerid,10000);
SendClientMessage(playerid,COLOR_GREEN,\"Bekapcsoltad az örök életed!\");
}
else
{
vgod[playerid]=0;
SetPlayerHealth(playerid,100);
SendClientMessage(playerid,COLOR_GREEN,\"Kikapcsoltad az örök életet!\");
}
else SendClientMessage( playerid, COLOR_ULTRARED, \"Nem vagy GOLD VIP!\");
return 1;
}

 
Warningok:
 
C:\\Documents and Settings\\X\\Dokumentumok\\kecske.pwn(115) : warning 213: tag mismatch
C:\\Documents and Settings\\X\\Dokumentumok\\kecske.pwn(122) : warning 213: tag mismatch
Pawn compiler 3.2.3664           Copyright © 1997-2006, ITB CompuPhase
2 Warnings.
 
[/quote]
« Utoljára szerkesztve: 2012. Június 05. - 17:00:52 írta ZzzzzZ »

Nem elérhető Gabor..

  • 1883
  • Gabor..
    • Profil megtekintése
Mi a gond ?
« Válasz #1 Dátum: 2012. Június 05. - 17:14:50 »
+1 Show voters

#include    <   a_samp   >
#include    <   zcmd     >
new
      bool:vgod[ MAX_PLAYERS];
     
CMD:vgod( playerid )
{
   if( GetPVarInt( playerid, \"VIP\" ) == 3 )
   {
      if( vgod[ playerid ] == true )
      {
SetPlayerHealth( playerid, 10000 );
SendClientMessage( playerid, COLOR_GREEN, \"Bekapcsoltad az örök életed!\" );
      }
      else
      {
vgod[ playerid ] = false;
SetPlayerHealth( playerid, 100 );
SendClientMessage( playerid, COLOR_GREEN, \"Kikapcsoltad az örök életet!\" );
      }
   }
   else SendClientMessage( playerid, COLOR_ULTRARED, \"Nem vagy GOLD VIP!\" );
   return 1;
}
« Utoljára szerkesztve: 2012. Június 05. - 17:16:12 írta Gabor.. »

Nem elérhető instant

  • 2778
  • ZzzzzZ
    • Profil megtekintése
Mi a gond ?
« Válasz #2 Dátum: 2012. Június 05. - 17:18:32 »
0 Show voters
Mükszik zárok!

 

SimplePortal 2.3.7 © 2008-2024, SimplePortal