Help me solve this problem! -
Ir123 - 10.12.2018
Hello, i am from the forum samp brazil
Sorry for the spelling mistakes
I came to ask for help here, since nobodi can solve this problem over there.
I tried to put a more advanced login screen on my rpg server, but gave a mistake in a part of gamemode
Код:
(2960) : error 010: invalid function or declaration
(2962) : error 010: invalid function or declaration
(2965) : error 010: invalid function or declaration
2968) : error 054: unmatched closing brace ("}")
(2969) : error 010: invalid function or declaration
(2971) : error 010: invalid function or declaration
(2974) : error 010: invalid function or declaration
(2977) : error 054: unmatched closing brace ("}")
(2978) : error 010: invalid function or declaration
(2980) : error 010: invalid function or declaration
(2983) : error 054: unmatched closing brace ("}")
(2984) : error 010: invalid function or declaration
(2987) : error 054: unmatched closing brace ("}")
(2988) : error 010: invalid function or declaration
(2991) : error 054: unmatched closing brace ("}")
(2992) : error 010: invalid function or declaration
(2994) : error 010: invalid function or declaration
(2998) : error 021: symbol already defined: "KickBPS"
(2999) : error 010: invalid function or declaration
(3001) : error 010: invalid function or declaration
(3003) : error 010: invalid function or declaration
(3005) : error 021: symbol already defined: "HideMochila"
n(3007) : error 010: invalid function or declaration
(3009) : error 021: symbol already defined: "HidePortaMala"
(3012) : error 010: invalid function or declaration
(3013) : error 010: invalid function or declaration
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
PHP код:
if(!gPlayerLogged[playerid])
{
if(clickedid == Textdraw6)//logar
{
format(Fala,sizeof(Fala),Pasta_Contas,NomePlayer(playerid));
if(DOF2_FileExists(Fala))
{
ForT:logar(playerid,"");
}
else ShowPlayerDialog(playerid, 8724, DIALOG_STYLE_MSGBOX, "{FFFF00}ERRO", "{FF0000}* Vocк Nao Tem Uma Conta !", "OK","");
}
else if(clickedid == Textdraw8)
{//Registrar
format(Fala,sizeof(Fala),Pasta_Contas,NomePlayer(playerid));
if(!DOF2_FileExists(Fala))
{
ForT:registrar(playerid,"");
}
else ShowPlayerDialog(playerid, 8724, DIALOG_STYLE_MSGBOX, "{FFFF00}ERRO", "{FF0000}* Vocк Ja Tem Uma Conta !", "OK","");
}
else if(clickedid == Textdraw10)
{//Regras
ForT:regras(playerid,"");
}
else if(clickedid == Textdraw13)
{//Organizaзхes
ForT:infoserver(playerid,"");
2987 }
2988 else if(clickedid == Textdraw15)
{//Informaзхes+
ForT:helpers(playerid);
}
2991 else if(clickedid == Textdraw13)
2992 {//Sair
for(new x; x != MAX_TEXT_DRAWS; x++)
2994 {
TextDrawHideForPlayer(playerid, Text:x);
}
2998 Kick(playerid);
2999 return 1;
}
3001 if(clickedid == Text:INVALID_TEXT_DRAW)
{
3003 if(GetPVarInt(playerid, "vMochila") && !GetPVarInt(playerid, "guardando"))
{
3005 HideMochila(playerid);
}
3007 if(GetPVarInt(playerid, "vportamala") && !GetPVarInt(playerid, "guardando"))
{
3009 HidePortaMala(playerid);
}
}
3012 if(GetPVarInt(playerid, "skinc_active") == 0) return 0;
3013 if(clickedid == Text:INVALID_TEXT_DRAW)
{
DestroySelectionMenu(playerid);
SetPVarInt(playerid, "skinc_active", 0);
PlayerPlaySound(playerid, 1085, 0.0, 0.0, 0.0);
return 1;
}
return 1;
}
OBS: I listed some parts of the code.
If anyone can solve this problem, I will thank you from the heart and put the name in / creditos
Re: Help me solve this problem! -
Gameluner - 10.12.2018
What is the ForT?
Re: Help me solve this problem! -
AdamsLT - 10.12.2018
I suspect you have forgotten a closing bracket or added one too many.
I believe the problem is not in this specific code snippet but above it.
You should look at the code above this. Did you close all of the brackets you wanted and not more and not less?
If you want more help, I would suggest posting either the entire function or some lines of code above what you gave us here.
Re: Help me solve this problem! -
Ir123 - 10.12.2018
But this is not in a public, it is along with other functions of the game, and the mistakes are focused precisely on that basis, and I can not solve it, now the code has been changed again with the help of a forum person from there, and the error It persists, I really do not make an idea of what to do.
Код:
(2960) : error 010: invalid function or declaration
(2962) : error 010: invalid function or declaration
(2966) : error 010: invalid function or declaration
(296 : error 010: invalid function or declaration
(2971) : error 010: invalid function or declaration
(2975) : error 010: invalid function or declaration
(2977) : error 010: invalid function or declaration
(2980) : error 010: invalid function or declaration
(2982) : error 010: invalid function or declaration
(2984) : error 010: invalid function or declaration
(2986) : error 010: invalid function or declaration
(2988) : error 010: invalid function or declaration
(2991) : error 021: symbol already defined: "KickBPS"
(2992) : error 010: invalid function or declaration
(2994) : error 010: invalid function or declaration
(2996) : error 010: invalid function or declaration
(2997) : error 021: symbol already defined: "HideMochila"
(2994) : error 010: invalid function or declaration
(2999) : error 021: symbol already defined: "HidePortaMala"
(3002) : error 010: invalid function or declaration
(3003) : error 010: invalid function or declaration
(3006) : error 010: invalid function or declaration
(3009) : error 021: symbol already defined: "SetPVarInt"
(3011) : error 010: invalid function or declaration
(3013) : error 010: invalid function or declaration
(7416) : error 021: symbol already defined: "gPlayerLogged"
PHP код:
setItenpmNome(playerid, itemid, ammount){
new Str[45];
if(itemid == 8)
{
format(Str, 45, "Tipo: ~y~Material ~w~Colete");
PlayerTextDrawSetString(playerid, pmArma[playerid], Str);
format(Str, 45, "Quantidade: ~w~%f%", vehTrunkArmour[ammount]);
PlayerTextDrawSetString(playerid, pmBalas[playerid], Str);
PlayerTextDrawSetString(playerid, pmEquip[playerid], "Utilizar");
PlayerTextDrawSetString(playerid, pmDescart[playerid], "Guardar");
PlayerTextDrawShow(playerid, pmDescart[playerid]);
}
if(itemid == 9)
{
format(Str, 45, "Tipo: ~y~Material ~w~Droga");
PlayerTextDrawSetString(playerid, pmArma[playerid], Str);
format(Str, 45, "Quantidade: ~w~%d Gramas", vehTrunkDroga[ammount]);
PlayerTextDrawSetString(playerid, pmBalas[playerid], Str);
PlayerTextDrawSetString(playerid, pmEquip[playerid], "Utilizar");
PlayerTextDrawSetString(playerid, pmDescart[playerid], "Guardar");
PlayerTextDrawShow(playerid, pmDescart[playerid]);
}
if(itemid == 10)
{
format(Str, 45, "Tipo: ~y~Material ~w~Materiais");
PlayerTextDrawSetString(playerid, pmArma[playerid], Str);
format(Str, 45, "Quantidade: ~w~%d Pacotes", vehTrunkMaterial[ammount]);
PlayerTextDrawSetString(playerid, pmBalas[playerid], Str);
PlayerTextDrawSetString(playerid, pmEquip[playerid], "Utilizar");
PlayerTextDrawSetString(playerid, pmDescart[playerid], "Guardar");
PlayerTextDrawShow(playerid, pmDescart[playerid]);
}
}
//--------------------------------------------------------
descartarArma(playerid, idx){
new Float: pOs[3];
GetPlayerPos(playerid, pOs[0], pOs[1], pOs[2]);
CreateDroppedGun(ArmasGuardadas[playerid][idx], BalasGuardadas[playerid][idx], pOs[0], pOs[1], pOs[2]);
new buffer[85];
format(buffer, sizeof(buffer), "Vocк largou um(a) %s.", GunNames[ArmasGuardadas[playerid][idx]]);
SendClientMessage(playerid, 0x33AA3300, buffer);
format(buffer, sizeof(buffer), "* %s colocou um(a) %s no chгo.", NomePlayer(playerid), GunNames[ArmasGuardadas[playerid][idx]]);
SendClientMessageInRange(30.0, playerid, buffer, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
printf("%s", buffer);
ApplyAnimation(playerid,"BOMBER","BOM_Plant_2Idle",4.1,0,1,1,0,0);
ArmasGuardadas[playerid][idx] = 0;
BalasGuardadas[playerid][idx] = 0;
}
/*descartarArmaPM(playerid, idx){
new Float: pOs[3];
GetPlayerPos(playerid, pOs[0], pOs[1], pOs[2]);
new result = VeiculoPortaM[playerid];
new buffer[85];
format(buffer, sizeof(buffer), "Vocк largou um(a) %s.", GunNames[vehTrunkAmmo[result][idx]]);
SendClientMessage(playerid, 0x33AA3300, buffer);
format(buffer, sizeof(buffer), "* %s colocou um(a) %s no chгo.", NomePlayer(playerid), GunNames[vehTrunk[result][idx]]);
SendClientMessageInRange(30.0, playerid, buffer, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
printf("%s", buffer);
ApplyAnimation(playerid,"BOMBER","BOM_Plant_2Idle",4.1,0,1,1,0,0);
CreateDroppedGun(vehTrunk[result][idx], vehTrunkAmmo[result][idx], pOs[0], pOs[1], pOs[2]);
vehTrunk[result][idx] = 0;
vehTrunkAmmo[result][idx] = 0;
}*/
//-----------------------------------------------------------
getidxModelSlot(playerid, idx){
if(ArmasGuardadas[playerid][idx] > 0) return GunObjects[ArmasGuardadas[playerid][idx]];
else return 5699;
}
getidxPMModelSlot(vehicleid, idx){
if(vehTrunk[vehicleid][idx] > 0) return GunObjects[vehTrunk[vehicleid][idx]];
else return 5699;
}
//----------------------------------------------------------
new gPlayerLogged[MAX_PLAYERS];
new Text:Textdraw0;
new Text:Textdraw1;
new Text:ASHU;
new Text:Textdraw3;
new Text:Textdraw4;
new Text:Textdraw5;
new Text:Textdraw6;
new Text:Textdraw7;
new Text:Textdraw8;
new Text:Textdraw9;
new Text:Textdraw10;
new Text:Textdraw11;
new Text:Textdraw12;
new Text:Textdraw13;
new Text:Textdraw14;
new Text:Textdraw15;
new Text:Textdraw16;
new Text:Textdraw17;
new Text:Textdraw18;
new Text:Textdraw19;
if(!gPlayerLogged[playerid])
{
if(clickedid == Textdraw6)//logar
{
format(Fala,sizeof(Fala),Pasta_Contas,NomePlayer(playerid));
if(DOF2_FileExists(Fala))
ForT:logar(playerid,"");
else
ShowPlayerDialog(playerid, 8724, DIALOG_STYLE_MSGBOX, "{FFFF00}ERRO", "{FF0000}* Vocк Nao Tem Uma Conta !", "OK","");
}
else if(clickedid == Textdraw8)//Registrar
{
format(Fala,sizeof(Fala),Pasta_Contas,NomePlayer(playerid));
if(!DOF2_FileExists(Fala))
ForT:registrar(playerid,"");
else
ShowPlayerDialog(playerid, 8724, DIALOG_STYLE_MSGBOX, "{FFFF00}ERRO", "{FF0000}* Vocк Ja Tem Uma Conta !", "OK","");
}
else if(clickedid == Textdraw10)//Regras
ForT:regras(playerid,"");
else if(clickedid == Textdraw13)//Organizaзхes
ForT:infoserver(playerid,"");
else if(clickedid == Textdraw15)//Informaзхes+
ForT:helpers(playerid);
else if(clickedid == Textdraw13)//Sair
{
for(new x; x != MAX_TEXT_DRAWS; x++)
TextDrawHideForPlayer(playerid, Text:x);
Kick(playerid);
return 1;
}
else if(clickedid == Text:INVALID_TEXT_DRAW)
{
if(GetPVarInt(playerid, "vMochila") && !GetPVarInt(playerid, "guardando"))
HideMochila(playerid);
else if(GetPVarInt(playerid, "vportamala") && !GetPVarInt(playerid, "guardando"))
HidePortaMala(playerid);
}
if(GetPVarInt(playerid, "skinc_active") == 0)
return 0;
// Handle: They cancelled (with ESC)
if(clickedid == Text:INVALID_TEXT_DRAW)
{
DestroySelectionMenu(playerid);
SetPVarInt(playerid, "skinc_active", 0);
PlayerPlaySound(playerid, 1085, 0.0, 0.0, 0.0);
return 1;
}
return 1;
}
//----------------------------------------------------------