Guest eror Odesláno: 31. Říjen, 2008 Share Odesláno: 31. Říjen, 2008 jo hoši potřebuju pomoct s přikazem ze třeba napišu /pripojenej a vono by mi to napsalo kolik som připojen nwm ci to jde. Link to comment Share on other sites More sharing options...
0 Guest poblib Odesláno: 31. Říjen, 2008 Share Odesláno: 31. Říjen, 2008 new minut[MAX_PLAYERS]; new hodin[MAX_PLAYERS]; new castimeru = 1000; //tato hodnota sa musi upravit 1 sekunda = 1000 new ct[MAX_PLAYERS] = castimeru / 1000 * 60; forward caspripojenia(playerid); SetTimer("caspripojenia",castimeru,1); #define dcmd(%1,%2,%3) if ((strcmp((%3)[1], #%1, true, (%2)) == 0) && ((((%3)[(%2) + 1] == 0) && (dcmd_%1(playerid, "")))||(((%3)[(%2) + 1] == 32) && (dcmd_%1(playerid, (%3)[(%2) + 2]))))) return 1 dcmd_cp(playerid, params[]) { #pragma unused params new string[256]; format(string, sizeof(string), "[CAS] minut[%d] hodin[%d]",minut[playerid], hodin[playerid]); SendClientMessage(playerid, 0xAFAFAFAA, string); return 1; } public caspripojenia(playerid) { if(hodin[playerid] == 0 && minut[playerid] == 0) { minut[playerid] = minut[playerid] + ct[playerid]; } if(minut[playerid] == 60) { minut[playerid] = 0; hodin[playerid] = hodin[playerid] + 1; } return 1; } dcmd(cp,2,cmdtext); Link to comment Share on other sites More sharing options...
0 Guest eror Odesláno: 31. Říjen, 2008 Share Odesláno: 31. Říjen, 2008 eror C:\DOCUME~1\LUKASA~1\Plocha\GANG.pwn(118) : error 008: must be a constant expression; assumed zero ridok new ct[MAX_PLAYERS] = castimeru / 1000 * 60; :?: help :?: Link to comment Share on other sites More sharing options...
0 Guest Gormy Odesláno: 31. Říjen, 2008 Share Odesláno: 31. Říjen, 2008 lolec ja to mam bez chyb odstran toto: new ct[MAX_PLAYERS] = castimeru / 1000 * 60; a dej to takto new ct[MAX_PLAYERS]; Link to comment Share on other sites More sharing options...
0 Guest poblib Odesláno: 31. Říjen, 2008 Share Odesláno: 31. Říjen, 2008 potom ti to nefunguje spravne{{{{ Link to comment Share on other sites More sharing options...
0 Guest eror Odesláno: 31. Říjen, 2008 Share Odesláno: 31. Říjen, 2008 hm tak co tam mam dat polib? Link to comment Share on other sites More sharing options...
0 FreeWall 3 Odesláno: 31. Říjen, 2008 Share Odesláno: 31. Říjen, 2008 je to divný to tví poblib, až budu doma což bude tak za hoďku tak to napíšu, zatim... Link to comment Share on other sites More sharing options...
0 Guest eror Odesláno: 31. Říjen, 2008 Share Odesláno: 31. Říjen, 2008 no vite nekto abo ne? :?: Link to comment Share on other sites More sharing options...
0 FreeWall 3 Odesláno: 31. Říjen, 2008 Share Odesláno: 31. Říjen, 2008 nahoru do módu : new uptime[MAX_PLAYERS]; // minuty new uptime2[MAX_PLAYERS]; // hodiny forward Uptime(playerid); forward Uptime2(playerid); do OnPlayerConnect(playerid){ SetTimerEx("Uptime",60000,1,"d",playerid); SetTimerEx("Uptime2",3600000,1,"d",playerid); kamkoli do módu : public Uptime(playerid){ uptime[playerid]++; } //------------------------------------------------------------------------------ public Uptime2(playerid){ uptime2[playerid]++; } //------------------------------------------------------------------------------ dcmd_ucet(playerid, params[]){ #pragma unused params new string[256]; format(string,sizeof(string), "Hodiny : %d || Minuty : %d",uptime2,uptime); SendClientMessage(playerid,COLOR_GREEN,string); return 1; } do OnPlayerCommandText(playerid, cmdtext[]){ dcmd(ucet,4,cmdtext); Link to comment Share on other sites More sharing options...
0 Guest eror Odesláno: 31. Říjen, 2008 Share Odesláno: 31. Říjen, 2008 jj diki dufajme ze to pojede Link to comment Share on other sites More sharing options...
0 Guest eror Odesláno: 2. Listopad, 2008 Share Odesláno: 2. Listopad, 2008 jj freewale ide to ale napisem /ucet a napisemito 1500 dni 326 minut Link to comment Share on other sites More sharing options...
0 FreeWall 3 Odesláno: 2. Listopad, 2008 Share Odesláno: 2. Listopad, 2008 zkontroluj si jestli máš tady opravdu 60000 ms a 3600000 ms SetTimerEx("Uptime",60000,1,"d",playerid); SetTimerEx("Uptime2",3600000,1,"d",playerid); Link to comment Share on other sites More sharing options...
Dotaz
Guest eror
jo hoši potřebuju pomoct s přikazem ze třeba napišu /pripojenej a vono by mi to napsalo kolik som připojen nwm ci to jde.
Link to comment
Share on other sites
11 odpovědí na tuto otázku
Recommended Posts