if(strcmp(cmd, "/vida", true) == 0)
{
if(IsPlayerConnected(playerid))
{
tmp = strtok(cmdtext, idx);
GetPlayerName(playerid, sendername, sizeof(sendername));
new location = PlayerInfo[playerid][pLocal];
if(!strlen(tmp))
{
if(location != 255)
{
if(location < 99)
{
if(HouseInfo[location][hArm] == 1 && IsACop(playerid))
{
format(string, sizeof(string), "* %s pega seu colete.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
TogglePlayerControllable(playerid, 0);
GetPlayerPos(playerid, Unspec[playerid][sPx], Unspec[playerid][sPy], Unspec[playerid][sPz]);
Unspec[playerid][sPint] = PlayerInfo[playerid][pInt];
Unspec[playerid][sLocal] = PlayerInfo[playerid][pLocal];
SetPlayerPos(playerid,1527.5,-12.1,1002.0);
PlayerInfo[playerid][pLocal] = 255;
SetPlayerInterior(playerid,99);
Spectate[playerid] = 257;
}
else if(HouseInfo[location][hHel] == 1)
{
SetPlayerHealth(playerid,100.0);
PlayerInfo[playerid][pDoenca] = 0;
SetPlayerDrunkLevel (playerid, 0);
PlayerPlaySound(playerid, 1150, 0.0, 0.0, 0.0);
SendClientMessage(playerid, COLOR_LIGHTBLUE,"Vocк foi curado.");
}
else
{
SendClientMessage(playerid, COLOR_GREY,"Este lugar nao tem lugar de se curar.");
}
return 1;
}
else if(location == 101)//Restaurant
{
SetPlayerHealth(playerid,100.0);
SetPlayerArmour(playerid,100.0);
PlayerInfo[playerid][pDoenca] = 0;
SetPlayerDrunkLevel (playerid, 0);
PlayerPlaySound(playerid, 1150, 0.0, 0.0, 0.0);
SendClientMessage(playerid, COLOR_LIGHTBLUE,"Vocк foi curado.");
}
else if(location == 102 && IsACop(playerid))//Police Armorry
{
SetPlayerHealth(playerid,100.0);
format(string, sizeof(string), "* %s Foi Curado.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
TogglePlayerControllable(playerid, 0);
GetPlayerPos(playerid, Unspec[playerid][sPx], Unspec[playerid][sPy], Unspec[playerid][sPz]);
Unspec[playerid][sPint] = PlayerInfo[playerid][pInt];
Unspec[playerid][sLocal] = PlayerInfo[playerid][pLocal];
SetPlayerPos(playerid,1527.5,-12.1,1002.0);
PlayerInfo[playerid][pLocal] = 255;
SetPlayerInterior(playerid,99);
Spectate[playerid] = 257;
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD2, "USE: /vida [id] [preзo]");
return 1;
}
}
giveplayerid = ReturnUser(tmp);
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "USE: /vida [id] [price]");
return 1;
}
moneys = strval(tmp);
if(moneys < 1 || moneys > 5000) { SendClientMessage(playerid, COLOR_GREY, " O Preзo nгo pode passar de 5000 !"); return 1; }
if (giveplayerid == playerid)
{
SendClientMessage(playerid, COLOR_GRAD1, " Vocк nгo pode se curar!");
return 1;
}
if (IsPlayerConnected(giveplayerid))
{
if(giveplayerid != INVALID_PLAYER_ID)
{
GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
if(gTeam[playerid] == TEAM_CYAN||PlayerInfo[playerid][pMembro]==4||PlayerInfo[playerid][pLider]==4)//model
{
new Veh = GetPlayerVehicleID(playerid);
if(IsAnAmBPSanceCar(Veh))
{
format(string, sizeof(string), "~y~Voce foi curado ~n~~w~%s~n~~g~R$%d", giveplayer,moneys);
GameTextForPlayer(playerid, string, 5000, 1);
GivePlayerMoney(playerid,moneys);
GivePlayerMoney(giveplayerid,-moneys);
new hp = 0;
if(PlayerInfo[playerid][pPainPerk] > 0)
{
hp = 20 * PlayerInfo[playerid][pPainPerk]; hp += 100;
SetPlayerHealth(giveplayerid, hp);
}
else
{
hp = 100;
SetPlayerHealth(giveplayerid, 100);
PlayerInfo[giveplayerid][pDoenca] = 0;
}
new colete = 0;
if(PlayerInfo[playerid][pPainPerk] > 0)
{
colete = 0 * PlayerInfo[playerid][pPainPerk]; colete += 100;
SetPlayerArmour(giveplayerid, colete);
}
else
{
colete = 100;
SetPlayerArmour(giveplayerid, 100);
PlayerInfo[giveplayerid][pDoenca] = 0;
}
PlayerPlaySound(playerid, 1150, 0.0, 0.0, 0.0);
PlayerPlaySound(giveplayerid, 1150, 0.0, 0.0, 0.0);
format(string, sizeof(string), "Vocк foi curado, %d de saude e %d de colete por -R$%d",hp,colete,moneys);
SendClientMessage(giveplayerid, COLOR_LIGHTBLUE,string);
if(PlayerInfo[giveplayerid][pDoenca] > 0)
{
PlayerInfo[giveplayerid][pDoenca] = 0;
SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, "* Vocк nгo estб infectado com nenhuma doenзa, por causa de cuidados medicos!");
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, " Vocкs dois precisam estar no veнculo!");
return 1;
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, "Vocк nгo estб autorizado a usar o comando!");
return 1;
}
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, " Esse jogador estб offline");
}
}
return 1;
}
if(strcmp(cmd, "/vida", true) == 0) { if(IsPlayerConnected(playerid)) { GetPlayerName(playerid, sendername, sizeof(sendername)); new location = PlayerInfo[playerid][pLocal]; if(!strlen(tmp)) { if(location != 255) { if(location < 99) { if(HouseInfo[location][hArm] == 1 && IsACop(playerid)) { SetPlayerHealth(playerid, 100); SetPlayerArmour(playerid, 100); format(string, sizeof(string), "* %s pega seu colete e a vida.", sendername); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); TogglePlayerControllable(playerid, 0); GetPlayerPos(playerid, Unspec[playerid][sPx], Unspec[playerid][sPy], Unspec[playerid][sPz]); Unspec[playerid][sPint] = PlayerInfo[playerid][pInt]; Unspec[playerid][sLocal] = PlayerInfo[playerid][pLocal]; SetPlayerPos(playerid,1527.5,-12.1,1002.0); PlayerInfo[playerid][pLocal] = 255; SetPlayerInterior(playerid,99); Spectate[playerid] = 257; } else { SendClientMessage(playerid, COLOR_GREY,"Este lugar nao tem lugar de se curar."); } } } } } } return 1; }
if(strcmp(cmd, "/vida", true) == 0)
{
if(IsPlayerConnected(playerid))
{
tmp = strtok(cmdtext, idx);
GetPlayerName(playerid, sendername, sizeof(sendername));
new location = PlayerInfo[playerid][pLocal];
if(!strlen(tmp))
{
if(location != 255)
{
if(location < 99)
{
if(HouseInfo[location][hArm] == 1 && IsACop(playerid))
{
format(string, sizeof(string), "* %s pega seu colete.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
TogglePlayerControllable(playerid, 0);
GetPlayerPos(playerid, Unspec[playerid][sPx], Unspec[playerid][sPy], Unspec[playerid][sPz]);
Unspec[playerid][sPint] = PlayerInfo[playerid][pInt];
Unspec[playerid][sLocal] = PlayerInfo[playerid][pLocal];
SetPlayerPos(playerid,1527.5,-12.1,1002.0);
PlayerInfo[playerid][pLocal] = 255;
SetPlayerInterior(playerid,99);
Spectate[playerid] = 257;
}
else if(HouseInfo[location][hHel] == 1)
{
SetPlayerArmour(playerid, 100.0);
SetPlayerHealth(playerid,100.0);
PlayerInfo[playerid][pDoenca] = 0;
SetPlayerDrunkLevel (playerid, 0);
PlayerPlaySound(playerid, 1150, 0.0, 0.0, 0.0);
SendClientMessage(playerid, COLOR_LIGHTBLUE,"Vocк foi curado.");
}
else
{
SendClientMessage(playerid, COLOR_GREY,"Este lugar nao tem lugar de se curar.");
}
return 1;
}
else if(location == 101)//Restaurant
{
SetPlayerHealth(playerid,100.0);
SetPlayerArmour(playerid,100.0);
PlayerInfo[playerid][pDoenca] = 0;
SetPlayerDrunkLevel (playerid, 0);
PlayerPlaySound(playerid, 1150, 0.0, 0.0, 0.0);
SendClientMessage(playerid, COLOR_LIGHTBLUE,"Vocк foi curado.");
}
else if(location == 102 && IsACop(playerid))//Police Armorry
{
SetPlayerArmor(playerid, 100.0);
SetPlayerHealth(playerid,100.0);
format(string, sizeof(string), "* %s Foi Curado.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
TogglePlayerControllable(playerid, 0);
GetPlayerPos(playerid, Unspec[playerid][sPx], Unspec[playerid][sPy], Unspec[playerid][sPz]);
Unspec[playerid][sPint] = PlayerInfo[playerid][pInt];
Unspec[playerid][sLocal] = PlayerInfo[playerid][pLocal];
SetPlayerPos(playerid,1527.5,-12.1,1002.0);
PlayerInfo[playerid][pLocal] = 255;
SetPlayerInterior(playerid,99);
Spectate[playerid] = 257;
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD2, "USE: /vida [id] [preзo]");
return 1;
}
}
giveplayerid = ReturnUser(tmp);
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "USE: /vida [id] [price]");
return 1;
}
moneys = strval(tmp);
if(moneys < 1 || moneys > 5000) { SendClientMessage(playerid, COLOR_GREY, " O Preзo nгo pode passar de 5000 !"); return 1; }
if (giveplayerid == playerid)
{
SendClientMessage(playerid, COLOR_GRAD1, " Vocк nгo pode se curar!");
return 1;
}
if (IsPlayerConnected(giveplayerid))
{
if(giveplayerid != INVALID_PLAYER_ID)
{
GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
if(gTeam[playerid] == TEAM_CYAN||PlayerInfo[playerid][pMembro]==4||PlayerInfo[playerid][pLider]==4)//model
{
new Veh = GetPlayerVehicleID(playerid);
if(IsAnAmBPSanceCar(Veh))
{
format(string, sizeof(string), "~y~Voce foi curado ~n~~w~%s~n~~g~R$%d", giveplayer,moneys);
GameTextForPlayer(playerid, string, 5000, 1);
GivePlayerMoney(playerid,moneys);
GivePlayerMoney(giveplayerid,-moneys);
new hp = 0;
if(PlayerInfo[playerid][pPainPerk] > 0)
{
hp = 20 * PlayerInfo[playerid][pPainPerk]; hp += 100;
SetPlayerHealth(giveplayerid, hp);
}
else
{
SetPlayerArmor(playerid, 100.0);
SetPlayerHealth(giveplayerid, 100);
PlayerInfo[giveplayerid][pDoenca] = 0;
}
new colete = 0;
if(PlayerInfo[playerid][pPainPerk] > 0)
{
colete = 0 * PlayerInfo[playerid][pPainPerk]; colete += 100;
SetPlayerArmour(giveplayerid, colete);
}
else
{
colete = 100;
SetPlayerArmour(giveplayerid, 100);
PlayerInfo[giveplayerid][pDoenca] = 0;
}
PlayerPlaySound(playerid, 1150, 0.0, 0.0, 0.0);
PlayerPlaySound(giveplayerid, 1150, 0.0, 0.0, 0.0);
format(string, sizeof(string), "Vocк foi curado, %d de saude e %d de colete por -R$%d",hp,colete,moneys);
SendClientMessage(giveplayerid, COLOR_LIGHTBLUE,string);
if(PlayerInfo[giveplayerid][pDoenca] > 0)
{
PlayerInfo[giveplayerid][pDoenca] = 0;
SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, "* Vocк nгo estб infectado com nenhuma doenзa, por causa de cuidados medicos!");
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, " Vocкs dois precisam estar no veнculo!");
return 1;
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, "Vocк nгo estб autorizado a usar o comando!");
return 1;
}
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, " Esse jogador estб offline");
}
}
return 1;
}
C:\Program Files (x86)\Pawno\include\dutils.inc(45) : warning 219: local variable "hour" shadows a variable at a preceding level
C:\Program Files (x86)\Pawno\include\dutils.inc(45) : warning 219: local variable "minute" shadows a variable at a preceding level
C:\Program Files (x86)\Pawno\include\dutils.inc(45) : warning 219: local variable "second" shadows a variable at a preceding level
C:\Program Files (x86)\Pawno\include\dutils.inc(45) : warning 219: local variable "day" shadows a variable at a preceding level
C:\Program Files (x86)\Pawno\include\dutils.inc(45) : warning 219: local variable "month" shadows a variable at a preceding level
C:\Program Files (x86)\Pawno\include\dutils.inc(45) : warning 219: local variable "year" shadows a variable at a preceding level
C:\Program Files (x86)\Pawno\include\servermoneyGM.inc(16) : error 004: function "GMExit" is not implemented
C:\Program Files (x86)\Pawno\include\servermoneyGM.inc(47) : error 004: function "OnPlayerHaveExtraCash" is not implemented
C:\Users\Junior.Rodrigo-PC\Documents\Brasil Play Script\gamemodes\BGOE.pwn(941) : error 004: function "SaveCars" is not implemented
C:\Users\Junior.Rodrigo-PC\Documents\Brasil Play Script\gamemodes\BGOE.pwn(3336) : error 017: undefined symbol "IsPlayerInCircle"
C:\Users\Junior.Rodrigo-PC\Documents\Brasil Play Script\gamemodes\BGOE.pwn(3322) : warning 203: symbol is never used: "radius"
C:\Users\Junior.Rodrigo-PC\Documents\Brasil Play Script\gamemodes\BGOE.pwn(3489) : error 017: undefined symbol "ResetPlayerWeaponsEx"
C:\Users\Junior.Rodrigo-PC\Documents\Brasil Play Script\gamemodes\BGOE.pwn(3535) : error 017: undefined symbol "ResetPlayerWeaponsEx"
C:\Users\Junior.Rodrigo-PC\Documents\Brasil Play Script\gamemodes\BGOE.pwn(4307) : error 004: function "ClearChatbox" is not implemented
C:\Users\Junior.Rodrigo-PC\Documents\Brasil Play Script\gamemodes\BGOE.pwn(5036) : error 017: undefined symbol "IsNumero"
C:\Users\Junior.Rodrigo-PC\Documents\Brasil Play Script\gamemodes\BGOE.pwn(5056) : error 017: undefined symbol "IsNumero"
C:\Users\Junior.Rodrigo-PC\Documents\Brasil Play Script\gamemodes\BGOE.pwn(5083) : error 017: undefined symbol "IsNumero"
C:\Users\Junior.Rodrigo-PC\Documents\Brasil Play Script\gamemodes\BGOE.pwn(5101) : error 017: undefined symbol "IsNumero"
C:\Users\Junior.Rodrigo-PC\Documents\Brasil Play Script\gamemodes\BGOE.pwn(5564) : error 017: undefined symbol "IsNumero"
C:\Users\Junior.Rodrigo-PC\Documents\Brasil Play Script\gamemodes\BGOE.pwn(5606) : error 017: undefined symbol "IsNumero"
C:\Users\Junior.Rodrigo-PC\Documents\Brasil Play Script\gamemodes\BGOE.pwn(5648) : error 017: undefined symbol "IsNumero"
C:\Users\Junior.Rodrigo-PC\Documents\Brasil Play Script\gamemodes\BGOE.pwn(5690) : error 017: undefined symbol "IsNumero"
C:\Users\Junior.Rodrigo-PC\Documents\Brasil Play Script\gamemodes\BGOE.pwn(5719) : error 017: undefined symbol "IsNumero"
C:\Users\Junior.Rodrigo-PC\Documents\Brasil Play Script\gamemodes\BGOE.pwn(5748) : error 017: undefined symbol "IsNumero"
C:\Users\Junior.Rodrigo-PC\Documents\Brasil Play Script\gamemodes\BGOE.pwn(5777) : error 017: undefined symbol "IsNumero"
C:\Users\Junior.Rodrigo-PC\Documents\Brasil Play Script\gamemodes\BGOE.pwn(5806) : error 017: undefined symbol "IsNumero"
C:\Users\Junior.Rodrigo-PC\Documents\Brasil Play Script\gamemodes\BGOE.pwn(5835) : error 017: undefined symbol "IsNumero"
C:\Users\Junior.Rodrigo-PC\Documents\Brasil Play Script\gamemodes\BGOE.pwn(5883) : error 017: undefined symbol "IsNumero"
C:\Users\Junior.Rodrigo-PC\Documents\Brasil Play Script\gamemodes\BGOE.pwn(5912) : error 017: undefined symbol "IsNumero"
C:\Users\Junior.Rodrigo-PC\Documents\Brasil Play Script\gamemodes\BGOE.pwn(5963) : error 017: undefined symbol "IsNumero"
C:\Users\Junior.Rodrigo-PC\Documents\Brasil Play Script\gamemodes\BGOE.pwn(5996) : error 017: undefined symbol "GetPlayerOrg"
C:\Users\Junior.Rodrigo-PC\Documents\Brasil Play Script\gamemodes\BGOE.pwn(6037) : error 017: undefined symbol "GetPlayerOrg"
C:\Users\Junior.Rodrigo-PC\Documents\Brasil Play Script\gamemodes\BGOE.pwn(6054) : error 017: undefined symbol "GetPlayerOrg"
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
26 Errors.
C:\Program Files (x86)\Pawno\include\dutils.inc(45) : warning 219: local variable "hour" shadows a variable at a preceding level
C:\Program Files (x86)\Pawno\include\dutils.inc(45) : warning 219: local variable "minute" shadows a variable at a preceding level
C:\Program Files (x86)\Pawno\include\dutils.inc(45) : warning 219: local variable "second" shadows a variable at a preceding level
C:\Program Files (x86)\Pawno\include\dutils.inc(45) : warning 219: local variable "day" shadows a variable at a preceding level
C:\Program Files (x86)\Pawno\include\dutils.inc(45) : warning 219: local variable "month" shadows a variable at a preceding level
C:\Program Files (x86)\Pawno\include\dutils.inc(45) : warning 219: local variable "year" shadows a variable at a preceding level
C:\Users\Junior.Rodrigo-PC\Documents\Brasil Play Script\gamemodes\BGOE.pwn(26732) : warning 219: local variable "mod" shadows a variable at a preceding level
C:\Users\Junior.Rodrigo-PC\Documents\Brasil Play Script\gamemodes\BGOE.pwn(33558) : error 017: undefined symbol "SetPlayerArmor"
C:\Users\Junior.Rodrigo-PC\Documents\Brasil Play Script\gamemodes\BGOE.pwn(33615) : error 017: undefined symbol "SetPlayerArmor"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
2 Errors.
C:\Program Files (x86)\Pawno\include\dutils.inc(45) : warning 219: local variable "hour" shadows a variable at a preceding level
C:\Program Files (x86)\Pawno\include\dutils.inc(45) : warning 219: local variable "minute" shadows a variable at a preceding level
C:\Program Files (x86)\Pawno\include\dutils.inc(45) : warning 219: local variable "second" shadows a variable at a preceding level
C:\Program Files (x86)\Pawno\include\dutils.inc(45) : warning 219: local variable "day" shadows a variable at a preceding level
C:\Program Files (x86)\Pawno\include\dutils.inc(45) : warning 219: local variable "month" shadows a variable at a preceding level
C:\Program Files (x86)\Pawno\include\dutils.inc(45) : warning 219: local variable "year" shadows a variable at a preceding level
pawn Код:
|
Faltando includes, e variбveis indefinidas .
@Off: Desativa o teu Sorvete ![]() ![]() |