Quick command
#4

Quote:
Originally Posted by Oh
Посмотреть сообщение
I fixed the command but it seemed to not work, is it possible you could make it a strcmp for me?
Here ya Go.

pawn Код:
if(strcmp(cmd, "/pay", true) == 0)
{
    new
        PlayerID, Chips;
    if ( sscanf ( params, "ri", PlayerID, Chips ) ) return SendClientMessage( playerid, -1, #Usage /pay <playername/id> <ammount> );
    if ( PlayerID == INVALID_PLAYER_ID ) return SendClientMessage( playerid, -1, #Player offline );
    if ( Chips > PlayerInfo[ playerid ][ jChips ] ) return SendClientMessage( playerid, -1, #You dont have that much );
    PlayerInfo[ playerid ][ jChips ] -= Chips;
    SendClientMessage( playerid, -1, #You have sent some chips );
    PlayerInfo[ PlayerID ][ jChips ] += Chips;
    SendClientMessage( PlayerID, -1, #You have recieved some chips );
    return ( true );
}
Reply


Messages In This Thread
Quick command - by Oh - 07.11.2011, 16:39
Re: Quick command - by SmiT - 07.11.2011, 17:52
Re: Quick command - by Oh - 10.11.2011, 18:56
Re: Quick command - by seanny - 10.11.2011, 19:02
Re: Quick command - by Oh - 10.11.2011, 21:45

Forum Jump:


Users browsing this thread: 1 Guest(s)