1є - gamemodes\testenovoinfohqbugadaaaaaao.pwn(1750) : error 004: function "OnPropUpdate" is not implemented 2є - gamemodes\testenovoinfohqbugadaaaaaao.pwn(1751) : error 004: function "SaveIRC" is not implemented 3є - gamemodes\testenovoinfohqbugadaaaaaao.pwn(1752) : error 004: function "SaveBoxer" is not implemented
public SendMensagens()
{
new string[265];
new random1 = random(sizeof(Mensagens));
new random2 = random(sizeof(Cores));
format(string, sizeof(string), "%s", Mensagens[random1]);
SendClientMessageToAll(Cores[random2],string);
1є - OnPropUpdate();
2є - SaveIRC();
3є - SaveBoxer();
return 1;
}
4є - gamemodes\testenovoinfohqbugadaaaaaao.pwn(3246) : error 017: undefined symbol "GivePlayerMoneyEx" 5є - gamemodes\testenovoinfohqbugadaaaaaao.pwn(3271) : error 017: undefined symbol "IsPlayerInBanco"
public GuerraCassino(playerid)
{
if(ProvocoCassino[playerid] == 1)
{
if(IsPlayerInCassino(playerid))
{
SendClientMessage(playerid, COLOR_GRAD1, "Voce conseguiu retirar 10000 reais de dentro do cofre , fuja logo , a policia deve estar chegando.");
4є - GivePlayerMoneyEx(playerid,10000);
Dominando[playerid] = 0;
ProvocoCassino[playerid] = 0;
GuerranoCassino = 0;
KillTimer(TempoGuerraCassino);
roubandocassino = 1;
SetTimer("Resetcassino", 240000, false);
return 1;
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, "Vocк nгo estб no Cassino.");
Dominando[playerid] = 0;
ProvocoCassino[playerid] = 0;
GuerranoCassino = 0;
KillTimer(TempoGuerraCassino);
return 1;
}
}
return 1;
}
public GuerraBanco(playerid)
{
if(ProvocoBanco[playerid] == 1)
{
5є - if(IsPlayerInBanco(playerid) || PlayerToPoint(30.0,playerid, 1463.4691,-1021.1994,24.0486))
{
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid,2617.2053,-2226.7927,13.3813,8.0);
SendClientMessage(playerid, COLOR_YELLOW, "O carro forte foi carregado com o dinheiro do assalto, leve o carro forte atй a marca vermelha no mapa");
Dominando[playerid] = 0;
PodePegar2[playerid] = 1;
ProvocoBanco[playerid] = 0;
GuerranoBanco = 0;
KillTimer(TempoGuerraBanco);
return 1;
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, "Vocк nгo estб no Banco.");
Dominando[playerid] = 0;
ProvocoBanco[playerid] = 0;
GuerranoBanco = 0;
roubandobanco = 0;
KillTimer(TempoGuerraBanco);
return 1;
}
}
return 1;
}
1є - gamemodes\testenovoinfohqbugadaaaaaao.pwn(1750) : error 004: function "OnPropUpdate" is not implemented 2є - gamemodes\testenovoinfohqbugadaaaaaao.pwn(1751) : error 004: function "SaveIRC" is not implemented 3є - gamemodes\testenovoinfohqbugadaaaaaao.pwn(1752) : error 004: function "SaveBoxer" is not implemented
forward OnPropUpdate(/*alguma coisa aqui, que eu nгo sei o que й*/);
forward SaveIRC(/*alguma coisa aqui, que eu nгo sei o que й*/);
forward SaveBoxer(/*alguma coisa aqui, que eu nгo sei o que й*/);
4є - gamemodes\testenovoinfohqbugadaaaaaao.pwn(3246) : error 017: undefined symbol "GivePlayerMoneyEx" 5є - gamemodes\testenovoinfohqbugadaaaaaao.pwn(3271) : error 017: undefined symbol "IsPlayerInBanco"
|
Originally Posted by Xpectro
testenovoinfohqbugadaaaaaao
|
.
:OnPropUpdate SaveIRC SaveBoxer
GivePlayerMoneyEx IsPlayerInBanco
://Exemplos de cуdigos criadores de funзхes:
Exemplo1()
{
return 1;
}
stock Exemplo2()
{
return 1;
}
forward Exemplo3();
public Exemplo3()
{
return 1;
}
.
public OnPropUpdate()
{
new idx;
new File: file2;
while (idx < sizeof(HouseInfo))
{
new coordsstring[256];
format(coordsstring, sizeof(coordsstring), "%f,%f,%f,%f,%f,%f,%d,%d,%d,%d,%d,%d,%s,%s,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d\n",
HouseInfo[idx][hEntrancex],
HouseInfo[idx][hEntrancey],
HouseInfo[idx][hEntrancez],
HouseInfo[idx][hExitx],
HouseInfo[idx][hExity],
HouseInfo[idx][hExitz],
HouseInfo[idx][hHealthx],
HouseInfo[idx][hHealthy],
HouseInfo[idx][hHealthz],
HouseInfo[idx][hArmorrx],
HouseInfo[idx][hArmorry],
HouseInfo[idx][hArmorrz],
HouseInfo[idx][hOwner],
HouseInfo[idx][hDiscription],
HouseInfo[idx][hValue],
HouseInfo[idx][hHel],
HouseInfo[idx][hArm],
HouseInfo[idx][hInt],
HouseInfo[idx][hLock],
HouseInfo[idx][hOwned],
HouseInfo[idx][hRooms],
HouseInfo[idx][hRent],
HouseInfo[idx][hRentabil],
HouseInfo[idx][hTakings],
HouseInfo[idx][hVec],
HouseInfo[idx][hVcol1],
HouseInfo[idx][hVcol2],
HouseInfo[idx][hDate],
HouseInfo[idx][hLevel]);
if(idx == 0)
{
file2 = fopen("Arquivos/property.cfg", io_write);
}
else
{
file2 = fopen("Arquivos/property.cfg", io_append);
}
fwrite(file2, coordsstring);
idx++;
fclose(file2);
}
idx = 0;
while (idx < sizeof(BizzInfo))
{
new coordsstring[256];
format(coordsstring, sizeof(coordsstring), "%d|%s|%s|%s|%f|%f|%f|%f|%f|%f|%d|%d|%d|%d|%d|%d|%d|%d|%d\n",
BizzInfo[idx][bOwned],
BizzInfo[idx][bOwner],
BizzInfo[idx][bMessage],
BizzInfo[idx][bExtortion],
BizzInfo[idx][bEntranceX],
BizzInfo[idx][bEntranceY],
BizzInfo[idx][bEntranceZ],
BizzInfo[idx][bExitX],
BizzInfo[idx][bExitY],
BizzInfo[idx][bExitZ],
BizzInfo[idx][bLevelNeeded],
BizzInfo[idx][bBuyPrice],
BizzInfo[idx][bEntranceCost],
BizzInfo[idx][bTill],
BizzInfo[idx][bLocked],
BizzInfo[idx][bInterior],
BizzInfo[idx][bProdutos],
BizzInfo[idx][bMaxProdutos],
BizzInfo[idx][bPriceProd]);
if(idx == 0)
{
file2 = fopen("Arquivos/bizz.cfg", io_write);
}
else
{
file2 = fopen("Arquivos/bizz.cfg", io_append);
}
fwrite(file2, coordsstring);
idx++;
fclose(file2);
}
idx = 0;
while (idx < sizeof(SBizzInfo))
{
new coordsstring[256];
format(coordsstring, sizeof(coordsstring), "%d|%s|%s|%s|%f|%f|%f|%d|%d|%d|%d|%d|%d|%d|%d|%d\n",
SBizzInfo[idx][sbOwned],
SBizzInfo[idx][sbOwner],
SBizzInfo[idx][sbMessage],
SBizzInfo[idx][sbExtortion],
SBizzInfo[idx][sbEntranceX],
SBizzInfo[idx][sbEntranceY],
SBizzInfo[idx][sbEntranceZ],
SBizzInfo[idx][sbLevelNeeded],
SBizzInfo[idx][sbBuyPrice],
SBizzInfo[idx][sbEntranceCost],
SBizzInfo[idx][sbTill],
SBizzInfo[idx][sbLocked],
SBizzInfo[idx][sbInterior],
SBizzInfo[idx][sbProdutos],
SBizzInfo[idx][sbMaxProdutos],
SBizzInfo[idx][sbPriceProd]);
if(idx == 0)
{
file2 = fopen("Arquivos/sbizz.cfg", io_write);
}
else
{
file2 = fopen("Arquivos/sbizz.cfg", io_append);
}
fwrite(file2, coordsstring);
idx++;
fclose(file2);
}
return 1;
}
public SaveIRC()
{
new idx;
new File: file2;
while (idx < sizeof(IRCInfo))
{
new coordsstring[256];
format(coordsstring, sizeof(coordsstring), "%s|%s|%s|%d|%d\n",
IRCInfo[idx][iAdmin],
IRCInfo[idx][iMOTD],
IRCInfo[idx][iPassword],
IRCInfo[idx][iNeedPass],
IRCInfo[idx][iLock]);
if(idx == 0)
{
file2 = fopen("Arquivos/channels.cfg", io_write);
}
else
{
file2 = fopen("Arquivos/channels.cfg", io_append);
}
fwrite(file2, coordsstring);
idx++;
fclose(file2);
}
return 1;
}
public SaveBoxer()
{
new coordsstring[256];
format(coordsstring, sizeof(coordsstring), "%d,%s,%d", Titel[TitelWins],Titel[TitelName],Titel[TitelLoses]);
new File: file2 = fopen("Arquivos/boxer.ini", io_write);
fwrite(file2, coordsstring);
fclose(file2);
return 1;
}
stock IsPlayerInBanco(playerid)
{
new Float:x,Float:y,Float:z;
GetPlayerPos(playerid, x, y, z);
if(x >= 2242.152 && y >= -93.423 && x <= 2428.998 && y <= 128.4566) return 1;
else return 0;
}
|
Mas acontece o seguinte mano, eu nгo mechi nessas funзхes saca, elas ainda existem no gamemode e nem foram mechidas ontem, tenho as public e tudo mais. Sу nao tem porque o erro ter ido para essas funзхes, sendo que mechi foi em outra coisa ..
Код:
... |
:stock OnPropUpdate()
{
new idx;
new File: file2;
while (idx < sizeof(HouseInfo))
{
new coordsstring[256];
format(coordsstring, sizeof(coordsstring), "%f,%f,%f,%f,%f,%f,%d,%d,%d,%d,%d,%d,%s,%s,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d\n",
HouseInfo[idx][hEntrancex],
HouseInfo[idx][hEntrancey],
HouseInfo[idx][hEntrancez],
HouseInfo[idx][hExitx],
HouseInfo[idx][hExity],
HouseInfo[idx][hExitz],
HouseInfo[idx][hHealthx],
HouseInfo[idx][hHealthy],
HouseInfo[idx][hHealthz],
HouseInfo[idx][hArmorrx],
HouseInfo[idx][hArmorry],
HouseInfo[idx][hArmorrz],
HouseInfo[idx][hOwner],
HouseInfo[idx][hDiscription],
HouseInfo[idx][hValue],
HouseInfo[idx][hHel],
HouseInfo[idx][hArm],
HouseInfo[idx][hInt],
HouseInfo[idx][hLock],
HouseInfo[idx][hOwned],
HouseInfo[idx][hRooms],
HouseInfo[idx][hRent],
HouseInfo[idx][hRentabil],
HouseInfo[idx][hTakings],
HouseInfo[idx][hVec],
HouseInfo[idx][hVcol1],
HouseInfo[idx][hVcol2],
HouseInfo[idx][hDate],
HouseInfo[idx][hLevel]);
if(idx == 0)
{
file2 = fopen("Arquivos/property.cfg", io_write);
}
else
{
file2 = fopen("Arquivos/property.cfg", io_append);
}
fwrite(file2, coordsstring);
idx++;
fclose(file2);
}
idx = 0;
while (idx < sizeof(BizzInfo))
{
new coordsstring[256];
format(coordsstring, sizeof(coordsstring), "%d|%s|%s|%s|%f|%f|%f|%f|%f|%f|%d|%d|%d|%d|%d|%d|%d|%d|%d\n",
BizzInfo[idx][bOwned],
BizzInfo[idx][bOwner],
BizzInfo[idx][bMessage],
BizzInfo[idx][bExtortion],
BizzInfo[idx][bEntranceX],
BizzInfo[idx][bEntranceY],
BizzInfo[idx][bEntranceZ],
BizzInfo[idx][bExitX],
BizzInfo[idx][bExitY],
BizzInfo[idx][bExitZ],
BizzInfo[idx][bLevelNeeded],
BizzInfo[idx][bBuyPrice],
BizzInfo[idx][bEntranceCost],
BizzInfo[idx][bTill],
BizzInfo[idx][bLocked],
BizzInfo[idx][bInterior],
BizzInfo[idx][bProdutos],
BizzInfo[idx][bMaxProdutos],
BizzInfo[idx][bPriceProd]);
if(idx == 0)
{
file2 = fopen("Arquivos/bizz.cfg", io_write);
}
else
{
file2 = fopen("Arquivos/bizz.cfg", io_append);
}
fwrite(file2, coordsstring);
idx++;
fclose(file2);
}
idx = 0;
while (idx < sizeof(SBizzInfo))
{
new coordsstring[256];
format(coordsstring, sizeof(coordsstring), "%d|%s|%s|%s|%f|%f|%f|%d|%d|%d|%d|%d|%d|%d|%d|%d\n",
SBizzInfo[idx][sbOwned],
SBizzInfo[idx][sbOwner],
SBizzInfo[idx][sbMessage],
SBizzInfo[idx][sbExtortion],
SBizzInfo[idx][sbEntranceX],
SBizzInfo[idx][sbEntranceY],
SBizzInfo[idx][sbEntranceZ],
SBizzInfo[idx][sbLevelNeeded],
SBizzInfo[idx][sbBuyPrice],
SBizzInfo[idx][sbEntranceCost],
SBizzInfo[idx][sbTill],
SBizzInfo[idx][sbLocked],
SBizzInfo[idx][sbInterior],
SBizzInfo[idx][sbProdutos],
SBizzInfo[idx][sbMaxProdutos],
SBizzInfo[idx][sbPriceProd]);
if(idx == 0)
{
file2 = fopen("Arquivos/sbizz.cfg", io_write);
}
else
{
file2 = fopen("Arquivos/sbizz.cfg", io_append);
}
fwrite(file2, coordsstring);
idx++;
fclose(file2);
}
return 1;
}
stock SaveIRC()
{
new idx;
new File: file2;
while (idx < sizeof(IRCInfo))
{
new coordsstring[256];
format(coordsstring, sizeof(coordsstring), "%s|%s|%s|%d|%d\n",
IRCInfo[idx][iAdmin],
IRCInfo[idx][iMOTD],
IRCInfo[idx][iPassword],
IRCInfo[idx][iNeedPass],
IRCInfo[idx][iLock]);
if(idx == 0)
{
file2 = fopen("Arquivos/channels.cfg", io_write);
}
else
{
file2 = fopen("Arquivos/channels.cfg", io_append);
}
fwrite(file2, coordsstring);
idx++;
fclose(file2);
}
return 1;
}
stock SaveBoxer()
{
new coordsstring[256];
format(coordsstring, sizeof(coordsstring), "%d,%s,%d", Titel[TitelWins],Titel[TitelName],Titel[TitelLoses]);
new File: file2 = fopen("Arquivos/boxer.ini", io_write);
fwrite(file2, coordsstring);
fclose(file2);
return 1;
}
stock IsPlayerInBanco(playerid)
{
new Float:x,Float:y,Float:z;
GetPlayerPos(playerid, x, y, z);
if(x >= 2242.152 && y >= -93.423 && x <= 2428.998 && y <= 128.4566) return 1;
else return 0;
}
.