Jump to content

Question

8 answers to this question

Recommended Posts

Guest PlayON
Posted

CMD:givemoney( playerid, params[ ] )

{

    new Player, Moneys;

  if ( !IsPlayerAdmin( playerid ) ) return SendClientMesage( playerid, -1, "Doar Administratorii au voie la aceasta comanda!");

    if ( sscanf( params, "ud", Player, Moneys ) ) return SendClientMessage( playerid, -1, "USAGE: /givemoney <id> <amount>" );

    if ( Player == (0xFFFF) ) return SendClientMessage( playerid, -1, "Player is not connected!");

    if ( Moneys < 1000 || Moneys > 10000000 ) return SendClientMessage( playerid, -1, "Minimum moneys to send is \"1.000\" and maximum is \"10.000.000\"" );

    SetPlayerMoney( Player, GetPlayerMoney( Player ) + Moneys );

    new Str[ 150 ], PlayerName[ MAX_PLAYER_NAME  ], Name[ MAX_PLAYER_NAME ];

    GetPlayerName( playerid, Name, MAX_PLAYER_NAME );

    GetPlayerName( Player, PlayerName, MAX_PLAYER_NAME );

    format( Str, 150, "Administratorul \"%s[%i]\" a dat jucatorului \"%s[%i]\" o suma de $%d.", Name, playerid, PlayerName, Player, Moneys );

    SendClientMessageToAll( -1, Str );

    return 1;

}

Ai nevoie de: ZCMD, SSCANF.

Posted

Nu merge ...si cand dau compile arata asta:

D:\Documents and Settings\kenzor\Desktop\RSS-windows\gamemodes\RO.pwn(11159) : warning 203: symbol is never used: "givemoney"

Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

1 Warning.

e legat e givemoney :-??

Guest PlayON
Posted

Nu e new givemoney pe niciunde :|

Trebuie sa ai ZCMD.

Posted

Am ZCMD dar uite :

D:\Documents and Settings\kenzor\Desktop\RSS-windows\gamemodes\RO.pwn(11159) : error 021: symbol already defined: "givemoney"

D:\Documents and Settings\kenzor\Desktop\RSS-windows\gamemodes\RO.pwn(11175) : warning 203: symbol is never used: "givemoney"

Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

1 Error.

Guest PlayON
Posted

Am ZCMD dar uite :

D:\Documents and Settings\kenzor\Desktop\RSS-windows\gamemodes\RO.pwn(11159) : error 021: symbol already defined: "givemoney"

D:\Documents and Settings\kenzor\Desktop\RSS-windows\gamemodes\RO.pwn(11175) : warning 203: symbol is never used: "givemoney"

Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

1 Error.

Da ma liniile alea.

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.