22.12.2012, 03:09
me ajuda ai
C:\Users\ryan\Documents\Meus arquivos recebidos\Nova pasta\Game_Mode SP Vida RPG By Daniel\gamemodes\SPG.pwn(45446) : warning 217: loose indentation
C:\Users\ryan\Documents\Meus arquivos recebidos\Nova pasta\Game_Mode SP Vida RPG By Daniel\gamemodes\SPG.pwn(4549 : error 029: invalid expression, assumed zero
C:\Users\ryan\Documents\Meus arquivos recebidos\Nova pasta\Game_Mode SP Vida RPG By Daniel\gamemodes\SPG.pwn(4549 : warning 215: expression has no effect
C:\Users\ryan\Documents\Meus arquivos recebidos\Nova pasta\Game_Mode SP Vida RPG By Daniel\gamemodes\SPG.pwn(4549 : error 001: expected token: ";", but found "]"
C:\Users\ryan\Documents\Meus arquivos recebidos\Nova pasta\Game_Mode SP Vida RPG By Daniel\gamemodes\SPG.pwn(4549 : error 029: invalid expression, assumed zero
C:\Users\ryan\Documents\Meus arquivos recebidos\Nova pasta\Game_Mode SP Vida RPG By Daniel\gamemodes\SPG.pwn(4549 : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
4 Errors.
codigo
if(strcmp(cmd, "/algemar", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(!IsACop(playerid))
{
SendClientMessage(playerid, COLOR_GREY, " Vocк nгo й um policial!");
return 1;
}
if(OnDuty[playerid] != 1)
{
SendClientMessage(playerid, COLOR_GREY, " Vocк nгo Bateu o cartгo!");
return 1;
}
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_WHITE, "Use: /algemar [id]");
return 1;
}
giveplayerid = ReturnUser(tmp);
if(IsPlayerConnected(giveplayerid))
{
if(giveplayerid != INVALID_PLAYER_ID)
{
if(gTeam[giveplayerid] == 2 || IsACop(giveplayerid))
{
SendClientMessage(playerid, COLOR_GREY, " Vocк nгo pode algemar COPs !");
return 1;
}
if(PlayerCuffed[giveplayerid] > 0)
{
SendClientMessage(playerid, COLOR_GREY, " O Jogador jб esta algemado !");
return 1;
}
if (ProxDetectorS(8.0, playerid, giveplayerid))
{
//new car = GetPlayerVehicleID(playerid);
if(giveplayerid == playerid) { SendClientMessage(playerid, COLOR_GREY, "Vocк nao pode se algemar!"); return 1; }
//if(IsPlayerInAnyVehicle(playerid) && GetPlayerState(playerid) == 2 && IsPlayerInVehicle(giveplayerid, car))
{
GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* Vocк foi algemado pelo: %s.", sendername);
SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
format(string, sizeof(string), "* Vocк algemou %s.", giveplayer);
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
format(string, sizeof(string), "* %s Algemou %s, para nao fugir.", sendername ,giveplayer);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPL E,COLOR_PURPLE);
GameTextForPlayer(giveplayerid, "~r~Algemado", 2500, 3);
TogglePlayerControllable(giveplayerid, 0);
PlayerCuffed[giveplayerid] = 2;
PlayerInfo[giveplayerid][pMuted] = 1;
SetPlayerAttachedObject(giveplayerid, 4, 19418, 6, -0.031999, 0.024000, -0.024000, -7.900000, -32.000011, -72.299987, 1.115998, 1.322000, 1.406000);
for(new i = 0; i < MAX_PLAYERS; i++)
{
return SetPlayerSpecialAction(giveplayerid, SPECIAL_ACTION_CUFFED);
}
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, " O Jogador estб longe de Vocк !");
return 1;
}
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, " O Jogador Estб Offline !");
return 1;
}
}
return 1;
}
C:\Users\ryan\Documents\Meus arquivos recebidos\Nova pasta\Game_Mode SP Vida RPG By Daniel\gamemodes\SPG.pwn(45446) : warning 217: loose indentation
C:\Users\ryan\Documents\Meus arquivos recebidos\Nova pasta\Game_Mode SP Vida RPG By Daniel\gamemodes\SPG.pwn(4549 : error 029: invalid expression, assumed zero
C:\Users\ryan\Documents\Meus arquivos recebidos\Nova pasta\Game_Mode SP Vida RPG By Daniel\gamemodes\SPG.pwn(4549 : warning 215: expression has no effect
C:\Users\ryan\Documents\Meus arquivos recebidos\Nova pasta\Game_Mode SP Vida RPG By Daniel\gamemodes\SPG.pwn(4549 : error 001: expected token: ";", but found "]"
C:\Users\ryan\Documents\Meus arquivos recebidos\Nova pasta\Game_Mode SP Vida RPG By Daniel\gamemodes\SPG.pwn(4549 : error 029: invalid expression, assumed zero
C:\Users\ryan\Documents\Meus arquivos recebidos\Nova pasta\Game_Mode SP Vida RPG By Daniel\gamemodes\SPG.pwn(4549 : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
4 Errors.
codigo
if(strcmp(cmd, "/algemar", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(!IsACop(playerid))
{
SendClientMessage(playerid, COLOR_GREY, " Vocк nгo й um policial!");
return 1;
}
if(OnDuty[playerid] != 1)
{
SendClientMessage(playerid, COLOR_GREY, " Vocк nгo Bateu o cartгo!");
return 1;
}
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_WHITE, "Use: /algemar [id]");
return 1;
}
giveplayerid = ReturnUser(tmp);
if(IsPlayerConnected(giveplayerid))
{
if(giveplayerid != INVALID_PLAYER_ID)
{
if(gTeam[giveplayerid] == 2 || IsACop(giveplayerid))
{
SendClientMessage(playerid, COLOR_GREY, " Vocк nгo pode algemar COPs !");
return 1;
}
if(PlayerCuffed[giveplayerid] > 0)
{
SendClientMessage(playerid, COLOR_GREY, " O Jogador jб esta algemado !");
return 1;
}
if (ProxDetectorS(8.0, playerid, giveplayerid))
{
//new car = GetPlayerVehicleID(playerid);
if(giveplayerid == playerid) { SendClientMessage(playerid, COLOR_GREY, "Vocк nao pode se algemar!"); return 1; }
//if(IsPlayerInAnyVehicle(playerid) && GetPlayerState(playerid) == 2 && IsPlayerInVehicle(giveplayerid, car))
{
GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* Vocк foi algemado pelo: %s.", sendername);
SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
format(string, sizeof(string), "* Vocк algemou %s.", giveplayer);
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
format(string, sizeof(string), "* %s Algemou %s, para nao fugir.", sendername ,giveplayer);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPL E,COLOR_PURPLE);
GameTextForPlayer(giveplayerid, "~r~Algemado", 2500, 3);
TogglePlayerControllable(giveplayerid, 0);
PlayerCuffed[giveplayerid] = 2;
PlayerInfo[giveplayerid][pMuted] = 1;
SetPlayerAttachedObject(giveplayerid, 4, 19418, 6, -0.031999, 0.024000, -0.024000, -7.900000, -32.000011, -72.299987, 1.115998, 1.322000, 1.406000);
for(new i = 0; i < MAX_PLAYERS; i++)
{
return SetPlayerSpecialAction(giveplayerid, SPECIAL_ACTION_CUFFED);
}
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, " O Jogador estб longe de Vocк !");
return 1;
}
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, " O Jogador Estб Offline !");
return 1;
}
}
return 1;
}