- 0
Problema
-
Similar Content
-
Recently Browsing 0 members
- No registered users viewing this page.
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.
Question
[Funky]Anakin
Hello niggaz !
Am o problema la comanda /setcoins ....
Mai jos aveti detaliile ! Daca ma puteti ajuta sau explica va raman dator !
Thanks
CMD:setcoins(playerid, params[]) { new string[256]; if( PlayerInfo[ playerid ][ Level ] < 11) return SendError( playerid, "EROARE: Nu ai acces la aceasta comanda."),SendReason( playerid, " Rank Level prea mic."); if( PlayerInfo[ playerid ][ LoggedIn ] == 0) return SendError( playerid, "EROARE: Te rog logheazate pt. a folosi aceasta comanda."); if( sscanf( params, "ui", params[ 0 ], params[ 1 ] ) ) return SendUsage( playerid, "{FF0000}Foloseste: {FF5A00}/setcoins {FFFFFF}[ID Jucator] [Coins]" ); if( !IsPlayerConnected( params[ 0 ] ) ) return SendError( playerid, "EROARE: Jucatorul nu ii conectat."); if( PlayerInfo[ params[ 0 ] ][ Level ] > PlayerInfo[ playerid ][ Level ]) return SendError( playerid, "EROARE: }Nu ai dreptul de a folosi aceasta comanda pe un admin mai mare."); if( PlayerInfo[ params[ 0 ] ][ Level ] == 0) return format( string, sizeof( string ), "{FFFFFF}%s {FF5A00}trebuie sa fie logat ca sa ii poti seta coins-urile la {FFFFFF}%d",PlayerName2( params[ 0 ] ), params[ 1 ]),SendClientMessage( playerid, COLOR_RED, string); if( PlayerInfo[ params[ 0 ] ][ Level ] > PlayerInfo[ playerid ][ Level ]) return SendError( playerid, "EROARE: Nu ai dreptul de a folosi aceasta comanda pe un admin mai mare."); if( params[ 0 ] == playerid ) { FormMessageForAllEx(playerid,COLOR_GREEN, "{FF5A00}Adminul {FFFFFF}%s {FF5A00}ia stabilit la un jucator coins-urile la {FFFFFF}%d",PlayerName2( playerid ), params[ 1 ]); FormMessage( playerid, COLOR_GREEN, "You set your coins to %d", params[ 1 ]); } else { FormMessageForAllEx(playerid,COLOR_GREEN, "{FF5A00}Adminul {FFFFFF}%s {FF5A00}ia setat coinsurile lui {FFFFFF}%s {FF5A00}in {FFFFFF}%d Coins",PlayerName2( playerid ), PlayerName2( params[ 0 ] ), params[ 1 ]); FormMessage( params[ 0 ], COLOR_GREEN, "{FF5A00}Adminul {FFFFFF}%s {FF5A00}ti-a setat coinsurile la {FFFFFF}%d",PlayerName2( playerid ), params[ 1 ]); FormMessage( playerid, COLOR_GREEN, "{FF5A00}I-ai setat lui {FFFFFF}%s {FF5A00}coinsurile la {FFFFFF}%d",PlayerName2( params[ 0 ] ), params[ 1 ]); } PlayerInfo[ params[ 0 ] ][ Coins ] = params[ 1 ]; return 1; }Eroarea :#define FormMessage(%0,%1,%2,%3)\ do{\ format(_S_T_R_, sizeof (_S_T_R_), (%2), %3);\ SendClientMessage((%0),(%1), _S_T_R_);}\ while ( FALSE ) #define FormMessagee(%0,%1,%2)\ do\ {\ format( _S_T_R_, sizeof ( _S_T_R_ ), ( %1 ), %2);\ SendClientMessageToAll( ( %0 ), _S_T_R_);\ }\ while ( FALSE ) #define FormMessageForAll(%0,%1,%2)\ do\ {\ format( _S_T_R_, sizeof ( _S_T_R_ ), ( %1 ), %2);\ SendClientMessageToAll( ( %0 ), _S_T_R_);\ }\ while ( FALSE ) #define FormMessageForAllEx(%0,%1,%2,%3)\ do\ {\ foreach(Player,i)\ {\ if(i != %0)\ {\ if(PlayerInfo[ i ][ Level ] > 1)\ {\ format( _S_T_R_, sizeof ( _S_T_R_ ), ( %2 ), %3);\ SendClientMessage(i, ( %1 ), _S_T_R_);\ }\ }\ }\ }\ while ( FALSE )2 answers to this question
Recommended Posts