Jump to content

Recommended Posts

Posted

adica gen /upgrade daca ai 6 ore sa poti face up ?

"Mulţi programatori buni fac programare nu pentru că se aşteaptă să câştige bani sau să fie lăudaţi de public, ci pentru că e amuzant să programezi." - Linus Torvalds

Posted (edited)

Foarte simplu:

Pui :

if ( exp == 5 )
{
PLayerInfo[ playerid ][ pLevel ] = 2;
}

Dupa ce ai pus variabilile cu pExp= +1)

Faci un timer de 1h si bagi exp++;

Asta nu e pe mysql dar iti va merge cu siguranta,mie imi merge care nu lucrez pe mysql dapai tie.

Edited by Adrian_Petre

 

 

Posted (edited)

am gasit gata , pe mine ma interesa un algoritm... Uite unul:

  • if( strcmp( cmdtext, "/buylevel", true ) == 0 )
  • {
  • new iLevelCost = Level[ playerid ] * LEVEL_RATE;
  • if( RespectPoints[ playerid ] < iLevelCost ) return SendClientMessage( playerid, -1, "ERROR: Nu ai destule puncte de respect" );
  • Level[ playerid ] ++;
  • RespectPoints[ playerid ] = ( PremiumPlayer[ playerid ] > 0 ) ? ( RespectPoints[ playerid ] - iLevelCost ) : ( 0 );
  • SendClientMessage( playerid, -1, "LevelUP" );
  • return 1;
  • }
Edited by WiDuAlK.SaMp
Posted

Deci rezolvat?Daca da rog un moderator sa dea lock. Multumesc.

 

 

  • 4 weeks later...
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.