Code de um sistema. -
DannielCooper - 28.04.2013
Olб, eu acho que estб tudo certo.. Mais tem coisas que eu realmente nгo estou entendendo. Gostaria que me ajudassem com isso, por favor, quem puder. (:
Erros:
Код:
029 Invalid expression, assumed zero.
017 undefined symbol "ShowMessageDB"
029 Invalid expression, assumed zero.
017 undefined symbol "ShowMessageDB"
030 compound statement not closed at the end of file (started at line 53968)
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
Linhas:
Код:
public AgendandoCadeia(idcheck, playerid)
{
new arquivo[64], dannielcooper, NomeOrg[64],
PresoMotivo[64], PresoNome[64];
if(idcheck == 1)
{
format(arquivo, sizeof(arquivo), "Agendados/%s.ini",PlayerName(playerid));
if(dini_Exists(arquivo))
{
strmid(PresoNome, dini_Get(arquivo,"Admin"), 0, strlen(dini_Get(arquivo,"Admin")), 255);
strmid(PresoMotivo, dini_Get(arquivo,"Motivo"), 0, strlen(dini_Get(arquivo,"Motivo")), 255);
DannielCooper = dini_Int(arquivo,"Tempo");
format(gstring, sizeof(gstring), "* Admin %s Agendou Sua Prisгo, Motivo: %s.", PresoNome,PresoMotivo);
SendClientMessage(playerid, COLOR_LIGHTRED, gstring);
format(gstring, sizeof(gstring), "Vocк foi preso por %d Minutos Automaticamente, Agendado pelo Admin.", DannielCooper);
SendClientMessage(playerid, COLOR_LIGHTBLUE, gstring);
GameTextForPlayer(playerid, "~b~Bem Vindo a ~n~~r~~h~Cadeia Admin", 5000, 3);
WantedPoints[playerid] = 0;
ResetPlayerWeapons(playerid);
SetPlayerWantedLevel(playerid, 0);
PlayerInfo[playerid][pJailed] = 2;
PlayerInfo[playerid][pJailTime] = dannielcooper * 60;
SetPlayerPos(playerid, 346.5848, 306.1026, 999.1484);
SetPlayerInterior(playerid,6);
format(gstring, sizeof(gstring), "AdmAviso: {80E3FF}%s {E84F33} Estб Agendado e Foi preso, Motivo: %s",PlayerName(playerid) ,PresoMotivo);
ABroadCast(COLOR_LIGHTRED,gstring,1);
fremove(arquivo);
}
return 1;
}
forward ShowMessageDB(playerid);
public ShowMessageDB(playerid)
{
format(dannielcooper,sizeof(dannielcooper),"{FF8000}Player:{00FFFF} %s {FF8000}foi acusado de cometer DB em Vocк\nCaso Seja Verdade Aperte em '{00FFFF}Acusar{FF8000}'!\nCaso contrбrio aperte em '{00FFFF}Nгo Acusar{FF8000}'!",kickname);
ShowPlayerDialog(playerid,1643,DIALOG_STYLE_MSGBOX,"Acusaзгo Driver-By",dannielcooper,"Acusar","Nao Acusar");
return 1;
}
Respuesta: Code de um sistema. -
Pedro Pawno - 28.04.2013
pawn Код:
public AgendandoCadeia(idcheck, playerid)
{
new arquivo[64], dannielcooper, NomeOrg[64],
PresoMotivo[64], PresoNome[64];
if(idcheck == 1)
{
format(arquivo, sizeof(arquivo), "Agendados/%s.ini",PlayerName(playerid));
if(dini_Exists(arquivo))
{
strmid(PresoNome, dini_Get(arquivo,"Admin"), 0, strlen(dini_Get(arquivo,"Admin")), 255);
strmid(PresoMotivo, dini_Get(arquivo,"Motivo"), 0, strlen(dini_Get(arquivo,"Motivo")), 255);
DannielCooper = dini_Int(arquivo,"Tempo");
format(gstring, sizeof(gstring), "* Admin %s Agendou Sua Prisгo, Motivo: %s.", PresoNome,PresoMotivo);
SendClientMessage(playerid, COLOR_LIGHTRED, gstring);
format(gstring, sizeof(gstring), "Vocк foi preso por %d Minutos Automaticamente, Agendado pelo Admin.", DannielCooper);
SendClientMessage(playerid, COLOR_LIGHTBLUE, gstring);
GameTextForPlayer(playerid, "~b~Bem Vindo a ~n~~r~~h~Cadeia Admin", 5000, 3);
WantedPoints[playerid] = 0;
ResetPlayerWeapons(playerid);
SetPlayerWantedLevel(playerid, 0);
PlayerInfo[playerid][pJailed] = 2;
PlayerInfo[playerid][pJailTime] = dannielcooper * 60;
SetPlayerPos(playerid, 346.5848, 306.1026, 999.1484);
SetPlayerInterior(playerid,6);
format(gstring, sizeof(gstring), "AdmAviso: {80E3FF}%s {E84F33} Estб Agendado e Foi preso, Motivo: %s",PlayerName(playerid) ,PresoMotivo);
ABroadCast(COLOR_LIGHTRED,gstring,1);
fremove(arquivo);
}
return 1;
}
stock ShowMessageDB(playerid)
{
format(dannielcooper,sizeof(dannielcooper),"{FF8000}Player:{00FFFF} %s {FF8000}foi acusado de cometer DB em Vocк\nCaso Seja Verdade Aperte em '{00FFFF}Acusar{FF8000}'!\nCaso contrбrio aperte em '{00FFFF}Nгo Acusar{FF8000}'!",kickname);
ShowPlayerDialog(playerid,1643,DIALOG_STYLE_MSGBOX,"Acusaзгo Driver-By",dannielcooper,"Acusar","Nao Acusar");
return 1;
}
Re: Code de um sistema. -
DannielCooper - 28.04.2013
Mano, deu a mesma coisa...
Respuesta: Code de um sistema. -
Pedro Pawno - 28.04.2013
Especifique as linhas cara.
Re: Code de um sistema. -
DannielCooper - 28.04.2013
Os erros nгo mudaram, as linhas nгo mudaram, deu tudo a mesma coisa..
Respuesta: Code de um sistema. -
Pedro Pawno - 28.04.2013
Cara eu disse para especificar a linha do seu cуdigo
PHP код:
Este foro requiere que tъ esperes 120 segundos entre mensajes. Por favor intenta de nuevo en 25 segundos.
¬¬'
Re: Code de um sistema. -
DannielCooper - 28.04.2013
Erros:
Код:
error 017: undefined symbol "DannielCooper"
error 017: undefined symbol "DannielCooper"
error 029: invalid expression, ssumed zero
error 017: undefined symbol "ShowMessageDB"
error 035: argument type mismatch (argument 1)
error 035: argument type mismatch (argument 1)
argument type mismatch (argument 5)
error 030: compound statement not closed at the end of file (started at line 53968)
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
Linhas:
Код:
public AgendandoCadeia(idcheck, playerid)
{
new arquivo[64], dannielcooper, NomeOrg[64],
PresoMotivo[64], PresoNome[64];
if(idcheck == 1)
{
format(arquivo, sizeof(arquivo), "Agendados/%s.ini",PlayerName(playerid));
if(dini_Exists(arquivo))
{
strmid(PresoNome, dini_Get(arquivo,"Admin"), 0, strlen(dini_Get(arquivo,"Admin")), 255);
strmid(PresoMotivo, dini_Get(arquivo,"Motivo"), 0, strlen(dini_Get(arquivo,"Motivo")), 255);
DannielCooper = dini_Int(arquivo,"Tempo");
format(gstring, sizeof(gstring), "* Admin %s Agendou Sua Prisгo, Motivo: %s.", PresoNome,PresoMotivo);
SendClientMessage(playerid, COLOR_LIGHTRED, gstring);
format(gstring, sizeof(gstring), "Vocк foi preso por %d Minutos Automaticamente, Agendado pelo Admin.", DannielCooper);
SendClientMessage(playerid, COLOR_LIGHTBLUE, gstring);
GameTextForPlayer(playerid, "~b~Bem Vindo a ~n~~r~~h~Cadeia Admin", 5000, 3);
WantedPoints[playerid] = 0;
ResetPlayerWeapons(playerid);
SetPlayerWantedLevel(playerid, 0);
PlayerInfo[playerid][pJailed] = 2;
PlayerInfo[playerid][pJailTime] = dannielcooper * 60;
SetPlayerPos(playerid, 346.5848, 306.1026, 999.1484);
SetPlayerInterior(playerid,6);
format(gstring, sizeof(gstring), "AdmAviso: {80E3FF}%s {E84F33} Estб Agendado e Foi preso, Motivo: %s",PlayerName(playerid) ,PresoMotivo);
ABroadCast(COLOR_LIGHTRED,gstring,1);
fremove(arquivo);
}
return 1;
}
stock ShowMessageDB(playerid)
{
format(dannielcooper,sizeof(dannielcooper),"{FF8000}Player:{00FFFF} %s {FF8000}foi acusado de cometer DB em Vocк\nCaso Seja Verdade Aperte em '{00FFFF}Acusar{FF8000}'!\nCaso contrбrio aperte em '{00FFFF}Nгo Acusar{FF8000}'!",kickname);
ShowPlayerDialog(playerid,1643,DIALOG_STYLE_MSGBOX,"Acusaзгo Driver-By",dannielcooper,"Acusar","Nao Acusar");
return 1;
}
Re: Code de um sistema. -
LuxuN - 28.04.2013
pawn Код:
public AgendandoCadeia(idcheck, playerid)
{
new
arquivo[64],
dannielcooper,
NomeOrg[64],
PresoMotivo[64],
PresoNome[64]
;
if(idcheck == 1)
{
format(arquivo, sizeof(arquivo), "Agendados/%s.ini",PlayerName(playerid));
if(dini_Exists(arquivo))
{
strmid(PresoNome, dini_Get(arquivo,"Admin"), 0, strlen(dini_Get(arquivo,"Admin")), 255);
strmid(PresoMotivo, dini_Get(arquivo,"Motivo"), 0, strlen(dini_Get(arquivo,"Motivo")), 255);
DannielCooper = dini_Int(arquivo,"Tempo");
format(gstring, sizeof(gstring), "* Admin %s Agendou Sua Prisгo, Motivo: %s.", PresoNome,PresoMotivo);
SendClientMessage(playerid, COLOR_LIGHTRED, gstring);
format(gstring, sizeof(gstring), "Vocк foi preso por %d Minutos Automaticamente, Agendado pelo Admin.", DannielCooper);
SendClientMessage(playerid, COLOR_LIGHTBLUE, gstring);
GameTextForPlayer(playerid, "~b~Bem Vindo a ~n~~r~~h~Cadeia Admin", 5000, 3);
WantedPoints[playerid] = 0;
ResetPlayerWeapons(playerid);
SetPlayerWantedLevel(playerid, 0);
PlayerInfo[playerid][pJailed] = 2;
PlayerInfo[playerid][pJailTime] = dannielcooper * 60;
SetPlayerPos(playerid, 346.5848, 306.1026, 999.1484);
SetPlayerInterior(playerid,6);
format(gstring, sizeof(gstring), "AdmAviso: {80E3FF}%s {E84F33} Estб Agendado e Foi preso, Motivo: %s",PlayerName(playerid) ,PresoMotivo);
ABroadCast(COLOR_LIGHTRED,gstring,1);
fremove(arquivo);
}
}
return 1;
}
forward ShowMessageDB(playerid);
public ShowMessageDB(playerid)
{
format(dannielcooper,sizeof(dannielcooper),"{FF8000}Player:{00FFFF} %s {FF8000}foi acusado de cometer DB em Vocк\nCaso Seja Verdade Aperte em '{00FFFF}Acusar{FF8000}'!\nCaso contrбrio aperte em '{00FFFF}Nгo Acusar{FF8000}'!",kickname);
ShowPlayerDialog(playerid,1643,DIALOG_STYLE_MSGBOX,"Acusaзгo Driver-By",dannielcooper,"Acusar","Nao Acusar");
return 1;
}
Re: Code de um sistema. -
DannielCooper - 28.04.2013
Erros:
Код:
error 017: undefined symbol "playerid"
error 017: undefined symbol "DannielCooper"
error 017: undefined symbol "playerid"
error 017: undefined symbol "DannielCooper"
C:\Users\Daniel\Desktop\daniel\BSS\gamemodes\StreetStyle.pwn(53989) : error 017: undefined symbol "playerid"
C:\Users\Daniel\Desktop\daniel\BSS\gamemodes\StreetStyle.pwn(53991) : error 017: undefined symbol "playerid"
C:\Users\Daniel\Desktop\daniel\BSS\gamemodes\StreetStyle.pwn(53993) : error 017: undefined symbol "playerid"
C:\Users\Daniel\Desktop\daniel\BSS\gamemodes\StreetStyle.pwn(53994) : error 017: undefined symbol "playerid"
C:\Users\Daniel\Desktop\daniel\BSS\gamemodes\StreetStyle.pwn(53995) : error 017: undefined symbol "playerid"
C:\Users\Daniel\Desktop\daniel\BSS\gamemodes\StreetStyle.pwn(53996) : error 017: undefined symbol "playerid"
C:\Users\Daniel\Desktop\daniel\BSS\gamemodes\StreetStyle.pwn(53997) : error 017: undefined symbol "playerid"
C:\Users\Daniel\Desktop\daniel\BSS\gamemodes\StreetStyle.pwn(53999) : error 017: undefined symbol "playerid"
C:\Users\Daniel\Desktop\daniel\BSS\gamemodes\StreetStyle.pwn(54000) : error 017: undefined symbol "playerid"
C:\Users\Daniel\Desktop\daniel\BSS\gamemodes\StreetStyle.pwn(54002) : error 017: undefined symbol "playerid"
C:\Users\Daniel\Desktop\daniel\BSS\gamemodes\StreetStyle.pwn(53971) : warning 204: symbol is assigned a value that is never used: "NomeOrg"
C:\Users\Daniel\Desktop\daniel\BSS\gamemodes\StreetStyle.pwn(54013) : error 017: undefined symbol "dannielcooper"
C:\Users\Daniel\Desktop\daniel\BSS\gamemodes\StreetStyle.pwn(54013) : error 017: undefined symbol "dannielcooper"
C:\Users\Daniel\Desktop\daniel\BSS\gamemodes\StreetStyle.pwn(54013) : error 029: invalid expression, assumed zero
fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
19 Errors.
Re: Code de um sistema. -
LuxuN - 28.04.2013
pawn Код:
public AgendandoCadeia(idcheck, playerid)
{
new
arquivo[64],
DannielCooper,
PresoMotivo[64],
PresoNome[64]
;
if(idcheck == 1)
{
format(arquivo, sizeof(arquivo), "Agendados/%s.ini",PlayerName(playerid));
if(dini_Exists(arquivo))
{
strmid(PresoNome, dini_Get(arquivo,"Admin"), 0, strlen(dini_Get(arquivo,"Admin")), 255);
strmid(PresoMotivo, dini_Get(arquivo,"Motivo"), 0, strlen(dini_Get(arquivo,"Motivo")), 255);
DannielCooper = dini_Int(arquivo,"Tempo");
format(gstring, sizeof(gstring), "* Admin %s Agendou Sua Prisгo, Motivo: %s.", PresoNome,PresoMotivo);
SendClientMessage(playerid, COLOR_LIGHTRED, gstring);
format(gstring, sizeof(gstring), "Vocк foi preso por %d Minutos Automaticamente, Agendado pelo Admin.", DannielCooper);
SendClientMessage(playerid, COLOR_LIGHTBLUE, gstring);
GameTextForPlayer(playerid, "~b~Bem Vindo a ~n~~r~~h~Cadeia Admin", 5000, 3);
WantedPoints[playerid] = 0;
ResetPlayerWeapons(playerid);
SetPlayerWantedLevel(playerid, 0);
PlayerInfo[playerid][pJailed] = 2;
PlayerInfo[playerid][pJailTime] = DannielCooper * 60;
SetPlayerPos(playerid, 346.5848, 306.1026, 999.1484);
SetPlayerInterior(playerid,6);
format(gstring, sizeof(gstring), "AdmAviso: {80E3FF}%s {E84F33} Estб Agendado e Foi preso, Motivo: %s",PlayerName(playerid) ,PresoMotivo);
ABroadCast(COLOR_LIGHTRED,gstring,1);
fremove(arquivo);
}
}
return 1;
}
se der mais algum erro se vira ai cara tente estudar o que ta acontecendo vc nem tentou Olhar, vc acha que vc tem algum empregado? tenta aprender rapaz se nгo, vai ser sу mais um a passar por aki sem Objetivo e NEM RESULTADO.