December 2, 2018, 4:11 am
This is the error.
Quote:
: warning 235: public function lacks forward declaration (symbol "OnVehicleMod")
: error 017: undefined symbol "printf"
: warning 215: expression has no effect
: error 001: expected token: ";", but found "]"
: error 029: invalid expression, assumed zero
: fatal error 107: too many error messages on one line
|
I need help on this.
Code:
public OnVehicleMod(playerid, vehicleid, componentid)
{
printf("[OnVehicleMod]: '%s(%d)' has attached %d on %d", pName[playerid], playerid, componentid, vehicleid);
if(BoughtVehicle[playerid] == true)
{
if(vehicleid == PlayerVehicle[playerid])
{
SavePVComponents(playerid, componentid);
}
}
if(GetPlayerInterior(playerid) == 0)
{
format(str, sizeof(str), "* ADMIN-MSG: "GREY_E"%s(%i) has attempted to install an invalid vehicle mod.", pName[playerid], playerid);
SendAdminMessage(COLOR_RED, str);
return 0;
}
new vehicleide = GetVehicleModel(vehicleid);
new modok = islegalcarmod(vehicleide, componentid);
if (!modok)
{
printf("[invalid_mod] %s %d %d %d %d %d", pName[playerid], playerid, vehicleid, vehicleide, componentid);
format(str, sizeof(str), "4Anti-Cheat 4%s(%i) has been kicked for attempting to install an invalid vehicle mod.", pName[playerid], playerid);
IRC_GroupSay(ircGroup, IRC_CHANNEL, str), IRC_GroupSay(ircGroup, IRC_aCHANNEL, str);
format(str, sizeof(str), ""GREY_E"Anti-Cheat: "RED_E"%s(%i) has been kicked for attempting to install an invalid vehicle mod.", pName[playerid], playerid);
SendClientMessageToAll(COLOR_RED, str);
Kick(playerid);
return 0;
}
return 1;
}
↧
December 2, 2018, 4:15 am
new DEBUG_NUM = 1;
public OnPlayerConnect(playerid)
{
new name[MAX_PLAYER_NAME+1];
GetPlayerName(playerid, name, MAX_PLAYER_NAME+1);
DEBUG_PRINT(1,"[console] %s player is connected",name);
SendClientMessage(playerid, -1, "connected");
}
stock DEBUG_PRINT(DEBUG,const format[], {Float,_}:...)
{
if(DEBUG == DEBUG_NUM)
{
printf("%s",format);
}
}
---------------------[LOG]---------------------
Number of vehicle models: 0
[console] %s player is connected
-------------------------------------------------
???
↧
↧
December 2, 2018, 5:26 am
↧
December 2, 2018, 5:30 am
↧
December 2, 2018, 6:12 am
Hello guys, I'm using the function HexToInt, but I have a problem.
When I try to set the player's color to red it sets it as blue.
Here is my code:
PHP Code:
format(TheColor, sizeof(TheColor), "0xFF0000FF");
SetPlayerColor(playerid, HexToInt(TheColor));
And here is my HexToInt function:
PHP Code:
stock HexToInt( string[ ] )
{
if( string[ 0 ] == 0 ) return ( 0 );
new i;
new cur = 1;
new res = 0;
for( i = strlen( string ); i > 0; i -- )
{
if( string[ i - 1 ] < 58 )
{
res = res + cur * ( string[ i - 1 ] - 48 );
}
else
{
res = res + cur * ( string[ i - 1 ] - 65 + 10 );
cur = cur * 16;
}
}
return ( res );
}
↧
↧
December 2, 2018, 6:39 am
Hiya. My server which is hosted by the way was running fine all the time and for the past few days it started crashing randomly. I was trying to revert my code back and etc but that did not help. I just recently noticed that I got an error in my log-core.log document which says :
Code:
[12/02/18 14:26:48] [ERROR] signal 15 (SIGTERM) catched; shutting log-core down (errno: 0, signal code: 0, exit status: 171987752)
[12/02/18 15:43:43] [ERROR] signal 15 (SIGTERM) catched; shutting log-core down (errno: 0, signal code: 0, exit status: 0)
[12/02/18 16:08:52] [ERROR] signal 15 (SIGTERM) catched; shutting log-core down (errno: 0, signal code: 0, exit status: 0)
I restarted my server three times and it gives me this error every time. Can someone help me? Is anyone having an issue like this aswell? I am using mysql R41-2.
↧
December 2, 2018, 7:35 am
Hey,
in my script i created this:
Code:
new PoliceSkins[] =
{
280,281,282,283,284,288,300,301,302,306,307,309,310,311
};
and i call it in a dialog like
Code:
CMD:skins(playerid) {
new string[128];
for (new i = 0; i < sizeof(PoliceSkins); i++) {
format(string, sizeof string, "%s%i\tID: %i\n", string, PoliceSkins[i], PoliceSkins[i]);
}
return ShowPlayerDialog(playerid, DIALOG_POLIZEISKINS, DIALOG_STYLE_PREVIEW_MODEL, "Polizei Skins", string, "Auswaehlen", "Abbrechen");
}
But how can i get the skin id in
Code:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
↧
December 2, 2018, 7:53 am
Hello guys, I didn't really want to ask about this out here but I really couldn't find any information about this.
When this skin I added spawns it always does spawn flipped like that, the thing is. I tried flipping it with 90 degrees on 3ds max but the skin just rotates and never gets spawned properly, all skins I added are working well except this one. Is there a way to change the skin standing? It's really annoying and I found no information on how to flip it up script wise. Is it related to .col? If anyone knows a trick I'll be so thankful.
Please do not mention flipping the dff because I been trying to do that for 2 days.
![]()
↧
December 2, 2018, 8:11 am
How to throw an object like real life, if we throw a object it will reach a height first then will fall in the ground...
I am actually unable to upload image on imgur, so I attached it here
in the image,
suppose M is a man, he threw O object and S is surface... it will hit the ground as in image shown
↧
↧
December 2, 2018, 10:36 am
Olá, eu baixei uma GM Base RPG aki e os dialogs estão bugados, quando eu aperto pra fechar ele fecha e depois abre novamente. Alguém Sabe resolver? Obrigado.
↧
December 2, 2018, 11:09 am
Seguinte pessoal eu to fazendo um sistema de radar pro meu servidor, porém não está funcionando como deveria, tipo eu coloquei em um local pra teste e tals, só que quando passo com o veiculo que coloquei que era pra dar multa não está aparecendo nada, e não sei onde está a causa do bug, se poderem ajudar eu agradeço.
PHP Code:
forward Radar(playerid);
public Radar(playerid)
{
new modelo = GetVehicleModel(GetPlayerVehicleID(playerid));
if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
{
if(IsPlayerInCircle(playerid,831.4232,2641.4758,20) || IsPlayerInCircle(playerid,900.0280,2597.7988,20))
{
if(GetVehicleSpeed(modelo) > 125)
{
if(modelo == 448 || modelo == 461 || modelo == 462 || modelo == 463 || modelo == 468 || modelo == 471 || modelo == 521 || modelo == 581 || modelo == 586)
{
if(PlayerInfo[playerid][pMotos] == 1)
{
SendClientMessage(playerid,Verde,"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Multa ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~");
SendClientMessage(playerid,Branco,"Você Passou Acima do Limite de Velocidade Permitida e Recebeu Uma Multa em Sua Habilitação Categoria 'Motos'");
SendClientMessage(playerid,Amarelo,"Pague Suas Multas no Detran ou Perderá Sua Habilitação!");
SendClientMessage(playerid,Verde,"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Multa ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~");
PlayerPlaySound(playerid,1132,0.0,0.0,0.0);
}
if(PlayerInfo[playerid][pMotos] == 0)
{
SendClientMessage(playerid,Vermelho,"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Multa ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~");
SendClientMessage(playerid,Branco,"Você Passou Acima do Limite de Velocidade Permitida Dirigindo Sem Habilitação!");
SendClientMessage(playerid,Amarelo,"Você Recebeu Uma Multa de 1.000 e Recebeu 2 Estrelas de Procurado Por Não Obter Habilitação!");
SendClientMessage(playerid,Vermelho,"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Multa ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~");
PlayerPlaySound(playerid,1132,0.0,0.0,0.0);
Estrelas(playerid);
}
}
}
}
}
return 1;
}
↧
December 2, 2018, 12:03 pm
Hello
I have problem, how fix this ?
error 017: undefined symbol "GetPlayerPoolSize"
Code:
forward SecondUpdate();
public SecondUpdate()
{
for(new playerid, j = GetPlayerPoolSize(); playerid <= j; playerid++)
{
if(IsPlayerConnected(playerid))
{
if(Player[playerid][ShowMouse])
{
ShowPlayerMouse(playerid, true);
}
}
}
return 1;
}
warning 214: possibly a "const" array argument was intended: "name"
Code:
stock IsRPName(name[], minname = 3, bool:firstupperthenlower = true) //By Nickk888
{
new count, checknumcount, where, tmpname[24], tmpsname[24];
new len = strlen(name);
for(new i; i < len; i++) {
if(name[i] == '_')
count++,
where = i;
switch(name[i]) {
case 'A'..'Z', 'a'..'z', '_':
checknumcount++;
}
}
if(count != 1 || (where < minname || len < ((where + 1) + minname)) || checknumcount != len)
return 0;
strmid(tmpname, name, 0, where);
strmid(tmpsname, name, where+1, len);
checknumcount = 0;
if(firstupperthenlower) {
switch(tmpname[0]) {
case 'A'..'Z':
checknumcount++;
}
for(new i = 1, j = strlen(tmpname); i < j; i++){
switch(tmpname[i]) {
case 'a'..'z':
checknumcount++;
}
}
switch(tmpsname[0]) {
case 'A'..'Z':
checknumcount++;
}
for(new i = 1, j = strlen(tmpsname); i < j; i++){
switch(tmpsname[i]) {
case 'a'..'z':
checknumcount++;
}
}
if((checknumcount + 1) != len)
return 0;
}
return 1;
}
warning 214: possibly a "const" array argument was intended: "string"
Code:
stock bool:IsStrValid(string[])
{
new num;
new len = strlen(string);
for(new i; i < len; i++)
switch(string[i])
{
case 'A'..'Z':num++;
case 'a'..'z':num++;
case '0'..'9':num++;
}
if(num == len) return true;
else return false;
}
↧
December 2, 2018, 2:34 pm
Fala pessoal, eu estou estudando aqui, criando um GM de DM do zero, mas me deparei com alguns erros e avisos, os erros consegui resolver, mas os avisos já não sei o que fazer.
Quote:
Originally Posted by Mensagem do erro
Compilando jonathan.pwn...
\\PC-PC\Users\Public\DM PAEX\gamemodes\jonathan.pwn(75) : warning 202: number of arguments does not match definition
\\PC-PC\Users\Public\DM PAEX\gamemodes\jonathan.pwn(76) : warning 202: number of arguments does not match definition
\\PC-PC\Users\Public\DM PAEX\gamemodes\jonathan.pwn(77) : warning 213: tag mismatch
\\PC-PC\Users\Public\DM PAEX\gamemodes\jonathan.pwn(240) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
4 Warnings.
|
Linhas 75,76 e 77
Code:
public OnPlayerRequestClass(playerid, classid)
{
SetPlayerPos(playerid, 1534.4320,-1356.6494,329.4547,104.5967);
SetPlayerCameraPos(playerid, 1524.3578,-1359.1086,330.0000,284.4751);
SetPlayerCameraLookAt(playerid, 1524.3578,-1359.1086,330.0000,284.4751);
return 1;
}
Linha 240
Code:
if(!strcmp(cmdtext, "/base"))
{
SetPlayerPos(playerid, 1805.7567,-1884.8397,13.4082,186.6219);
SendClientMessage(playerid, COR_AZUL, "Você teleportou para Base");
return 1;
}
Eu sei que deve ser coisa simples, mas sou iniciante, estou aprendendo tudo só, sem pegar gm pronto, juro que pesquisei esse aviso mas não encontrei a solução...
Desde já agradeço a todos.
↧
↧
December 2, 2018, 3:04 pm
Hey everyone.
Having a problem with VStudio. After starting compiler, I'm having error: The terminal process terminated with exit code: 3221225477
Anyone know's something about how to fix that? Thanks
Photos -
https://imgur.com/a/aepYklA
↧
December 2, 2018, 3:26 pm
Estou desenvolvendo um servidor e, estou necessitando de pessoas que faça parte da equipe é tenha experiência com pawno Para Assim Desenvolvemos um Servidor Junto . ( Deixem Contatos )
↧
December 2, 2018, 4:18 pm
Credits: Hera
The gamemode includes Turkish language in it. Also it includes infrastructure of Vinewood Roleplay which was planned to had a grand-open in Summer is changed from Kod Roleplay. The gamemode has own .SQL table in files. Feel free to download and set up for your server.
Pay Attention: Kod Roleplay mode took infrastructure from Vivala Roleplay. The all credits can be given to only Hera.
VirusTotal:
https://www.virustotal.com/#/file/65...24ea/detection
Mediafire:
https://www.mediafire.com/file/bb2nz...oleplay+v2.rar
↧
December 2, 2018, 4:39 pm
C:\Users\Connect\Desktop\BSystem.pwn(20) : error 021: symbol already defined: "NPCPSVBus"
C:\Users\Connect\Desktop\BSystem.pwn(247) : error 017: undefined symbol "IsAtPSVBus"
C:\Users\Connect\Desktop\BSystem.pwn(252) : error 017: undefined symbol "IsAtPSVBus"
C:\Users\Connect\Desktop\BSystem.pwn(274) : error 017: undefined symbol "IsAtPSVBus"
C:\Users\Connect\Desktop\BSystem.pwn(471) : error 021: symbol already defined: "IsAtPSVBusStop"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
5 Errors.
Alguem me ajuda , tou editando essa FS é não acho solução desses erros :p
↧
↧
December 2, 2018, 6:17 pm
I give the command below (entering duty mode), and it creates the 3DLabel normally, and appears on top of the administrator name "Admin" in blue, but when I give the command again (to exit duty mode) the 3DLabel does not exit, someone know why?
PHP Code:
ACMD:admin[1](playerid, params[])
{
if(GetPlayerAdminLevel(playerid) < 2)
return Msg(playerid, RED, "[ > ] Você não tem permissão para usar este comando.");
new name[MAX_PLAYER_NAME];
new Text3D:adminindicitor[MAX_PLAYERS];
GetPlayerName(playerid, name, sizeof(name));
if(GetPlayerState(playerid) == PLAYER_STATE_SPECTATING)
{
Msg(playerid, RED, "[ > ] Você não pode fazer isso enquanto está espiando!");
return 1;
}
if(!IsPlayerOnAdminDuty(playerid))
{
adminindicitor[playerid] = Create3DTextLabel("Admin", 0x33CCFFFF, 30.0, 40.0, 50.0, 10.0, 0);
TogglePlayerAdminDuty(playerid, true);
MsgAdminsF(1, NovoA, "[ > ] O(a) Administrador(a){FFFFFF} %s {00c0ff}saiu do modo jogador!", name);
Attach3DTextLabelToPlayer(adminindicitor[playerid], playerid, 0.0, 0.0, 0.2);
}
else
{
TogglePlayerAdminDuty(playerid, false);
MsgAdminsF(1, NovoA, "[ > ] O(a) Administrador(a){FFFFFF} %s {00c0ff}entrou no modo jogador!", name);
Delete3DTextLabel(adminindicitor[playerid]);
}
return 1;
}
↧
December 3, 2018, 12:44 am
Hey!
Im currently trying to make MTA - SAMP Map converter..
Thats my converter include pastebin:
https://pastebin.com/ubfXz8xr
and thats my actual gamemode command pastebin:
https://pastebin.com/Aq0WMAsk
I got maps folder and in there I got folder test which has file called test.map
Thats debug I get in server console =)
Map maps/testing/testing.map cannot be found or loaded.
Map maps/test/test.map cannot be found or loaded.
Why is that ?
p.s. I added setplayerpos just to see if objects loaded.. and u guessed it =) they did not
↧
December 3, 2018, 5:46 am
Server IP: 31.220.31.19:7777
Website: sampgaming.com
![]()
↧