[Funky]Anakin
Membru-
Posts
590 -
Joined
-
Last visited
Never
Content Type
Profiles
Forums
News
Documentation
Everything posted by [Funky]Anakin
-
Fallen sa traiesti ! Merge ! Ai fost trecut la credite ^^
-
Salut ! Ma puteti ajuta cu aceasta problema ? public OnPlayerDeath(playerid, killerid, reason) { if( IsPlayerAnyClanMember(playerid) && IsPlayerAnyClanMember(killerid) ) { new clanquery[300]; format(clanquery, sizeof(clanquery), "UPDATE clans SET clankills = %d WHERE clanname = '%s'", GetClanKills(GetPlayerClan(killerid)) + 1, GetPlayerClan(killerid)); db_query( Database, clanquery ); format(clanquery, sizeof(clanquery), "UPDATE clans SET clandeaths = %d WHERE clanname = '%s'", GetClanDeaths(GetPlayerClan(playerid)) + 1, GetPlayerClan(playerid)); db_query( Database, clanquery ); } // SendDeathMessage(killerid, playerid, reason); KillingSpree{ playerid } = 0; if ( KillingSpree{ killerid } != bKillingSpree{ killerid } ) { ++KillingSpree{ killerid }; } else { ++KillingSpree{ killerid }; ++bKillingSpree{ killerid }; } format( stringgg, sizeof( stringgg ), "~r~~d~~d~~d~Killing Spree: ~h~~g~%d", KillingSpree{ killerid } ); GameTextForPlayer( killerid, stringgg, 3000, 5 ); new string[1000]; if(GetPlayerScore(killerid) == 5) // Amount of required kills to get rank 1 *Baby Killa'* { GetPlayerName(killerid, string, sizeof(string) ); format(string, sizeof(string), ">> %s advanced to rank *Baby Killa'* by killing %d players", string, GetPlayerScore(killerid) ); SendClientMessageToAll(COLOR_LIGHTBLUE, string); pRank[playerid] = 1; } else if(GetPlayerScore(killerid) == 25) // Amount of required kills to get rank 2 *Soldier* { GetPlayerName(killerid, string, sizeof(string) ); format(string, sizeof(string), ">> %s advanced to rank *Soldier* by killing %d players", string, GetPlayerScore(killerid)); SendClientMessageToAll(COLOR_LIGHTBLUE, string); pRank[playerid] = 2; } else if(GetPlayerScore(killerid) == 50) // Amount of required kills to get rank 3 *Gangsta'* { GetPlayerName(killerid, string, sizeof(string) ); format(string, sizeof(string), ">> %s advanced to rank *Gangsta'* by killing %d players", string, GetPlayerScore(killerid)); SendClientMessageToAll(COLOR_LIGHTBLUE, string); pRank[playerid] = 3; } else if(GetPlayerScore(killerid) == 150) // Amount of required kills to get rank 4 *Underboss* { GetPlayerName(killerid, string, sizeof(string) ); format(string, sizeof(string), ">> %s advanced to rank *UnderBoss* by killing %d players", string, GetPlayerScore(killerid)); SendClientMessageToAll(COLOR_LIGHTBLUE, string); pRank[playerid] = 4; } else if(GetPlayerScore(killerid) == 300) // Amount of required kills to get rank 5 *Tha' Boss* { GetPlayerName(killerid, string, sizeof(string) ); format(string, sizeof(string), ">> %s advanced to rank *The Boss* by killing %d players", string, GetPlayerScore(killerid)); SendClientMessageToAll(COLOR_LIGHTBLUE, string); pRank[playerid] = 5; } #if defined USE_STATS ++PlayerInfo[playerid][Deaths]; #endif InDuel[playerid] = 0; //Race if(Joined[playerid] == true) { JoinCount--; Joined[playerid] = false; DestroyVehicle(CreatedRaceVeh[playerid]); DisablePlayerRaceCheckpoint(playerid); TextDrawHideForPlayer(playerid, Text:RaceInfo[playerid]); CPProgess[playerid] = 0; KillTimer(InfoTimerRace[playerid]); #if defined RACE_IN_OTHER_WORLD SetPlayerVirtualWorld(playerid, 0); #endif } // if(IsPlayerConnected(killerid) && killerid != INVALID_PLAYER_ID) { #if defined USE_STATS ++PlayerInfo[killerid][Kills]; #endif if(InDuel[playerid] == 1) && InDuel[killerid] == 1) { GameTextForPlayer(playerid,"Loser !",3000,3); GameTextForPlayer(killerid,"Winner !",3000,3); InDuel[killerid] = 0; SetPlayerPos(killerid, 0.0, 0.0, 0.0); SpawnPlayer(killerid); } else if(InDuel[playerid] == 1) && InDuel[killerid] == 0) { GameTextForPlayer(playerid,"Loser !",3000,3); } } #if defined ENABLE_SPEC for(new x=0; x<MAX_PLAYERS; x++) if(GetPlayerState(x) == PLAYER_STATE_SPECTATING && PlayerInfo[x][SpecID] == playerid) AdvanceSpectate(x); #endif if(InSumo[playerid] == 1) { DestroyVehicle(SumoCar[playerid]); SumoPlayers--; InSumo[playerid] = 0; new strec[256]; format(strec, sizeof(strec), "{FF5A00}%s {FFFFFF}a pierdut la competitia Sumo cu Phoenix!", PlayerName2(playerid)); SendClientMessageToAll(0x6495EDAA,strec); if(SumoPlayers == 1) { for(new i = 0; i < GetMaxPlayers(); i++) { if(InSumo[i] == 1) { format(strec, sizeof(strec), "{FF5A00}%s {FFFFFF}a castigat competitia Sumo cu Phoenix! {FF5A00}+%d {FFFFFF}Coins si {FF5A00}+%d$", PlayerName2(i),ScoreWin,CashWin); SendClientMessageToAll(0x6495EDAA,string); pInfo[ i ][Coins] += ScoreWin; GivePlayerMoney(i,CashWin); SumoPlayers = 0; SumoStarted = 0; new Float:x,Float:y,Float:z; GetPlayerPos(i,x,y,z); SetPlayerPos(i,x,y,z+1); DestroyVehicle(SumoCar[i]); SetTimerEx("SpawnPP",1000,0,"i",i); TogglePlayerControllable(i,1); InSumo[i] = 0; } } } } return 1; } [22:16:27] [debug] Run time error 4: "Array index out of bounds" [22:16:27] [debug] Accessing element at index 65535 past array upper bound 499 [22:16:27] [debug] AMX backtrace: [22:16:27] [debug] #0 0006c428 in public OnPlayerDeath () from LoS.amx
-
Mda ... Destul de bun dar mi se pare edit dintr-un FS Mai vechi cu un createclan fara dialog . Infine ! Este un Createclan bun ! Te felicit ! 5/5
-
Cum zice si K1DDU . Sau incearca sa dezactiveze FireWall-ul ...
-
LULUMAD ? Nimeni nu va face asta !
-
Contacteaza-ma si o sa iti dau un pisto sa te impusti ! Da-ne erorile ! Cum sa stim ?
-
Daca iti trimite mesajul de 2 ori pune return 0; la : public OnPlayerText( playerid , text[ ] ) { return ( 0 ); }
-
Daca nu stii sa urci un sv pe host de ce mai cumperi ? Uita-te la tutoriale sau contacteaza pe cineva ^^ . Un scripter bun tre sa stie ca altfel nu stii sa iti faci server .
-
Posteaza FS Aici sa te putem ajuta ! Poate ii un BUG .
-
Daca nu stii nu incerca sa faci ...
-
Interesant . Pentru 1st include ^^ :)
-
Vad ca tu ai la OnDialogResponse numarul dialogului 1 , dar cand ai facut dialogul sa arate Fight Styles ai acolo Dialog_Styles . In loc de 1 pune Dialog_Styles fiindca asa ai la dialog ... In rest ii bine . Si trebuie sa apesi Clicke Dreapta + Click Stanga sa dai cu pumnul !
-
Nu stii sa pui liniile no ? Pune liniile ca sa stim ...
-
Stii ce ii aia update la plugins ? /:) I-ati crashdetect sau nativechecker ( http://forum.sa-mp.com/showthread.php?t=249226 ) , si posteaza server_log.txt pentru ajutor ! Bun , dar era ceva neregula cu serverul tau ! Daca era scriptat foarte bine si cu atentie trebuia sa nu iti dea eroarea aia NexT fiindca poate sa iti dea din mai multe cauze intelegi ? :> EDIT : Tu ai doar streamer ca plugin ? /:) Da-ne lista ta de #include din pawno sa vedem ce ai
-
Hai ca esti al dracului de bun ! Thanks duda :D
-
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 : error 017: undefined symbol "FALSE" #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 )
-
Strcat la stats ? :\ Poate format
-
[TUTORIAL] Cele mai intalnite erori/avertizmente in pawno!
[Funky]Anakin replied to DarkyTheAngel's topic in Tutoriale
Am eu un site si ti le arata xD ! Si rezolvarea iti spune =D -
Romania Legend Stunt 0.3e [ZCMD + SSCANF + SQLITE]
[Funky]Anakin replied to DarkyTheAngel's topic in Gamemode-uri
LULULU MAD ? ) Ala e un server facut pe Dini acesta este un alt server facut pe SQLite xD -
Poate o fi de la server ! Cine stie ! Mai sunt alti playeri pe el ? Incearca pe alt server si poate merge :D
-
Cum sa iti faci un sistem de inregistrare/logare pe Y_INI
[Funky]Anakin replied to eXorcism's topic in Tutoriale
Prove it ! Decat sa am un sistem de register / login pe Y_INI Intr-un fisier cu mai multe chestii mai bine folosesc dini decat Y_INI ! Dar folosesc SQLite fiindca arata mai bine si este mai frumos xD -
Cum sa iti faci un sistem de inregistrare/logare pe Y_INI
[Funky]Anakin replied to eXorcism's topic in Tutoriale
Bun dar pe SQLite e mai folositor Chiar MYSql ar fii extraordinar daca ai face xD . Bun si asta 4.5 / 5.0 o.O -
Ai uitat undeva o { sau o } . Uita-te unde ai modificat ultima data :D
-
UPDATE STREAMER ! SI COMPILEAZA TOT CU EL ;)
-
Stunter With Style - [sWs] [ OFFICIAL VERSION ] [ 0.3E ]
[Funky]Anakin replied to [Funky]Anakin's topic in Gamemode-uri
Cer warn ! A postat si la mine si la Darky tot cu "Frumos"
