[Pomoc] /p

Započeo VuKaN
19. Avg. 2016. Zaključano
418
pregleda
8
postova
Joksa99
5
Crime Lord
19. Avg. 2016.
Skripta koju koristim: Edit neki
Opis problema: Kako god da stavim /p neće da radi.
Deo skripte:
CMD:p( playerid, params[] ) 
{
new id, apmtext, string1[ 234 ];
if( PlayerInfo[ playerid ][ xAdmin ] == 0 || PlayerInfo[ playerid ][ xHelper ] == 0 || PlayerInfo[ playerid ][ xPromoter ] == 0 || PlayerInfo[ playerid ][ xVIPLevel ] == 0 ) return GRESKA( playerid, "You are not authorized." );
if( sscanf( params, "us", id, apmtext ) ) return SendUsageMessage( playerid, "/pm [ ID/Deo imena ] [ Text ]");
if( id == playerid ) return GRESKA( playerid, "Ne mozes sam sebi poslat poruku!");
if( id == IPI ) return GRESKA( playerid, "Igrac nije online!");
    if( PlayerInfo[ playerid ][ xAdmin ] < 6 && PlayerInfo[ id ][ xAdmin ] >= 6 ) return GRESKA( playerid, "Ne mozes pisati TRASHMASTERu i owneru!");
AI[ playerid ][ aTPM ] ++;
SendClientMessageEx( playerid, -1, "{00CED1}Poslao si privatnu poruku  %s: "col_white"%s", ImeIgraca( id ), apmtext );
SendClientMessageEx( id, ZELENA, "{00CED1}Admin kaze: "col_white"%s", apmtext );
format( string1 , sizeof( string1 ), "{AE7C5B}|A| %s -> %s : %s.", ImeIgraca( playerid ), ImeIgraca( id ), apmtext );
AdminPoruka( 1, string1 );
SacuvajAdmina( playerid );
    new string[ 128 ];
format( string, sizeof( string ), "HIAC %s -> Igrac: %s | Tekst: %s", ImeIgraca( playerid ), ImeIgraca( id ), apmtext );
LogSave( "Ostalo/LogAODG.log", string );
return 1;
}
Muma Rascall
6
Forum Don
🔥4
20. Avg. 2016.
Neće komanda uopšte da radi ili neće da compileuje ?
Joksa99
5
Crime Lord
20. Avg. 2016.
Kako god da postavim u igri meni piše "You are not authorized"
Muma Rascall
6
Forum Don
🔥4
20. Avg. 2016.
Je li ovo Athlone mod? I probaj ovako.
CMD:pm( playerid, params[] ) {
new id, apmtext, string1[ 234 ];
if( PlayerInfo[ playerid ][ xAdmin ] < 1 || PlayerInfo[ playerid ][ xHelper ] < 1 || PlayerInfo[ playerid ][ xPromoter ] < 1 || PlayerInfo[ playerid ][ xVIPLevel ] < 1 ) return GRESKA( playerid, "You are not authorized." );
if( sscanf( params, "us", id, apmtext ) ) return SendUsageMessage( playerid, "/pm [ ID/Deo imena ] [ Text ]");
if( id == playerid ) return GRESKA( playerid, "Ne mozes sam sebi poslat poruku!");
if( id == IPI ) return GRESKA( playerid, "Igrac nije online!");
    if( PlayerInfo[ playerid ][ xAdmin ] < 6 && PlayerInfo[ id ][ xAdmin ] >= 6 ) return GRESKA( playerid, "Ne mozes pisati direktoru i owneru!");
AI[ playerid ][ aTPM ] ++;
SendClientMessageEx( playerid, -1, "{00CED1}Poslao si odg igracu %s: "col_white"%s", ImeIgraca( id ), apmtext );
SendClientMessageEx( id, ZELENA, "{00CED1}Admin kaze: "col_white"%s", apmtext );
format( string1 , sizeof( string1 ), "{AE7C5B}|A| %s -> %s : %s.", ImeIgraca( playerid ), ImeIgraca( id ), apmtext );
AdminPoruka( 1, string1 );
SacuvajAdmina( playerid );
    new string[ 128 ];
format( string, sizeof( string ), "HIAC %s -> Igrac: %s | Tekst: %s", ImeIgraca( playerid ), ImeIgraca( id ), apmtext );
LogSave( "Ostalo/LogAPM.log", string );
return 1;
}
Joksa99
5
Crime Lord
20. Avg. 2016.
Neki editan, sad' ću probati pa editujem post
Joksa99
5
Crime Lord
20. Avg. 2016.
Ne mogu edit, lol.
Ne može ponovo.
Boki Boki
6
OG Legend
20. Avg. 2016.
Umjesto greska probaj SendClientMessage
Rudimental
5
OG Legend
20. Avg. 2016.



Molimo te da procitas pravila foruma te da onda otvoris temu po pravilima.

Razlog zakljucavanja:

Zabranjen je popularni BUMP(osvježavanje teme duplim postom) osim u slučaju da je prošlo 24h od zadnjeg posta!

Pravila:

Glavna pravila Balkan SA:MP foruma .

Razgovor u vezi PAWN-Skriptanja .

Morate biti prijavljeni da biste odgovorili na ovu temu.

Prijava

© 2026 SmartShark. All rights reserved.

Powered by Momentum|v2026.3.001 Alpha