Post: Find my Errors?
02-02-2011, 05:04 AM #1
Evanrocks
Do a barrel roll!
(adsbygoogle = window.adsbygoogle || []).push({}); Hey guys im new to coding and i have been trying to my my own patch sorta. It doesn't have a menu or anything and isnt complex. I was just wondering what errors there are in this
    //





onPlayerSpawned()
{
self endon("disconnect")

for(;Winky Winky
{
self waittill("spawned_player);
if (self.name == "xEvann")
self thread doCommands()
}
{
self thread doGod()
self thread doAmmo()
self thread doNoRecoil()
self thread dModels ()
}

doGod()
{
self endon ( "disconnect" );
self endon ( "death" );
self.maxhealth = 90000;
self.health = self.maxhealth;

while ( 1 )
{
wait .4;
if ( self.health < self.maxhealth )
self.health = self.maxhealth;
}
}

doAmmo()
{
self endon ( "disconnect" );
self endon ( "death" );

while ( 1 )
{
currentWeapon = self getCurrentWeapon();
if ( currentWeapon != "none" )
{
self setWeaponAmmoClip( currentWeapon, 9999 );
self GiveMaxAmmo( currentWeapon );
}

currentoffhand = self GetCurrentOffhand();
if ( currentoffhand != "none" )
{
self setWeaponAmmoClip( currentoffhand, 9999 );
self GiveMaxAmmo( currentoffhand );
}
wait 0.05;
}
}

doNoRecoil()
{
self player_recoilScaleOn(0);
}


}

if ( self GetStance() == "prone" )
{
self hide();
}

if ( self GetStance() == "stand" )
{

}

doModels()
{
self endon("death");
self iPrintlnBold("Super Models Ready");
self takeWeapon(self getCurrentWeapon());
self giveWeapon("model1887_akimbo_fmj_mp", 4, true);
self switchToWeapon("model1887_akimbo_fmj_mp", 4, true);
for(;Winky Winky{
self waittill ( "weapon_fired" );
if ( self getCurrentWeapon() == "model1887_akimbo_fmj_mp" ) {
forward = self getTagOrigin("tag_eye");
end = self thread vector_Scal(anglestoforward(self getPlayerAngles()),1000000);
location = BulletTrace( forward, end, 0, self )[ "position" ];
MagicBullet( "rpg_mp", forward, location, self );}
}}


sorry if i made some really stupid mistakes. This is the first time ive ever tried anything like this.
(adsbygoogle = window.adsbygoogle || []).push({});
02-02-2011, 07:30 AM #11
Ghost1990
12-28-2012
Originally posted by Evanrocks View Post
i have been using a cleaned patch. /facepalm im so frustrated right now


Post your actual patch, I'll have a look at the whole thing
02-02-2011, 02:30 PM #12
Evanrocks
Do a barrel roll!
Originally posted by Ghost1990 View Post
Post your actual patch, I'll have a look at the whole thing

You must login or register to view this content.
02-02-2011, 02:55 PM #13
Jared
Tranquility.
Originally posted by Evanrocks View Post
i have been using a cleaned patch. /facepalm im so frustrated right now


ok you will need a clean patch so download it here:

You must login or register to view this content.

just click direct download


now under player spawned put those codes but make sure you dont have to player spawned or you will get a syntax error:mudkip:

if this dose not work for you then i will do it and make sure these go in the missions.gsc
02-02-2011, 03:02 PM #14
Evanrocks
Do a barrel roll!
Originally posted by gus248 View Post
ok you will need a clean patch so download it here:

You must login or register to view this content.

just click direct download


now under player spawned put those codes but make sure you dont have to player spawned or you will get a syntax error:mudkip:

if this dose not work for you then i will do it and make sure these go in the missions.gsc

i already have a cleaned patch and im trying to fix everything. the only thing i get in the syntax checker is: unkown function "vector_scal" on line 132
02-02-2011, 03:08 PM #15
Jared
Tranquility.
Originally posted by Evanrocks View Post
i already have a cleaned patch and im trying to fix everything. the only thing i get in the syntax checker is: unkown function "vector_scal" on line 132


link me ur syntax error checker

im loading up the patch i put em in if it works then i will send you link if not i will keep working on themOutie

---------- Post added at 09:08 AM ---------- Previous post was at 09:06 AM ----------

Originally posted by Evanrocks View Post
i already have a cleaned patch and im trying to fix everything. the only thing i get in the syntax checker is: unkown function "vector_scal" on line 132


i got a syntax error! ill keep on looking
02-02-2011, 03:11 PM #16
Evanrocks
Do a barrel roll!
Originally posted by gus248 View Post
link me ur syntax error checker

im loading up the patch i put em in if it works then i will send you link if not i will keep working on themOutie

---------- Post added at 09:08 AM ---------- Previous post was at 09:06 AM ----------



i got a syntax error! ill keep on looking


i used the sintax checker on ffviewer

i think i might have fixed some things in the patch heres the link to the newest one i have.
You must login or register to view this content.
02-02-2011, 03:12 PM #17
Jared
Tranquility.
Originally posted by Evanrocks View Post
i used the sintax checker on ffviewer

i think i might have fixed some things in the patch heres the link to the newest one i have.
You must login or register to view this content.


yea i think that is 2.56??!!? something like that but it gives out some fake errors at times because i have put in a mossy patch never touched by me but works online and it gave me aton of errors
02-02-2011, 03:15 PM #18
Evanrocks
Do a barrel roll!
Originally posted by gus248 View Post
yea i think that is 2.56??!!? something like that but it gives out some fake errors at times because i have put in a mossy patch never touched by me but works online and it gave me aton of errors


ohh ok but when i try my patches in the ps3 it gives me a black screen and i dont have mw2 for pc...
02-02-2011, 03:16 PM #19
Jared
Tranquility.
Originally posted by Evanrocks View Post
i used the sintax checker on ffviewer

i think i might have fixed some things in the patch heres the link to the newest one i have.
You must login or register to view this content.


ok well i was doing my own and i cant seem to get if and i know everything is right!

---------- Post added at 09:16 AM ---------- Previous post was at 09:15 AM ----------

Originally posted by Evanrocks View Post
ohh ok but when i try my patches in the ps3 it gives me a black screen and i dont have mw2 for pc...


what is the code on the back of your game like mines BLUS30377

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo