Portal SAMP
[Ajuda] Podem mim ajudar? - Versão de Impressão

+- Portal SAMP (https://portalsamp.com)
+-- Fórum: SA-MP (https://portalsamp.com/forumdisplay.php?fid=5)
+--- Fórum: Área de suporte (https://portalsamp.com/forumdisplay.php?fid=6)
+--- Tópico: [Ajuda] Podem mim ajudar? (/showthread.php?tid=155)



Podem mim ajudar? - [MV]LeleziN.Dr - 06/10/2020

Estou tentando tira um erro que fica persistindo

Código:
if(udb_Exists(PlayerName(playerid))) if(Logado[playerid] == 0) SetPlayerSkin(playerid, dUserINT(PlayerName(playerid)).("Skin")), Linguagem[playerid] = (playerid,dUserINT(PlayerName(playerid)).("Linguagem")), ShowRegisterOrLoginDialog(playerid, 1);


O erro persiste nesse codigo alguem pode mim ajuda


RE: Podem mim ajudar? - iagomoraes - 07/10/2020

Você esqueceu dos colchetes amigo, o certo é assim:


Citar:if(udb_Exists(PlayerName(playerid))){
if(Logado[playerid] == 0){ 
SetPlayerSkin(playerid, dUserINT(PlayerName(playerid)).("Skin")), Linguagem[playerid] = (playerid,dUserINT(PlayerName(playerid)).("Linguagem")), ShowRegisterOrLoginDialog(playerid, 1);
return 1;
}
}



RE: Podem mim ajudar? - [MV]LeleziN.Dr - 09/10/2020

Já tentei fazer parecido.
já voltei o código que estava antes e o erro da nas seguintes includes

Código:
#include <strlib>
#include <iploc>
#include <geopos>
#include <zenner>
#include <geoip>
#include <irc>

Essas são as includes que apontão como erro.

Eu fiz desse jeito que vc fez mais deu erro na #include <strlib>


Código:
C:\Users\casa\Videos\PROJECT CITY RPG\gamemodes\gm.pwn(7) : fatal error 100: cannot read from file: "strlib"

Compilation aborted.Pawn compiler 3.2.3664    Copyright (c) 1997-2006, ITB CompuPhase


1 Error.



RE: Podem mim ajudar? - iagomoraes - 09/10/2020

(09/10/2020 17:04)[MV]LeleziN.Dr Escreveu: Já tentei fazer parecido.
já voltei o código que estava antes e o erro da nas seguintes includes

Código:
#include <strlib>
#include <iploc>
#include <geopos>
#include <zenner>
#include <geoip>
#include <irc>

Essas são as includes que apontão como erro.

Eu fiz desse jeito que vc fez mais deu erro na #include <strlib>


Código:
C:\Users\casa\Videos\PROJECT CITY RPG\gamemodes\gm.pwn(7) : fatal error 100: cannot read from file: "strlib"

Compilation aborted.Pawn compiler 3.2.3664    Copyright (c) 1997-2006, ITB CompuPhase


1 Error.
Isso que dizer que você não tem a include na Pasta Pawno, verifica se está abrindo a GameMode, com o Pawno correto, vai na Pasta Pawno/Include e veja se tem a strlib.

Caso não tenha baixe este: STRLIB INCLUDE, coloque na pasta include da Pawno.


RE: Podem mim ajudar? - [MV]LeleziN.Dr - 09/10/2020

Verifiquei aqui e tem sim a include na pasta pawno.


RE: Podem mim ajudar? - iagomoraes - 09/10/2020

(09/10/2020 18:17)[MV]LeleziN.Dr Escreveu: Verifiquei aqui e tem sim a include na pasta pawno.

Tente abrir o PAWN.EXE por aqui "C:\Users\casa\Videos\PROJECT CITY RPG/pawno", ae só ir na pastinha lá em cima e procurar a gamemode .PWN e copilar.


RE: Podem mim ajudar? - [MV]LeleziN.Dr - 09/10/2020

Bom eu quebrei a cabeça aqui e deu certo mais ta dando Unknown


Código:
Pawn compiler 3.2.3664              Copyright (c) 1997-2006, ITB CompuPhase

Header size:          17968 bytes
Code size:          4443124 bytes
Data size:          7775160 bytes
Stack/heap size:      40000 bytes; estimated max. usage: unknown, due to recursion
Total requirements:12276252 bytes



RE: Podem mim ajudar? - iagomoraes - 09/10/2020

(09/10/2020 20:22)[MV]LeleziN.Dr Escreveu: Bom eu quebrei a cabeça aqui e deu certo mais ta dando Unknown


Código:
Pawn compiler 3.2.3664              Copyright (c) 1997-2006, ITB CompuPhase

Header size:          17968 bytes
Code size:          4443124 bytes
Data size:          7775160 bytes
Stack/heap size:      40000 bytes; estimated max. usage: unknown, due to recursion
Total requirements:12276252 bytes

Se for Unknown em algum comano, no final dele bote "return 1;"


RE: Podem mim ajudar? - [MV]LeleziN.Dr - 10/10/2020

não esta abrindo o Gamemode fica dizendo que esta unknown Olha ai

Código:
C:\Users\casa\Videos\PROJECT CITY RPG\gamemodes\gm.pwn(13810) : warning 209: function "OnPlayerRequestClass" should return a value
C:\Users\casa\Videos\PROJECT CITY RPG\gamemodes\gm.pwn(107719) : warning 203: symbol is never used: "AreaDetran"
C:\Users\casa\Videos\PROJECT CITY RPG\gamemodes\gm.pwn(107719) : warning 203: symbol is never used: "AreaDetranTimer"
C:\Users\casa\Videos\PROJECT CITY RPG\gamemodes\gm.pwn(107719) : warning 203: symbol is never used: "IconeDetran"
C:\Users\casa\Videos\PROJECT CITY RPG\gamemodes\gm.pwn(107719) : warning 203: symbol is never used: "TaNaAreaDetran"
C:\Users\casa\Videos\PROJECT CITY RPG\gamemodes\gm.pwn(107719) : warning 203: symbol is never used: "iconecartorio"
Pawn compiler 3.2.3664              Copyright (c) 1997-2006, ITB CompuPhase

Header size:          17968 bytes
Code size:          4463508 bytes
Data size:          7781304 bytes
Stack/heap size:      40000 bytes; estimated max. usage: unknown, due to recursion
Total requirements:12302780 bytes

6 Warnings.

E quando abro o Servidor aparece isso

Citar:----------
Loaded log file: "server_log.txt".
----------

SA-MP Dedicated Server
----------------------
v0.3.7-R2, ©2005-2015 SA-MP Team

password = ""  (string)

Server Plugins
--------------
Loading plugin: streamer.dll


*** Streamer Plugin v2.6 by Incognito loaded ***

  Loaded.
Loaded 1 plugins.


Started server on port: 7777, with maxplayers: 100 lanmode is OFF.


Filterscripts
---------------
  Loading filterscript 'admin.amx'...

*** Admin carregado com sucesso ***

  Loaded 1 filterscripts.

Script[gamemodes/gm.amx]: Run time error 19: "File or function is not found"
Number of vehicle models: 0



RE: Podem mim ajudar? - [MV]LeleziN.Dr - 10/10/2020

Conseguir resolver aqui muito obrigado pela ajuda