SA-MP Forums Archive
[Ajuda] GM do BVV! - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] GM do BVV! (/showthread.php?tid=367922)



GM do BVV! - .:LucasxD:. - 11.08.2012

Ai ai, aqui estou novamente pedindo ajuda a voces Bem baixei o GM Brasil Vida Virtual e deu 4 erros

pawn Код:
C:\Users\Cliente\Desktop\Meu Servidor\gamemodes\BVV.pwn(12750) : error 017: undefined symbol "StrToInt"
C:\Users\Cliente\Desktop\Meu Servidor\gamemodes\BVV.pwn(12755) : error 017: undefined symbol "StrToInt"
C:\Users\Cliente\Desktop\Meu Servidor\gamemodes\BVV.pwn(12761) : error 017: undefined symbol "StrToInt"
C:\Users\Cliente\Desktop\Meu Servidor\gamemodes\BVV.pwn(12762) : error 017: undefined symbol "StrToInt"
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


4 Errors.


Cуdigo Completo:

pawn Код:
if(dialogid == 6740){
if(response == 1){
if(IsNumeric(inputtext) && IsPlayerConnected(StrToInt(inputtext))){
new aname[MAX_PLAYER_NAME];
new string2[256];
GetPlayerName(playerid, aname, MAX_PLAYER_NAME);
new pname[MAX_PLAYER_NAME];
GetPlayerName(StrToInt(inputtext), pname, MAX_PLAYER_NAME);
format(file, sizeof(file), PASTA_CONTAS, aname);
format(file2, sizeof(file2), PASTA_CONTAS, pname);
format(string, sizeof(string), "/Clans/clan%d.ini", dini_Int(file, "Clan"));
if(dini_Int(file2, "SClan") == 0){
format(string2, sizeof(string2), "Vocк foi convidado para entrar no clan:\n%s\nPara Aceitar clique em Aceitar, para recusar clique em Recusar", dini_Get(string, "Nome"));
convt[StrToInt(inputtext)] = dini_Int(file, "Clan");
ShowPlayerDialog(StrToInt(inputtext),6738 , DIALOG_STYLE_MSGBOX, "Convite de Clan", string2, "Aceitar", "Recusar");
SendClientMessage(playerid, Verde, "(~) Convite Enviado!");
} else {
SendClientMessage(playerid, Vermelho, "(~) Este player jб tem clan!");
}
} else {
SendClientMessage(playerid, Vermelho, "(~) ID invбlido!");
}
}
}


Linhas:

pawn Код:
if(IsNumeric(inputtext) && IsPlayerConnected(StrToInt(inputtext))){


pawn Код:
GetPlayerName(StrToInt(inputtext), pname, MAX_PLAYER_NAME);


pawn Код:
convt[StrToInt(inputtext)] = dini_Int(file, "Clan");


pawn Код:
ShowPlayerDialog(StrToInt(inputtext),6738 , DIALOG_STYLE_MSGBOX, "Convite de Clan", string2, "Aceitar", "Recusar");



Re: GM do BVV! - Delay - 11.08.2012

Final do GM

pawn Код:
stock StrToInt(string[]) {
return strval(string);
}

stock set(dest[],source[]) {
new count = strlen(source);
new i=0;
for (i=0;i<count;i++) {
dest[i]=source[i];
}
dest[count]=0;
}
Tenta ae

Ainda deve ficar alguns warnings..


Re: GM do BVV! - .:LucasxD:. - 11.08.2012

Compiler Vlw + Rep pra vc