Jump to content
  • 0

eroare


ionutuidumanu

Question

am comanda asta pt casa de admin dar imi da erroarea asta:

C:\Documents and Settings\All Users\Documents\In Lucru\Best\Server DKR\gamemodes\RCD.pwn(9809) : error 017: undefined symbol "PlayerInfo"

C:\Documents and Settings\All Users\Documents\In Lucru\Best\Server DKR\gamemodes\RCD.pwn(9809) : warning 215: expression has no effect

C:\Documents and Settings\All Users\Documents\In Lucru\Best\Server DKR\gamemodes\RCD.pwn(9809) : error 001: expected token: ";", but found "]"

C:\Documents and Settings\All Users\Documents\In Lucru\Best\Server DKR\gamemodes\RCD.pwn(9809) : error 029: invalid expression, assumed zero

C:\Documents and Settings\All Users\Documents\In Lucru\Best\Server DKR\gamemodes\RCD.pwn(9809) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

4 Errors.

Uitati si comanda

COMMAND:adminhouse(playerid,params[])

{

    if(IsPlayerConnected(playerid))

    {

        if(IsPlayerAdmin(playerid))

        {

            SetPlayerPos(playerid, 2612.9089,1588.0884,10.8203);

GameTextForPlayer(playerid, "~w~Bun Venit Acasa",5000,1);

SetPlayerInterior(playerid,0);

SetPlayerFacingAngle(playerid, 0);

PlayerInfo[playerid][pInt] = 0;

  return 1;

}

else

{

    SendClientMessage(playerid, COLOR_GREY, "  You are not authorized to use that command.");

    return 1;

}

    }

    return 1;

}

The Legend

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

Voi nu ganditi sau nu stiti engleza.

Corect:

COMMAND:adminhouse(playerid,params[])
   {
       if(IsPlayerConnected(playerid))
       {
           if(IsPlayerAdmin(playerid))
           {

               SetPlayerPos(playerid, 2612.9089,1588.0884,10.8203);
            GameTextForPlayer(playerid, "~w~Bun Venit Acasa",5000,1);
            SetPlayerInterior(playerid,0);
            SetPlayerFacingAngle(playerid, 0);
              return 1;
         }
         else
         {
             SendClientMessage(playerid, COLOR_GREY, "   You are not authorized to use that command.");
             return 1;
         }
       }
       return 1;
   }
Trebuia doar sa scoti
PlayerInfo[playerid][pInt] = 0;

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.