11.07.2012, 19:54
Bueno, miren, tengo el GM de CM 4.0, y quiero comentarles que tengo un grave problema con el "tiempo". Si, tiempo, sistemas que tengan que ver con el tiempo, sea segundos, etc.
Voy a dar unos ejemplos:
*Cuando doy jail, el tiempo no corre, por ende, se queda miles de aсos en jail.
*Al usar el comando /hora, la hora no sube, por lo tanto, todo el dнa quizб sean las 14:00.
*Sobre el payday, no aparece nunca, tengo que estar poniendo /forcepayday, pero aъn asн, al usar eso, no se agrega el punto de reputaciуn.
Entonces, no quiero que comenten que son los sistemas en sн, porque siempre funcionaron bien, y no toquй ninguno, їserб que algъn otro sistema interfieren?
Escucho todo lo que digan, sуlo quiero solucionarlo, gracias por su atenciуn.
+rep al que lo solucione, estoy perdiendo la media de 20 usuarios que tengo, el cual, hasta hoy estaba estable.
Warnings del GM(por si debe ser algo de eso):
Lнneas de los warning's:
Lнnea 2132
Lнneas 11304 - 11309
Lнnea 13262
Lнneas 19309 - 19337
Lнneas 24572 - 24573
Agrego: El sistema de alcoholemia, no existe en ningъn servidor, lo hizo mi scripter con una idea que yo tuve, y йl fue el que empezу a agregar el string2 al GM, pro si tiene algo que ver... Lo de SVInfo, es sacado del GM de ZC, en el de CM nunca estuvo, es que tambiйn hizo un sistema en el de ZC, porque usabamos ese GM, entonces, lo transpasamos, todo funciona bien, excepto eso.
Voy a dar unos ejemplos:
*Cuando doy jail, el tiempo no corre, por ende, se queda miles de aсos en jail.
*Al usar el comando /hora, la hora no sube, por lo tanto, todo el dнa quizб sean las 14:00.
*Sobre el payday, no aparece nunca, tengo que estar poniendo /forcepayday, pero aъn asн, al usar eso, no se agrega el punto de reputaciуn.
Entonces, no quiero que comenten que son los sistemas en sн, porque siempre funcionaron bien, y no toquй ninguno, їserб que algъn otro sistema interfieren?
Escucho todo lo que digan, sуlo quiero solucionarlo, gracias por su atenciуn.
+rep al que lo solucione, estoy perdiendo la media de 20 usuarios que tengo, el cual, hasta hoy estaba estable.
Warnings del GM(por si debe ser algo de eso):
Код:
C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\glcm.pwn(2132) : warning 204: symbol is assigned a value that is never used: "string2" C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\glcm.pwn(11304) : warning 202: number of arguments does not match definition C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\glcm.pwn(11305) : warning 202: number of arguments does not match definition C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\glcm.pwn(11306) : warning 202: number of arguments does not match definition C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\glcm.pwn(11307) : warning 202: number of arguments does not match definition C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\glcm.pwn(11308) : warning 202: number of arguments does not match definition C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\glcm.pwn(11309) : warning 202: number of arguments does not match definition C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\glcm.pwn(13262) : warning 219: local variable "giveplayerid" shadows a variable at a preceding level C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\glcm.pwn(19309) : warning 204: symbol is assigned a value that is never used: "string2" C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\glcm.pwn(19309 -- 19337) : warning 209: function "cmd_alcoholemia" should return a value C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\glcm.pwn(24572 -- 24573) : warning 215: expression has no effect
Lнnea 2132
pawn Код:
zcmd(conteo, playerid, params[ ]) {
if(!IsPlayerConnected(playerid)) return 0;
{
new string[124];
format(string, sizeof(string), "* %s hace una seсa con la mano a sus compaсeros y comienza a contar con los dedos de la mano izquierda", PlayerName(playerid));
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
new string2[124];//ЙSTA ES LA LНNEA//
format(string, sizeof(string), "* %s ((1))", PlayerName(playerid));
ProxDetector(30.0, playerid, string, 0x9ACD32AA,0x9ACD32AA,0x9ACD32AA,0x9ACD32AA,0x9ACD32AA);
format(string, sizeof(string), "* %s ((2))", PlayerName(playerid));
ProxDetector(30.0, playerid, string, 0x9ACD32AA,0x9ACD32AA,0x9ACD32AA,0x9ACD32AA,0x9ACD32AA);
format(string, sizeof(string), "* %s ((3))", PlayerName(playerid));
ProxDetector(30.0, playerid, string, 0x9ACD32AA,0x9ACD32AA,0x9ACD32AA,0x9ACD32AA,0x9ACD32AA);
format(string, sizeof(string), "* %s ((4))", PlayerName(playerid));
ProxDetector(30.0, playerid, string, 0x9ACD32AA,0x9ACD32AA,0x9ACD32AA,0x9ACD32AA,0x9ACD32AA);
format(string, sizeof(string), "* %s ((5))", PlayerName(playerid));
ProxDetector(30.0, playerid, string, 0x9ACD32AA,0x9ACD32AA,0x9ACD32AA,0x9ACD32AA,0x9ACD32AA);
SetTimerEx("ConteoPlease",2500,0,"i",playerid);
}
return 1;
}
pawn Код:
AddStaticVehicleEx(440,1586.9984,25.9850,24.1604,92.4332,0,0,0); // Rumpo 94
AddStaticVehicleEx(440,1568.9784,35.2142,24.4784,271.8389,0,0); // Rumpo1 95 // Lнnea 11304
AddStaticVehicleEx(418,1585.5387,33.1628,24.4623,92.7229,0,0); // Moonbeam 96 // Lнnea 11305
AddStaticVehicleEx(418,1577.8931,45.9878,25.2388,196.1498,0,0); // Moonbeam1 97 // Lнnea 11306
AddStaticVehicleEx(418,1575.7815,23.2532,24.1641,178.2895,0,0); // Moonbeam2 98 // Lнnea 11307
AddStaticVehicleEx(515,1543.3096,78.4461,28.0719,200.1033,0,0); // Roadtrain 99 // Lнnea 11308
AddStaticVehicleEx(487,1551.5129,-48.4170,21.0265,243.9930,1,1); // Maverik 100 // Lнnea 11309
AddStaticVehicleEx(553,1550.0413,-91.0310,23.1240,44.0854,180,180,0); // Avion 101
pawn Код:
new idcar = GetPlayerVehicleID(playerid),string[128],giveplayerid;
pawn Код:
new string2[128];// Lнnea 19309
new alcoholtexto[40];
if(sscanf(params, "ud", params[0], params[1]))// return Message(playerid, COLOR_GRAD2, "Utiliza: /alcoholemia <ID>");
if(IsPlayerConnected(params[0]))
{
if(ProxDetectorS(8.0,playerid, params[0]))
{
switch(SVInfo[params[0]][Borracho])
{
case 1: alcoholtexto = "Borracho";
default: alcoholtexto = "Normal";
}
new stringdelorto[138];
new sunombreje[MAX_PLAYER_NAME];
GetPlayerName(playerid, sunombreje, sizeof(sunombreje));
new elnombrede[MAX_PLAYER_NAME];
GetPlayerName(params[0], elnombrede, sizeof(elnombrede));
SendClientMessage(playerid, COLOR_BLUE, "[Departamento Policial de Los Santos]");
format(string, sizeof(string), "-El estado de alcoholemia es: %s", alcoholtexto);
format(stringdelorto, sizeof(stringdelorto), "* %s visualiza el estado de alcoholemia de %s, el cual da %s.", sunombreje, elnombrede, alcoholtexto);
ProxDetector(30.0, playerid, stringdelorto, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
SendClientMessage(playerid, COLOR_WHITE, string);
return 1;
}
else return Message(playerid, COLOR_GRAD2, "Muy lejos de este jugador!");
}
return 1;
}
}// Lнnea 19337
pawn Код:
SVInfo[playerid][ccn1p] // Lнnea 24572
SetPlayerPos(playerid,SVInfo[playerid][ccn1p], SVInfo[playerid][ccn2p], SVInfo[playerid][ccn3p]); // Lнnea 24573