24.12.2011, 19:12
Erro:
Linha:
pawn Код:
D:\Desktop\Brasil Teste\gamemodes\BMG.pwn(19780) : warning 217: loose indentation
D:\Desktop\Brasil Teste\gamemodes\BMG.pwn(19798) : error 017: undefined symbol "vPRFLock"
D:\Desktop\Brasil Teste\gamemodes\BMG.pwn(19809) : warning 217: loose indentation
D:\Desktop\Brasil Teste\gamemodes\BMG.pwn(19831) : error 017: undefined symbol "vPRFLock"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
2 Errors.
pawn Код:
if(strcmp(cmd, "/apreendercarro", true) == 0)
{
if(IsPlayerConnected(playerid))
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "USO: /apreendercarro [carid]");
return 1;
}
if(PlayerInfo[playerid][pMembro] != 1 || PlayerInfo[playerid][pLider] != 1)
{
SendClientMessage(playerid, COLOR_RED, "[Erro] Vocк nгo estб autorizado a usar este comando.");
return 1;
}
else
{
new carid = strval(tmp);
CarInfo[carid][vPRFLock] = 1;
for(new i = 0; i < MAX_PLAYERS; i++)
{
SetVehicleParamsForPlayer(carid, i, 0, 1);
}
SendClientMessage(playerid, COLOR_WHITE, "[Info] Veнculo apreendido.");
}
}
return 1;
}
if(strcmp(cmd, "/liberarcarro", true) == 0)
{
if(IsPlayerConnected(playerid))
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "USO: /liberarcarro [carid]");
return 1;
}
if(PlayerInfo[playerid][pMembro] != 1 || PlayerInfo[playerid][pLider] != 1)
{
SendClientMessage(playerid, COLOR_RED, "[Erro] Vocк nгo estб autorizado a usar este comando.");
return 1;
}
else
{
new carid = strval(tmp);
for(new i = 0; i < MAX_PLAYERS; i++)
{
SetVehicleParamsForPlayer(carid, i, 0, 0);
}
CarInfo[carid][vPRFLock] = 0;
SendClientMessage(playerid, COLOR_WHITE, "[Info] Veнculo liberado.");
}
}
return 1;
}