NameTimer
#1

Bem pessoal, estava a testar um novo gm mas ele me apresentou o seguinte erro na compilaзгo:

pawn Код:
D:\PCS-SAMP\Elite\ELITE.pwn(26358) : warning 219: local variable "Armour" shadows a variable at a preceding level
D:\PCS-SAMP\Elite\ELITE.pwn(27212) : error 004: function "NameTimer" is not implemented
D:\PCS-SAMP\Elite\ELITE.pwn(29039) : warning 235: public function lacks forward declaration (symbol "OnPlayerPrivmsg")
D:\PCS-SAMP\Elite\ELITE.pwn(29135) : warning 203: symbol is never used: "GetPointDistanceToPointExMorph"
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


1 Error.
Segue as linhas do problema:

pawn Код:
new Float:oldposx, Float:oldposy, Float:oldposz;
    new string[128];
    NameTimer();
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        if(IsPlayerConnected(i))
        {
            GetPlayerPos(i, oldposx, oldposy, oldposz);
            new tmpcar = GetPlayerVehicleID(i);
            if(oldposx!=0.0 && oldposy!=0.0 && oldposz!=0.0)
            {
                for(new h = 0; h < sizeof(SBizzInfo); h++)
                {
                    if(IsATruck(tmpcar) && PlayerToPoint(10.0, i, SBizzInfo[h][sbEntranceX], SBizzInfo[h][sbEntranceY], SBizzInfo[h][sbEntranceZ]))
                    {
                        format(string, sizeof(string), "~w~%s~n~~r~Produtos requeridos~w~: %d~n~~y~Preњo por Produto: ~w~: R$ %d ~n~~g~Fundos: ~w~: R$ %d",SBizzInfo[h][sbMessage],(SBizzInfo[h][sbMaxProducts]-SBizzInfo[h][sbProducts]),SBizzInfo[h][sbPriceProd],SBizzInfo[h][sbTill]);
                        GameTextForPlayer(i, string, 5000, 3);
                        return 1;
                    }
                    if(PlayerToPoint(2.0, i, SBizzInfo[h][sbEntranceX], SBizzInfo[h][sbEntranceY], SBizzInfo[h][sbEntranceZ]))
                    {
                        if(SBizzInfo[h][sbOwned] == 1)
                        {
                            format(string, sizeof(string), "~w~%s~w~~n~dono : %s~n~extorsљo : %s~n~taxa: ~g~R$ %d ~w~Level: %d ~n~entrada /entrar",SBizzInfo[h][sbMessage],SBizzInfo[h][sbOwner],SBizzInfo[h][sbExtortion],SBizzInfo[h][sbEntranceCost],SBizzInfo[h][sbLevelNeeded]);
                        }
                        else
                        {
                            format(string, sizeof(string), "~w~%s~w~~n~a empresa estЃ a venda~n~preњo: ~g~R$ %d ~w~Level : %d ~n~para comprar a empresa: /comprarempresa",SBizzInfo[h][sbMessage],SBizzInfo[h][sbBuyPrice],SBizzInfo[h][sbLevelNeeded]);
                        }
                        GameTextForPlayer(i, string, 5000, 3);
                        return 1;
                    }
                }
tentei arrumar o problema fazendo
pawn Код:
new NameTimer[128];
Assim ele compilou, mas o servidor sempre estava a reiniciar.
Espero que poзam me ajudar
Reply
#2

Quote:
Originally Posted by brunim
Посмотреть сообщение
pawn Код:
new Float:oldposx, Float:oldposy, Float:oldposz;
    new string[128];
    NameTimer();
...
nao era nen pra ele ter rodado dps d compilar '-'
@onerror
remova "NameTimer();" e seja feliz
Reply
#3

ele continua a reiniciar... desisti desse gm :/
Eu to com um que meu amigo fez, mas esta dando run timer erro 19, alguem pode me ajudar ?

Log
pawn Код:
SA-MP Dedicated Server
----------------------
v0.3c R2, (C)2005-2011 SA-MP Team

[18:32:25]
[18:32:25] Server Plugins
[18:32:25] --------------
[18:32:25]  Loading plugin: nativechecker
[18:32:25]   Loaded.
[18:32:25]  Loaded 1 plugins.

[18:32:25]
[18:32:25] Filter Scripts
[18:32:25] ---------------
[18:32:25]   Loading filter script 'base.amx'...
[18:32:25]
--Base FS loaded.

[18:32:25]   Loading filter script 'gl_actions.amx'...
[18:32:25]   Loading filter script 'gl_property.amx'...
[18:32:25]
-----------------------------------
[18:32:25] Grand Larceny Property Filterscript     
[18:32:25] -----------------------------------

[18:32:25]   Loading filter script 'gl_realtime.amx'...
[18:32:25]   Loading filter script 'gl_mapicon.amx'...
[18:32:25]   Loading filter script 'ls_elevator.amx'...
[18:32:25]   Loaded 6 filter scripts.

[18:32:25]    Error: Function not registered: 'Streamer_RegisterInterface'
[18:32:25]    Error: Function not registered: 'Streamer_AddPlayer'
[18:32:25]    Error: Function not registered: 'Streamer_RemovePlayer'
[18:32:25]    Error: Function not registered: 'Streamer_VerifyPickup'
[18:32:25]    Error: Function not registered: 'Streamer_VerifyCheckpoint'
[18:32:25]    Error: Function not registered: 'CreateDynamicObject'
[18:32:25]    Error: Function not registered: 'Streamer_VisibleItems'
[18:32:25]    Error: Function not registered: 'Streamer_TickRate'
[18:32:25]    Error: Function not registered: 'DestroyDynamicObject'
[18:32:25]    Error: Function not registered: 'MoveDynamicObject'
[18:32:25] Reading File: blank
[18:32:25] Reading File: properties/houses.txt
[18:32:25] Reading File: properties/businesses.txt
[18:32:25] Reading File: properties/banks.txt
[18:32:25] Reading File: properties/police.txt
[18:32:25] Script[gamemodes/projeto.amx]: Run time error 19: "File or function is not found"
[18:32:25] Number of vehicle models: 0
Server.cfg
pawn Код:
echo Executing Server Config...
lanmode 0
rcon_password 123
maxplayers 32
port 7777
hostname SA-MP 0.3 Server
gamemode0 projeto
filterscripts base gl_actions gl_property gl_realtime gl_mapicon ls_elevator
announce 0
query 1
weburl [url]www.sa-mp.com[/url]
onfoot_rate 40
incar_rate 40
weapon_rate 40
stream_distance 300.0
stream_rate 1000
maxnpc 0
logtimeformat [%H:%M:%S]
plugins nativechecker
tenho certeza absoluta que o arquivo projeto.amx esta na pasta gamemodes :/
Reply
#4

falta o plugin streamer
Reply
#5

onde posso baixar esse plugin ?


@edit

baixei o plugin e funciono, amo voces !
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)