05.08.2010, 13:12
Na hora de compilar meu Pawno apontou alguns erros
Os erros estгo nesse codigo.
especialmente nessas duas linhas
Se puderem me ajudar, fico grato.
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.
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;
}
}//
pawn Код:
GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
format(string, sizeof(string), "%s foi para a DELEGACIA /delegacia", pname);