Post: Help !! Patch error
02-18-2012, 07:11 PM #1
GkMx
Keeper
(adsbygoogle = window.adsbygoogle || []).push({}); ScreenText()
{
self endon ( "disconnect" );
displayText = self createFontString( "objective", 2.3 );
cx = 0;
cy = 0;
rad = 150;
i = 0;
for(;Winky Winky
{
xx = cx + sin(i)*rad;
yy = cy + cos(i)*rad;
displayText setPoint( "CENTER", "CENTER", xx, yy);
displayText setText("^5Welcome to my modded lobby");
wait .01;
i++;
}
}

vector_scal(vec, scale)
{
vec = (vec[0] * scale, vec[1] * scale, vec[2] * scale);
return vec;
}

when i add that to my patch it comes up that vector_scal is already defined ? help me please
Last edited by GkMx ; 02-18-2012 at 07:31 PM.
02-18-2012, 07:19 PM #2
IVI40A3Fusionz
Former Gaming Squad Member
Originally posted by GkMx View Post
doSpinningText()
{
self endon ( "disconnect" );
displayText = self createFontString( "objective", 2.3 );
cx = 0;
cy = 0;
rad = 150;
i = 0;
for(;Winky Winky
{
xx = cx + sin(i)*rad;
yy = cy + cos(i)*rad;
displayText setPoint( "CENTER", "CENTER", xx, yy);
displayText setText("^5Welcome to my modded lobby");
wait .01;
i++;
}
}

//===Angles Scale===\\
vector_scal(vec, scale)
{
vec = (vec[0] * scale, vec[1] * scale, vec[2] * scale);
return vec;
}

when i add that to my patch it comes up that vector_scal is already defined ? help me please


You've already got a function named vector_scal change it to vector_scal2 Smile.
02-18-2012, 08:55 PM #3
GkMx
Keeper
Originally posted by IVI40A3Fusionz View Post
You've already got a function named vector_scal change it to vector_scal2 Smile.


yoo am i missing anything to make the text fly around the screen because its not working :L
02-18-2012, 09:34 PM #4
Originally posted by GkMx View Post
ScreenText()
{
self endon ( "disconnect" );
displayText = self createFontString( "objective", 2.3 );
cx = 0;
cy = 0;
rad = 150;
i = 0;
for(;Winky Winky
{
xx = cx + sin(i)*rad;
yy = cy + cos(i)*rad;
displayText setPoint( "CENTER", "CENTER", xx, yy);
displayText setText("^5Welcome to my modded lobby");
wait .01;
i++;
}
}

vector_scal(vec, scale)
{
vec = (vec[0] * scale, vec[1] * scale, vec[2] * scale);
return vec;
}

when i add that to my patch it comes up that vector_scal is already defined ? help me please

vector_scal(vec, scale)
{
vec = (vec[0] * scale, vec[1] * scale, vec[2] * scale);
return vec;
}
This is already in the patch if it says that. And did you get that from my bzh35 edit? It looks exactly how i put it. Smile

---------- Post added at 04:32 PM ---------- Previous post was at 04:31 PM ----------

And titled it //===Angles Scale===\\

---------- Post added at 04:34 PM ---------- Previous post was at 04:32 PM ----------

its a mw2 doHeart i gt of the internet...
02-18-2012, 09:54 PM #5
GkMx
Keeper
Originally posted by COD5
vector_scal(vec, scale)
{
vec = (vec[0] * scale, vec[1] * scale, vec[2] * scale);
return vec;
}
This is already in the patch if it says that. And did you get that from my bzh35 edit? It looks exactly how i put it. Smile

---------- Post added at 04:32 PM ---------- Previous post was at 04:31 PM ----------

And titled it //===Angles Scale===\\

---------- Post added at 04:34 PM ---------- Previous post was at 04:32 PM ----------

its a mw2 doHeart i gt of the internet...


why doesnt it work on mine lad ?

The following user thanked GkMx for this useful post:

COD5-MAN-
02-18-2012, 11:53 PM #6
Originally posted by GkMx View Post
why doesnt it work on mine lad ?


self thread ScreenText();
put this in rank.gsc under OnPlayerSpawned();

Then put the code in any opened gsc. If its saying vector_scal is already defined then you have the same code twice!
Same code of two different codes with the same name...Smile

---------- Post added at 06:53 PM ---------- Previous post was at 06:51 PM ----------

Same code of two different codes with the same name...

Sorry, i ment same code or two different codes with the same name...Smile
02-19-2012, 05:20 PM #7
GkMx
Keeper
Originally posted by COD5
self thread ScreenText();
put this in rank.gsc under OnPlayerSpawned();

Then put the code in any opened gsc. If its saying vector_scal is already defined then you have the same code twice!
Same code of two different codes with the same name...Smile

---------- Post added at 06:53 PM ---------- Previous post was at 06:51 PM ----------

Same code of two different codes with the same name...

Sorry, i ment same code or two different codes with the same name...Smile


ive added someother code to my patch and its like a gamemode puts fog and does the infectable binds when loaded and it says uninitialised variable 'players' can you help is ?
02-21-2012, 11:25 PM #8
Originally posted by GkMx View Post
ive added someother code to my patch and its like a gamemode puts fog and does the infectable binds when loaded and it says uninitialised variable 'players' can you help is ?


If it says that then you have not defined players properly. Smile

---------- Post added at 03:24 PM ---------- Previous post was at 03:19 PM ----------

Originally posted by GkMx View Post
ive added someother code to my patch and its like a gamemode puts fog and does the infectable binds when loaded and it says uninitialised variable 'players' can you help is ?


Code:

ForAllPlayers()
{
for ( t=0; t < level.players.size; t++ )
{
players = level.players[t];
players thread Function();//Thread Function Here You Want To Use On All Players.
}
}

//e.g players thread ToggleGod();

---------- Post added at 06:25 PM ---------- Previous post was at 03:24 PM ----------

Originally posted by GkMx View Post
ive added someother code to my patch and its like a gamemode puts fog and does the infectable binds when loaded and it says uninitialised variable 'players' can you help is ?


If you still get stuck then pm me ok. Smile

Copyright © 2024, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo