SA-MP Forums Archive
[Ajuda] FS Lhouse ta em Money - 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] FS Lhouse ta em Money (/showthread.php?tid=395319)



FS Lhouse ta em Money - aldair8 - 25.11.2012

Meu FS LHouse ta com os negocios escrito Money
tipo
pawn Код:
if(GetPlayerMoney(playerid) < 15000) return SCM(playerid, ErroCor, "{F90700}[ ERRO ] {FFFFFF}Dinheiro insuficiente.");
Mas meu GM tem antMoney, entao tenho q mudar pra grana
pawn Код:
if(GetPlayerGrana(playerid) < 15000) return SCM(playerid, ErroCor, "{F90700}[ ERRO ] {FFFFFF}Dinheiro insuficiente.");
Mas quando compilo da erros, alguem me ajuda


Re: FS Lhouse ta em Money - Sky™ - 25.11.2012

quais erros?


Respuesta: Re: FS Lhouse ta em Money - aldair8 - 25.11.2012

Quote:
Originally Posted by Sky_.
Посмотреть сообщение
quais erros?
pawn Код:
C:\Documents and Settings\Comp\Desktop\TEST\filterscripts\LHouse.pwn(684) : error 017: undefined symbol "GetPlayerGrana"
C:\Documents and Settings\Comp\Desktop\TEST\filterscripts\LHouse.pwn(685) : error 017: undefined symbol "GivePlayerGrana"
C:\Documents and Settings\Comp\Desktop\TEST\filterscripts\LHouse.pwn(894) : error 017: undefined symbol "GetPlayerGrana"
C:\Documents and Settings\Comp\Desktop\TEST\filterscripts\LHouse.pwn(899) : error 017: undefined symbol "GivePlayerGrana"
C:\Documents and Settings\Comp\Desktop\TEST\filterscripts\LHouse.pwn(906) : error 017: undefined symbol "GetPlayerGrana"
C:\Documents and Settings\Comp\Desktop\TEST\filterscripts\LHouse.pwn(908) : error 017: undefined symbol "GivePlayerGrana"
C:\Documents and Settings\Comp\Desktop\TEST\filterscripts\LHouse.pwn(918) : error 017: undefined symbol "GetPlayerGrana"
C:\Documents and Settings\Comp\Desktop\TEST\filterscripts\LHouse.pwn(920) : error 017: undefined symbol "GivePlayerGrana"
C:\Documents and Settings\Comp\Desktop\TEST\filterscripts\LHouse.pwn(930) : error 017: undefined symbol "GetPlayerGrana"
C:\Documents and Settings\Comp\Desktop\TEST\filterscripts\LHouse.pwn(932) : error 017: undefined symbol "GivePlayerGrana"
C:\Documents and Settings\Comp\Desktop\TEST\filterscripts\LHouse.pwn(942) : error 017: undefined symbol "GetPlayerGrana"
C:\Documents and Settings\Comp\Desktop\TEST\filterscripts\LHouse.pwn(944) : error 017: undefined symbol "GivePlayerGrana"
C:\Documents and Settings\Comp\Desktop\TEST\filterscripts\LHouse.pwn(954) : error 017: undefined symbol "GetPlayerGrana"
C:\Documents and Settings\Comp\Desktop\TEST\filterscripts\LHouse.pwn(956) : error 017: undefined symbol "GivePlayerGrana"
C:\Documents and Settings\Comp\Desktop\TEST\filterscripts\LHouse.pwn(966) : error 017: undefined symbol "GetPlayerGrana"
C:\Documents and Settings\Comp\Desktop\TEST\filterscripts\LHouse.pwn(968) : error 017: undefined symbol "GivePlayerGrana"
C:\Documents and Settings\Comp\Desktop\TEST\filterscripts\LHouse.pwn(978) : error 017: undefined symbol "GetPlayerGrana"
C:\Documents and Settings\Comp\Desktop\TEST\filterscripts\LHouse.pwn(980) : error 017: undefined symbol "GivePlayerGrana"
C:\Documents and Settings\Comp\Desktop\TEST\filterscripts\LHouse.pwn(990) : error 017: undefined symbol "GetPlayerGrana"
C:\Documents and Settings\Comp\Desktop\TEST\filterscripts\LHouse.pwn(992) : error 017: undefined symbol "GivePlayerGrana"
C:\Documents and Settings\Comp\Desktop\TEST\filterscripts\LHouse.pwn(1002) : error 017: undefined symbol "GetPlayerGrana"
C:\Documents and Settings\Comp\Desktop\TEST\filterscripts\LHouse.pwn(1004) : error 017: undefined symbol "GivePlayerGrana"
C:\Documents and Settings\Comp\Desktop\TEST\filterscripts\LHouse.pwn(1014) : error 017: undefined symbol "GetPlayerGrana"
C:\Documents and Settings\Comp\Desktop\TEST\filterscripts\LHouse.pwn(1016) : error 017: undefined symbol "GivePlayerGrana"
C:\Documents and Settings\Comp\Desktop\TEST\filterscripts\LHouse.pwn(1026) : error 017: undefined symbol "GetPlayerGrana"
C:\Documents and Settings\Comp\Desktop\TEST\filterscripts\LHouse.pwn(1028) : error 017: undefined symbol "GivePlayerGrana"

Compilation aborted.Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


26 Errors.



Re: FS Lhouse ta em Money - Sky™ - 25.11.2012

pawn Код:
stock GetPlayerGrana(playerid)
{
    new ammget[128];
    new aname[MAX_PLAYER_NAME];
    GetPlayerName(playerid, aname, MAX_PLAYER_NAME);
    format(ammget, sizeof(ammget), PASTA_CONTAS, aname(playerid));
    return dini_Int(ammget, "Dinheiro");
}
ajuste o PASTA_CONTAS se n ultilizar este modo


Respuesta: Re: FS Lhouse ta em Money - aldair8 - 25.11.2012

Quote:
Originally Posted by Sky_.
Посмотреть сообщение
pawn Код:
stock GetPlayerGrana(playerid)
{
    new ammget[128];
    new aname[MAX_PLAYER_NAME];
    GetPlayerName(playerid, aname, MAX_PLAYER_NAME);
    format(ammget, sizeof(ammget), PASTA_CONTAS, aname(playerid));
    return dini_Int(ammget, "Dinheiro");
}
ajuste o PASTA_CONTAS se n ultilizar este modo
nao entendi Sky, entra no seu msn e me aceita la, ja mandei convite... me ajuda nisso pf


Re: FS Lhouse ta em Money - Sky™ - 25.11.2012

cara sу coloque isso dentro do seu gm fora de qualquer public e se dar erro undefine pasta_contas vc muda para o diretorio das contas do teu sv! to off msn!


Respuesta: Re: FS Lhouse ta em Money - aldair8 - 25.11.2012

Quote:
Originally Posted by Sky_.
Посмотреть сообщение
cara sу coloque isso dentro do seu gm fora de qualquer public e se dar erro undefine pasta_contas vc muda para o diretorio das contas do teu sv! to off msn!
DEU ESSES ERROS
pawn Код:
C:\Documents and Settings\Comp\Desktop\brasil expert\gamemodes\Casa.pwn(24673) : error 012: invalid function call, not a valid address
C:\Documents and Settings\Comp\Desktop\brasil expert\gamemodes\Casa.pwn(24673) : warning 215: expression has no effect
C:\Documents and Settings\Comp\Desktop\brasil expert\gamemodes\Casa.pwn(24673) : error 001: expected token: ";", but found ")"
C:\Documents and Settings\Comp\Desktop\brasil expert\gamemodes\Casa.pwn(24673) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Comp\Desktop\brasil expert\gamemodes\Casa.pwn(24673) : fatal error 107: too many error messages on one line
E O pasta_contas TA CERTO OLHA
pawn Код:
//REGISTRO
#define PASTA_CONTAS        "/Contas/%s.ini"         //Diretуrio onde as contas sгo salvas
#define PASTA_CASAS         "/Casas/%s.ini"         //Diretуrio onde as contas sгo salvas
#define PASTA_PROP          "/Props/%s.ini"         //Diretуrio onde as contas sгo salvas
#define PASTA_CONCE         "/Conce/%s.ini"         //Diretуrio onde as contas sгo salvas
#define PASTA_CLANS         "/Clans/%s.ini"         //Diretуrio onde as contas sгo salvas
#define PASTA_Int           "/Interiores/%s.ini"         //Diretуrio onde as contas sгo salvas
#define MAX_SENHA           16                      //Tamanho mбximo da senha
#define MIN_SENHA           4                       //Tamanho mнnimo da senha
a LINHA Q DEU O ERRO Й ESSA

pawn Код:
format(ammget, sizeof(ammget), PASTA_CONTAS, aname(playerid));
como eu tenho q colocar?


Re: FS Lhouse ta em Money - VenoN - 25.11.2012

eita cara poste o code da linha do erro nгo so a linha mais sim a public ou stock!


Respuesta: FS Lhouse ta em Money - aldair8 - 25.11.2012

alguem me ajuda 8(