/GiveRpp
#5

Код:
4452. if(strcmp(cmdtext, "/giverpp", true) == 0)
   {
    if(PlayerInfo[playerid][Level] >= 3)
    {
        new tmp2[256], Index, player1;
        tmp = strtok(params,Index)
        player1 = strval(tmp);
        if(!strlen(tmp)) return SendClientMessage(playerid, red, "USAGE: /giverpp [playerid]");
        if(IsPlayerConnected(player1) && player1 != INVALID_PLAYER_ID)
        {
            CMDMessageToAdmins(playerid,"GIVERPP");
            PlayerData[player1][Rpp]++;
            format(string, sizeof(string), "You have given a Roleplay Point To \"%s\"", PlayerName2(player1);
            SendClientMessage(playerid,yellow,string);
            if(player1 != playerid)
            {
                format(string,sizeof(string),"Administrator \"%s\" has given you a Roleplay Point", PlayerName2(playerid);
                SendClientMessage(player1,yellow,string);
                PlayerData[playerid][Rpp]++;
            }
        } else return SendClientMessage(playerid,red,"ERROR: Player is not connected");
    } else return SendClientMessage(playerid,red,"ERROR: You are not a high enough level to use this command");
4474.     return 1;
4475. }
Lo pase asi, porque lo nececito asi

C:\Documents and Settings\Administrador\Escritorio\Servers\Server Gangster 0.3c\filterscripts\ladmin4v2.pwn(4369) : warning 204: symbol is assigned a value that is never used: "pDeaths"
C:\Documents and Settings\Administrador\Escritorio\Servers\Server Gangster 0.3c\filterscripts\ladmin4v2.pwn(4452) : warning 217: loose indentation
C:\Documents and Settings\Administrador\Escritorio\Servers\Server Gangster 0.3c\filterscripts\ladmin4v2.pwn(4457) : error 017: undefined symbol "params"
C:\Documents and Settings\Administrador\Escritorio\Servers\Server Gangster 0.3c\filterscripts\ladmin4v2.pwn(4463) : error 028: invalid subscript (not an array or too many subscripts): "PlayerData"
C:\Documents and Settings\Administrador\Escritorio\Servers\Server Gangster 0.3c\filterscripts\ladmin4v2.pwn(4463) : warning 215: expression has no effect
C:\Documents and Settings\Administrador\Escritorio\Servers\Server Gangster 0.3c\filterscripts\ladmin4v2.pwn(4463) : error 001: expected token: ";", but found "]"
C:\Documents and Settings\Administrador\Escritorio\Servers\Server Gangster 0.3c\filterscripts\ladmin4v2.pwn(4463) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Administrador\Escritorio\Servers\Server Gangster 0.3c\filterscripts\ladmin4v2.pwn(4463) : fatal error 107: too many error messages on one line

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


5 Errors.

Reply


Messages In This Thread
/GiveRpp - by [TDL]OGLoc - 07.01.2011, 19:15
Respuesta: /GiveRpp - by [M]xFire - 07.01.2011, 20:09
Re: /GiveRpp - by [TDL]OGLoc - 08.01.2011, 20:20
Respuesta: /GiveRpp - by [M]xFire - 08.01.2011, 21:15
Re: /GiveRpp - by [TDL]OGLoc - 08.01.2011, 21:30
Respuesta: /GiveRpp - by [M]xFire - 08.01.2011, 21:38
Re: /GiveRpp - by [TDL]OGLoc - 08.01.2011, 21:47
Respuesta: /GiveRpp - by [M]xFire - 08.01.2011, 21:53
Re: /GiveRpp - by [TDL]OGLoc - 08.01.2011, 22:00
Respuesta: /GiveRpp - by [M]xFire - 08.01.2011, 22:10

Forum Jump:


Users browsing this thread: 1 Guest(s)