[FilterScript] TXD Ingame Editor
#15

Here's something I've spotted...

You use "Mode" here but in OnPlayerUpdate you use "Editing" it will never be called because variable "Editing" will never get value 1.
pawn Code:
if(strcmp(cmd, "/mode", true) == 0)
    {
        new tmp[30];
        tmp = strtok(cmdtext, idx);
        SetPVarInt(playerid, "Mode", strval(tmp));
        return 1;
    }
And here you use this:
pawn Code:
if(GetPVarInt(playerid, "Editing") == 0) return 1;
OnPlayerUpdate will never be called.

pawn Code:
if(GetPVarInt(playerid, "Mode") == 1) SetPVarFloat(playerid, "X", GetPVarFloat(playerid, "X") - 1.0);
        else if(GetPVarInt(playerid, "Mode") == 2) SetPVarFloat(playerid, "W", GetPVarFloat(playerid, "W") - 1.0);
Also change values 0 and 1 to 1 and 2.
Reply


Messages In This Thread
Textures Ingame Editor - by OKStyle - 15.10.2011, 22:16
Re: TXD Ingame Editor - by Zh3r0 - 15.10.2011, 22:26
Re: TXD Ingame Editor - by OKStyle - 15.10.2011, 22:27
AW: TXD Ingame Editor - by xX60CentXx - 15.10.2011, 22:40
Re : TXD Ingame Editor - by Habdel - 15.10.2011, 22:56
Re: TXD Ingame Editor - by Ricop522 - 16.10.2011, 03:16
Re: TXD Ingame Editor - by Mr_Scripter - 16.10.2011, 03:35
Re: TXD Ingame Editor - by Kazuo - 16.10.2011, 04:13
AW: TXD Ingame Editor - by Meta - 16.10.2011, 07:04
Re: TXD Ingame Editor - by TheLazySloth - 16.10.2011, 07:11
Re: AW: TXD Ingame Editor - by OKStyle - 16.10.2011, 07:22
Re: TXD Ingame Editor - by iMonk3y - 16.10.2011, 07:40
Re: TXD Ingame Editor - by int3s0 - 16.10.2011, 07:47
Re: TXD Ingame Editor - by OKStyle - 16.10.2011, 09:53
Re: TXD Ingame Editor - by Zh3r0 - 16.10.2011, 10:31
Re: TXD Ingame Editor - by rbN. - 16.10.2011, 11:20
Re: TXD Ingame Editor - by Zh3r0 - 16.10.2011, 11:47
Re: TXD Ingame Editor - by Niko_boy - 16.10.2011, 13:09
Re: TXD Ingame Editor - by skullmuncher1337 - 16.10.2011, 13:28
Re: TXD Ingame Editor - by OKStyle - 16.10.2011, 19:07
Re : TXD Ingame Editor - by Naruto_Emilio - 16.10.2011, 20:06

Forum Jump:


Users browsing this thread: 1 Guest(s)