SA-MP Forums Archive
[AJUDA] Erro no Pawno - ERROR 017 e 029 - 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] Erro no Pawno - ERROR 017 e 029 (/showthread.php?tid=165587)



[AJUDA] Erro no Pawno - ERROR 017 e 029 - leandro123456 - 05.08.2010

Na hora de compilar meu Pawno apontou alguns erros

pawn Код:
C:\Documents and Settings\Leandro novo\Desktop\Server novo\filterscripts\piramede.pwn(336) : warning 217: loose indentation
C:\Documents and Settings\Leandro novo\Desktop\Server novo\filterscripts\piramede.pwn(337) : error 017: undefined symbol "pname"
C:\Documents and Settings\Leandro novo\Desktop\Server novo\filterscripts\piramede.pwn(338) : error 017: undefined symbol "string"
C:\Documents and Settings\Leandro novo\Desktop\Server novo\filterscripts\piramede.pwn(338) : error 017: undefined symbol "string"
C:\Documents and Settings\Leandro novo\Desktop\Server novo\filterscripts\piramede.pwn(338) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Leandro novo\Desktop\Server novo\filterscripts\piramede.pwn(338) : fatal error 107: too many error messages on one line

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


5 Errors.
Os erros estгo nesse codigo.
pawn Код:
if (strcmp("/delegacia", cmdtext, true, 10) == 0)
{
if(IsPlayerInAnyVehicle(playerid))
{
new VehicleID;
VehicleID = GetPlayerVehicleID(playerid);
SetVehiclePos(VehicleID, -959.0239,1944.9492,9.0000);
SetVehicleZAngle(GetPlayerVehicleID(playerid), 0.0);
SetPlayerInterior(playerid,0);
   GameTextForPlayer(playerid,"~w~bem vindo a delegacia...", 3502, 10);
   GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
   format(string, sizeof(string), "%s foi para a DELEGACIA /delegacia", pname);
   SendClientMessageToAll(COR_LARANJA, string);
}
else
{
SetPlayerInterior(playerid,0);
SetPlayerPos(playerid, -959.0239,1944.9492,9.0000);
SetPlayerFacingAngle(playerid,0.0);
return 1;
}
}//
especialmente nessas duas linhas

pawn Код:
GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
   format(string, sizeof(string), "%s foi para a DELEGACIA /delegacia", pname);
Se puderem me ajudar, fico grato.


Re: [AJUDA] Erro no Pawno - ERROR 017 e 029 - [BEP]AcerPilot - 05.08.2010

pawn Код:
new pname;
new string[43];



Re: [AJUDA] Erro no Pawno - ERROR 017 e 029 - leandro123456 - 05.08.2010

Resolveu alguns erros, so sobro 1.

pawn Код:
C:\Documents and Settings\Leandro novo\Desktop\Server novo\filterscripts\piramede.pwn(349) : error 035: argument type mismatch (argument 2)
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


1 Error.
essa e a linha do erro

pawn Код:
if (strcmp("/delegacia", cmdtext, true, 10) == 0)
{
if(IsPlayerInAnyVehicle(playerid))
{
new VehicleID;
VehicleID = GetPlayerVehicleID(playerid);
SetVehiclePos(VehicleID, -959.0239,1944.9492,9.0000);
SetVehicleZAngle(GetPlayerVehicleID(playerid), 0.0);
SetPlayerInterior(playerid,0);
GameTextForPlayer(playerid,"~w~bem vindo a delegacia...", 3502, 10);
GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
format(string, sizeof(string), "%s foi para a DELEGACIA /delegacia", pname);
SendClientMessageToAll(0x33CCFFAA, string);
}
else
{
SetPlayerInterior(playerid,0);
SetPlayerPos(playerid, -959.0239,1944.9492,9.0000);
SetPlayerFacingAngle(playerid,0.0);
return 1;
}
}//
o erro esta na linha 349.

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



Re: [AJUDA] Erro no Pawno - ERROR 017 e 029 - [BEP]AcerPilot - 05.08.2010

pawn Код:
if (strcmp("/delegacia", cmdtext, true, 10) == 0)
{
if(IsPlayerInAnyVehicle(playerid))
{
new pname[MAX_PLAYER_NAME];
new string[43];
new VehicleID;
VehicleID = GetPlayerVehicleID(playerid);
SetVehiclePos(VehicleID, -959.0239,1944.9492,9.0000);
SetVehicleZAngle(GetPlayerVehicleID(playerid), 0.0);
SetPlayerInterior(playerid,0);
GameTextForPlayer(playerid,"~w~bem vindo a delegacia...", 3502, 10);
GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
format(string, sizeof(string), "%s foi para a DELEGACIA /delegacia", pname);
SendClientMessageToAll(0x33CCFFAA, string);
}
else
{
SetPlayerInterior(playerid,0);
SetPlayerPos(playerid, -959.0239,1944.9492,9.0000);
SetPlayerFacingAngle(playerid,0.0);
return 1;
}
}//



Re: [AJUDA] Erro no Pawno - ERROR 017 e 029 - leandro123456 - 05.08.2010

Funciono, obrigado pela ajuda.


Re: [AJUDA] Erro no Pawno - ERROR 017 e 029 - ipsBruno - 05.08.2010

Isso nгo vai funcionar GeoPilot,
Amigo mude para:

pawn Код:
new pname[MAX_PLAYER_NAME];
new string[43];
da Forma que botaste ele nгo teria como armazenar o nome na Array...


Re: [AJUDA] Erro no Pawno - ERROR 017 e 029 - [BEP]AcerPilot - 05.08.2010

Amor corrigi meu erro no 4є post xD
(tomara que o tуpico vб para a 2Є pбgina logo para o Garfield nгo ver...)


Re: [AJUDA] Erro no Pawno - ERROR 017 e 029 - Falcon. - 06.08.2010

Quote:

Amor corrigi meu erro no 4є post xD
(tomara que o tуpico vб para a 2Є pбgina logo para o Garfield nгo ver...)]

kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk..rialto akie