SA-MP Forums Archive
[PEDIDO] ALGEM RESOLVE OS ERROR DAQUI ? - 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: [PEDIDO] ALGEM RESOLVE OS ERROR DAQUI ? (/showthread.php?tid=211370)



[PEDIDO] ALGEM RESOLVE OS ERROR DAQUI ? - @ReeF - 15.01.2011

Код:
C:\Documents and Settings\Casa\Desktop\Marvin\GTA San Andreas\[LSD]\tunarmenu.pwn(2288) : warning 217: loose indentation
C:\Documents and Settings\Casa\Desktop\Marvin\GTA San Andreas\[LSD]\tunarmenu.pwn(2288) : error 017: undefined symbol "current"
C:\Documents and Settings\Casa\Desktop\Marvin\GTA San Andreas\[LSD]\tunarmenu.pwn(2294) : warning 217: loose indentation
C:\Documents and Settings\Casa\Desktop\Marvin\GTA San Andreas\[LSD]\tunarmenu.pwn(2418) : warning 217: loose indentation
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
linhas
Код:
2288:    if(current == Neon)
Код:
2294:         SetPVarInt(playerid, "neon", CreateObject(18648,0,0,0,0,0,0));
Код:
2418: 	if(Current == Hydraulics) {



Re: [PEDIDO] ALGEM RESOLVE OS ERROR DAQUI ? - Dark.Angel - 15.01.2011

Vou tentar ajudar :

Primeiro erro da linha 2288 coloca
pawn Код:
new current;
Agora esses loose indentation
se nгo estou enganado й falta de espaзos nos comandos...

Olha isso que vai te ajudar : https://sampforum.blast.hk/showthread.php?tid=170773


Re: [PEDIDO] ALGEM RESOLVE OS ERROR DAQUI ? - pomogames - 15.01.2011

Tenta isso daqui!
pawn Код:
if(strcmp(current,"Neon", true) ==  0)
{
SetPVarInt(playerid, current, CreateObject(18648,0,0,0,0,0,0));
pawn Код:
if(strcmp(current,"Hydraulics", true) == 0)
{
SetPVarInt(playerid, current, CreateObject(18648,0,0,0,0,0,0));



Re: [PEDIDO] ALGEM RESOLVE OS ERROR DAQUI ? - vinewood - 15.01.2011

pawn Код:
if(strcmp(current,"Hydraulics", true) == 0)
{
if(isnull(GetPVarInt(playerid,current)))
{
SetPVarInt(playerid, current, CreateObject(18648,0,0,0,0,0,0));
}
else
{
DestroyObject(GetPVarInt(playerid,current));
SetPVarInt(playerid, current, CreateObject(18648,0,0,0,0,0,0));
}