Add cheat problem,help me plxx

General talk about editing, cheating, and deprotecting maps.

Moderator: Cheaters

gigabyte998
Newcomer
Posts: 2
Joined: August 1st, 2007, 2:58 am

Add cheat problem,help me plxx

Post by gigabyte998 »

by post
http://forum.wc3edit.net/viewtopic.php?f=3&t=21

i add

Code: Select all

trigger gg_trg_blubb=null
before globals

i add

Code: Select all

function GoldCheat takes nothing returns nothing
local player p=GetTriggerPlayer()
call SetPlayerState(p,PLAYER_STATE_RESOURCE_GOLD,GetPlayerState(p,PLAYER_STATE_RESOURCE_GOLD)+1000)
set p=null
endfunction

function InitTrig_blubb takes nothing returns nothing 
local trigger t=CreateTrigger()
local integer i=0
loop
exitwhen i>12
call TriggerRegisterPlayerChatEvent(t,Player(i),"-cheat",true)
set i=i+1
endloop
call TriggerAddAction(t,function GoldCheat)
call DestroyTrigger(t)
set t=null 
endfunction
under endfunction

Code: Select all

call InitTrig_blubb(  )
after function main


into war3map.j,and i started the game,when i in the game i type -cheat but it doesn't work.
GeorgeMots
Crusader
Posts: 4236
Joined: January 27th, 2007, 4:46 pm
Location: Greece, Veria

Re: Add cheat problem,help me plxx

Post by GeorgeMots »

im so good at that but i think that the problem is that you should correct a line from

Code: Select all

function GoldCheat takes nothing returns nothing
to

Code: Select all

function blubb takes nothing returns nothing
http://slowbro.org/
`·.,¸,.·*¯`·.,¸,.·*¯[;::;(。◕‿‿­­​­­­­­◕。)
Image
Image
Image
Spoiler:
(03:36:55) xkiska: im too much of a dumbass to understand this
User avatar
trb92
Senior Member
Posts: 132
Joined: February 20th, 2007, 8:40 pm
Title: Random Noob
Location: Canada!!!

Re: Add cheat problem,help me plxx

Post by trb92 »

[quote="gigabyte998"]by post
http://forum.wc3edit.net/viewtopic.php?f=3&t=21

i add

Code: Select all

trigger gg_trg_blubb=null
before globals

Add this after the word globals, not before.

Why did you make a second thread asking the same question?
If you knew a woman who was pregnant, who had 8 kids already,
three who were deaf, two who were blind, one mentally retarded, and she had syphilis; would you recommend that she have an abortion?

Answer:
Spoiler:
If you said yes, you just killed Beethoven...
User avatar
weirdone2
Forum Staff
Posts: 926
Joined: June 3rd, 2007, 8:03 pm

Re: Add cheat problem,help me plxx

Post by weirdone2 »

First check make sure you deleted the attributes. o.0 If they are deleted still not working open the .j in jasscraft and do a syntax check if you can't figure out the errors it gives just post the error from the syntax check here. [moved to deprotection/hacking]
gigabyte998
Newcomer
Posts: 2
Joined: August 1st, 2007, 2:58 am

Re: Add cheat problem,help me plxx

Post by gigabyte998 »

weirdone2 wrote:First check make sure you deleted the attributes. o.0 If they are deleted still not working open the .j in jasscraft and do a syntax check if you can't figure out the errors it gives just post the error from the syntax check here. [moved to deprotection/hacking]
thank you , but i dun know how to deleted the attributes.May you teach me?
georgemots wrote:im so good at that but i think that the problem is that you should correct a line from

Code: Select all

function GoldCheat takes nothing returns nothing
to

Code: Select all

function blubb takes nothing returns nothing
I am sry,but i think ur method just change the function name .Does it content some thing
useful i can not see ?
User avatar
blannnor
Junior Member
Posts: 31
Joined: April 30th, 2007, 3:10 am

Re: Add cheat problem,help me plxx

Post by blannnor »

you have the trigger called 2 things in different places, it should be the same all the way through.
So either make all the "GoldCheat" into "blubb" or the other way around.
least im pretty sure thats what george is saying :)