[Help] - YCMD
#1

Hello all,today i tried to put one YCMD in my GameMode i'm still ond old strmp and i want to try put one command YCMD and try if it works to start re writing all commands in my gamemode.
So here is the thing
I downloaded last include ycmd i have put this on top of my gamemode
pawn Код:
#include <YSI\y_commands>
I've put command outside of any callback and i get those errors/warnings
I have read posts from ***** but i can't figure out what is problem

Код:
C:\Users\Niko_Crawford\Desktop\ERP Test Version\pawno\include\YSI\y_als/impl.inc(43) : error 001: expected token: "-identifier-", but found ","
C:\Users\Niko_Crawford\Desktop\ERP Test Version\pawno\include\YSI\y_hooks/impl.inc(357) : error 029: invalid expression, assumed zero
C:\Users\Niko_Crawford\Desktop\ERP Test Version\pawno\include\YSI\y_hooks/impl.inc(1715) : error 029: invalid expression, assumed zero
C:\Users\Niko_Crawford\Desktop\ERP Test Version\pawno\include\YSI\y_hooks/impl.inc(1752) : warning 201: redefinition of constant/macro (symbol "OnVehicleDamageStatusUpdate")
C:\Users\Niko_Crawford\Desktop\ERP Test Version\pawno\include\YSI\y_bintree.inc(378) : warning 219: local variable "right" shadows a variable at a preceding level
C:\Users\Niko_Crawford\Desktop\ERP Test Version\pawno\include\YSI\y_bintree.inc(511) : warning 219: local variable "right" shadows a variable at a preceding level
C:\Users\Niko_Crawford\Desktop\ERP Test Version\pawno\include\YSI\y_commands.inc(878) : warning 219: local variable "hash" shadows a variable at a preceding level
C:\Users\Niko_Crawford\Desktop\ERP Test Version\pawno\include\YSI\y_commands.inc(1437) : warning 219: local variable "hash" shadows a variable at a preceding level
C:\Users\Niko_Crawford\Desktop\ERP Test Version\pawno\include\YSI\y_commands.inc(1492) : warning 219: local variable "hash" shadows a variable at a preceding level
C:\Users\Niko_Crawford\Desktop\ERP Test Version\pawno\include\YSI\y_commands.inc(1545) : warning 219: local variable "hash" shadows a variable at a preceding level
C:\Users\Niko_Crawford\Desktop\ERP Test Version\pawno\include\YSI\y_commands.inc(1567) : warning 219: local variable "hash" shadows a variable at a preceding level
C:\Users\Niko_Crawford\Desktop\ERP Test Version\pawno\include\YSI\y_commands.inc(1630) : warning 219: local variable "hash" shadows a variable at a preceding level
C:\Users\Niko_Crawford\Desktop\ERP Test Version\pawno\include\YSI\y_commands.inc(1858) : warning 219: local variable "hash" shadows a variable at a preceding level
C:\Users\Niko_Crawford\Desktop\ERP Test Version\pawno\include\YSI\y_commands.inc(1962) : warning 219: local variable "hash" shadows a variable at a preceding level
C:\Users\Niko_Crawford\Desktop\ERP Test Version\pawno\include\YSI\y_commands.inc(2103) : warning 219: local variable "hash" shadows a variable at a preceding level
C:\Users\Niko_Crawford\Desktop\ERP Test Version\pawno\include\YSI\y_commands.inc(2400) : warning 219: local variable "hash" shadows a variable at a preceding level
C:\Users\Niko_Crawford\Desktop\ERP Test Version\gamemodes\v1.8 poslednji sa introm[BackuP zadnji]\larp.pwn(1811) : error 025: function heading differs from prototype
C:\Users\Niko_Crawford\Desktop\ERP Test Version\gamemodes\v1.8 poslednji sa introm[BackuP zadnji]\larp.pwn(14506) : error 035: argument type mismatch (argument 2)
C:\Users\Niko_Crawford\Desktop\ERP Test Version\gamemodes\v1.8 poslednji sa introm[BackuP zadnji]\larp.pwn(36239) : error 025: function heading differs from prototype
C:\Users\Niko_Crawford\Desktop\ERP Test Version\gamemodes\v1.8 poslednji sa introm[BackuP zadnji]\larp.pwn(100573) : warning 218: old style prototypes used with optional semicolumns
C:\Users\Niko_Crawford\Desktop\ERP Test Version\gamemodes\v1.8 poslednji sa introm[BackuP zadnji]\larp.pwn(100573) : warning 218: old style prototypes used with optional semicolumns
C:\Users\Niko_Crawford\Desktop\ERP Test Version\gamemodes\v1.8 poslednji sa introm[BackuP zadnji]\larp.pwn(100575) : error 017: undefined symbol "SCM"
C:\Users\Niko_Crawford\Desktop\ERP Test Version\gamemodes\v1.8 poslednji sa introm[BackuP zadnji]\larp.pwn(100584) : error 017: undefined symbol "GetPlayerNameEx"
C:\Users\Niko_Crawford\Desktop\ERP Test Version\gamemodes\v1.8 poslednji sa introm[BackuP zadnji]\larp.pwn(100591) : error 017: undefined symbol "GetPlayerNameEx"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


9 Errors.
Reply
#2

pawn Код:
local variable "hash" shadows a variable at a preceding level
this means you have new hash; or something globally, you need to put that under a callback where you use this variable.

We will need the rest of your code to fix the rest.
Reply
#3

Rest of code?
All i did is this

pawn Код:
#include <YSI\y_commands>
test command i wanned to try

pawn Код:
YCMD:tognewbiee(playerid, params[], help)
{
    if(help) return SCM(playerid, COLOR_GREY, "Not supported");

    new string[256];
    if(IsPlayerConnected(playerid))
    {
        if (PlayerInfo[playerid][pAdmin] >= 2 && (!nonewbie))
        {
            nonewbie = 1;
            BroadCast(COLOR_NICERED, "** Newbie chat channel disabled by an Admin !");
            format(string, sizeof(string), "AdmCmd: %s Has Disabled the Newbie Chat", GetPlayerNameEx(playerid));
            ABroadCast(COLOR_LIGHTRED, string, 5);
        }
        else if (PlayerInfo[playerid][pAdmin] >= 2 && (nonewbie))
        {
            nonewbie = 0;
            BroadCast(TEAM_GROVE_COLOR, "** Newbie chat channel enabled by an Admin !");
            format(string, sizeof(string), "AdmCmd: %s Has Enabled the Newbie Chat", GetPlayerNameEx(playerid));
            ABroadCast(COLOR_LIGHTRED, string, 5);
        }
        else
        {
            SendClentMessage(playerid, COLOR_GRAD1, "** you are not authorized to use that command!");
        }
    }
    return 1;
}
As i said i have put command out of any callback,and i did search for "hash" in my script but i could not found any word,maybe is in some include?
But wich include use "hash"
Reply
#4

Is this my GM, you're trying to edit?

-- If so, send me the PWN on Skype, and I'll fix it.
Reply
#5

Quote:
Originally Posted by UnknownGamer
Посмотреть сообщение
Is this my GM, you're trying to edit?

-- If so, send me the PWN on Skype, and I'll fix it.
Nop,command is from your gamemode i'm trying to take steps and try convert commands from old strmp to YCMD i just try to put one command to check what is requred and if is work i will start import and rewriting commands,i don't want to use your gamemode since i have fixed all also and added like all new jobs,new things i have changed all but i have stay on old systems i changed from dini to format var till now,i don't like sql and i don't need it i wont have server with 500 players sql is not requred,but i would like to convert commands coz i like how they looks D: and Y Less rockz
Reply
#6

Anyone?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)