GTA Közösség - A magyar GTA fórum

San Andreas Multiplayer (SA-MP) => SA-MP: Szerverfejlesztés => Segítségkérés => A témát indította: instant - 2012. Június 05. - 16:58:48

Cím: Mi a gond ?
Írta: instant - 2012. Június 05. - 16:58:48
Ü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]
Cím: Mi a gond ?
Írta: Gabor.. - 2012. Június 05. - 17:14:50

#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;
}
Cím: Mi a gond ?
Írta: instant - 2012. Június 05. - 17:18:32
Mükszik zárok!