SA-MP Forums Archive
[RESOLVIDO] Ajuda nesses 3 Erros aew :D - 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: [RESOLVIDO] Ajuda nesses 3 Erros aew :D (/showthread.php?tid=141127)



[RESOLVIDO] Ajuda nesses 3 Erros aew :D - rafinha - 11.04.2010

Ajuda nesses Erros:

C:\Documents and Settings\ADM\Desktop\NYGA.pwn(2794) : error: 017: undefined symbol "udb_planos"
Linha 2794
planos[0] = udb_planos(PlayerName(playerid));


C:\Documents and Settings\ADM\Desktop\NYGA.pwn(3632) : error: 035: argument type mismatch (argument 13)

udb_Create(PlayerName(playerid), tmp /*senha*/,0 /*crйditos*/, 300 /*grana*/, 0 /*skin*/, 3000 /*gbanco*/, 0 /*gas*/, 0 /*planos*/, 0 /*har*/, 0 /*hterra*/, 0 /*hmar*/, 0 /*preso*/, 1 /*prof*/, 0 /*org*/, ""/*clantag*/, 1243.1599/*X*/, -1693.4703/*Y*/, 16.1974/*Z*/, 177.2275/*ang*/, 100.0 /*hp*/);


C:\Documents and Settings\ADM\Desktop\NYGA.pwn(5642) : error: 017: undefined symbol "udb_getPlanos"
planos[0] = udb_getPlanos(PlayerName(playerid));


Me ajudem aew


Re: Ajuda nesses 3 Erros aew :D - GuikBretas - 11.04.2010

Poxa, eu nunca mexi com UDB, malz


Re: Ajuda nesses 3 Erros aew :D - rafinha - 11.04.2010

:/ tah foda esses erros :S


Re: Ajuda nesses 3 Erros aew :D - rafinha - 21.04.2010

Alguem ajuda aew ;S por favor


Re: Ajuda nesses 3 Erros aew :D - SuB_ZeRo0_ - 21.04.2010

Quote:
Originally Posted by rafinha
Ajuda nesses Erros:

C:\Documents and Settings\ADM\Desktop\NYGA.pwn(2794) : error: 017: undefined symbol "udb_planos"
Linha 2794
planos[0] = udb_planos(PlayerName(playerid));


C:\Documents and Settings\ADM\Desktop\NYGA.pwn(3632) : error: 035: argument type mismatch (argument 13)

udb_Create(PlayerName(playerid), tmp /*senha*/,0 /*crйditos*/, 300 /*grana*/, 0 /*skin*/, 3000 /*gbanco*/, 0 /*gas*/, 0 /*planos*/, 0 /*har*/, 0 /*hterra*/, 0 /*hmar*/, 0 /*preso*/, 1 /*prof*/, 0 /*org*/, ""/*clantag*/, 1243.1599/*X*/, -1693.4703/*Y*/, 16.1974/*Z*/, 177.2275/*ang*/, 100.0 /*hp*/);


C:\Documents and Settings\ADM\Desktop\NYGA.pwn(5642) : error: 017: undefined symbol "udb_getPlanos"
planos[0] = udb_getPlanos(PlayerName(playerid));


Me ajudem aew
]

1є: No DUDB nгo existe udb_planos(PlayerName(playerid));
2є: Nгo se usa assim! Й assim: udb_Create(nickname[],pwd[]); Ou seja dentro dos () й (nickdocara,senha)
3є: No DUDB nгo existe udb_getPlanos(PlayerName(playerid));

Dica: Nгo invente cуdigos. ^^
DicaІ: Para adicionar linhas em uma conta use: udb_UserSetInt(nickname[],key[],value)


Re: Ajuda nesses 3 Erros aew :D - rafinha - 21.04.2010

Quote:
udb_Create(PlayerName(playerid), tmp /*-->senha*/,0 /*-->crйditos*/, 0 /*-->grana*/, 102 /*-->skin*/, 10000 /*-->gbanco*/, 100 /*-->gas*/, 0 /*-->har*/, 0 /*-->hterra*/, 0 /*-->hmar*/, 0 /*-->preso*/, 1 /*-->prof*/, ""/*-->clantag*/, -1757.9701/*-->X*/, 960.9874/*-->Y*/, 24.8828/*-->Z*/, 180.0000/*-->ang*/, 100.0 /*-->hp*/);
Agora deu certo


Re: Ajuda nesses 3 Erros aew :D - andmeida10 - 22.04.2010

Quote:
Originally Posted by SuB_ZeRo0_
Dica: Nгo invente cуdigos. ^^
Porque nгo

й bem simples de criar..

Olha ultimo k criei:

pawn Код:
stock GetVehicleName(playerid)
{
new string[256], i;
format(string,sizeof(string),"Nome do Veiculo: %s",NomeCarro[GetVehicleModel(GetPlayerVehicleID(i))-400]);
SendClientMessage(playerid, COR_AZUL, string);
return 1;
}



Re: Ajuda nesses 3 Erros aew :D - SuB_ZeRo0_ - 22.04.2010

Quote:
Originally Posted by rafinha
Quote:
udb_Create(PlayerName(playerid), tmp /*-->senha*/,0 /*-->crйditos*/, 0 /*-->grana*/, 102 /*-->skin*/, 10000 /*-->gbanco*/, 100 /*-->gas*/, 0 /*-->har*/, 0 /*-->hterra*/, 0 /*-->hmar*/, 0 /*-->preso*/, 1 /*-->prof*/, ""/*-->clantag*/, -1757.9701/*-->X*/, 960.9874/*-->Y*/, 24.8828/*-->Z*/, 180.0000/*-->ang*/, 100.0 /*-->hp*/);
Agora deu certo
Se funcionar assim a senha de login dele vai ser: (Alйm de ser codificada)
Код:
 tmp /*-->senha*/,0 /*-->crйditos*/, 0 /*-->grana*/, 102 /*-->skin*/, 10000 /*-->gbanco*/, 100 /*-->gas*/, 0 /*-->har*/, 0 /*-->hterra*/, 0 /*-->hmar*/, 0 /*-->preso*/, 1 /*-->prof*/, ""/*-->clantag*/, -1757.9701/*-->X*/, 960.9874/*-->Y*/, 24.8828/*-->Z*/, 180.0000/*-->ang*/, 100.0 /*-->hp*/
Jб falei, usa sу (nick,senha); depois usa o udb_UserSetINT()