Raised This Month: $ Target: $400
 0% 

How do u write a code that


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Crazywelder1
Member
Join Date: Mar 2004
Location: CA
Old 02-21-2005 , 12:56   How do u write a code that
Reply With Quote #1

ok how do u write a code that tells u if the player hasn't moved after a certain amount of time(wherever he is)...

i know it has set_tassk in it and register_event but i dont understand on u do it??

Your time will be greatly appreciated..
__________________
AKA = oM`|Garrett
oM CLAN
Soon to have a server in Soon
Crazywelder1 is offline
Send a message via MSN to Crazywelder1
slurpycof
Senior Member
Join Date: Nov 2004
Old 02-21-2005 , 13:10  
Reply With Quote #2

http://forums.alliedmods.net/showthread.php?t=300

This is great plugin by CheesyPeteza and easy to read the code to see how to do it.
________
buy cheap vaporizer

Last edited by slurpycof; 01-19-2011 at 05:01.
slurpycof is offline
Crazywelder1
Member
Join Date: Mar 2004
Location: CA
Old 02-21-2005 , 19:55  
Reply With Quote #3

i ve read that and yet kinda understand maybe someone can explain it some what for example i have no clue wat i++ means does it mean add it(bad answer) ??
ty anyways but i need more detail
__________________
AKA = oM`|Garrett
oM CLAN
Soon to have a server in Soon
Crazywelder1 is offline
Send a message via MSN to Crazywelder1
Sp4rt4n
Senior Member
Join Date: Dec 2004
Old 02-21-2005 , 21:28  
Reply With Quote #4

im kinda a scripting noob, but i think i++ is the value of i plus 1...
Sp4rt4n is offline
Send a message via MSN to Sp4rt4n
TotalNoobScripter
Senior Member
Join Date: Aug 2004
Old 02-22-2005 , 09:08  
Reply With Quote #5

bingo.
TotalNoobScripter is offline
Send a message via AIM to TotalNoobScripter
PM
hello, i am pm
Join Date: Jan 2004
Location: Canalization
Old 02-22-2005 , 12:47  
Reply With Quote #6

Quote:
Originally Posted by Sp4rt4n
im kinda a scripting noob, but i think i++ is the value of i plus 1...
i++ increments i by 1. The value of i++ itself is i though.

++i does the same, but its value is the incremented value.
__________________
hello, i am pm
PM is offline
BlueRaja
Senior Member
Join Date: Nov 2004
Old 02-22-2005 , 21:54  
Reply With Quote #7

Quote:
Originally Posted by PM
Quote:
Originally Posted by Sp4rt4n
im kinda a scripting noob, but i think i++ is the value of i plus 1...
i++ increments i by 1. The value of i++ itself is i though.

++i does the same, but its value is the incremented value.
Code:
//ex. new i = 6 new j j = i++ //i is 7, j is 6 j = i++ //i is 8, j is 7 j = ++i //i is 9, j is 9 j = ++i //i is 10, j is 10
__________________
STEPS IN TROUBLESHOOTING <insert anything here>:
1. Narrow down the problem to a specific condition or conditions.
2. Fix it.
BlueRaja is offline
Send a message via AIM to BlueRaja Send a message via MSN to BlueRaja
TotalNoobScripter
Senior Member
Join Date: Aug 2004
Old 02-23-2005 , 13:16  
Reply With Quote #8

ah so thats the diff from ++i and i++ , *re-edits lots of his code*
TotalNoobScripter is offline
Send a message via AIM to TotalNoobScripter
BlueRaja
Senior Member
Join Date: Nov 2004
Old 02-23-2005 , 17:01  
Reply With Quote #9

It doesn't make a difference which you use, unless you specifically need the variable to be incremented before/after the expression is evaluated.
__________________
STEPS IN TROUBLESHOOTING <insert anything here>:
1. Narrow down the problem to a specific condition or conditions.
2. Fix it.
BlueRaja is offline
Send a message via AIM to BlueRaja Send a message via MSN to BlueRaja
Crazywelder1
Member
Join Date: Mar 2004
Location: CA
Old 02-24-2005 , 20:17  
Reply With Quote #10

sorry for not replying for a while but thank you all it helps alot!!! thank you again very aprreciated..
__________________
AKA = oM`|Garrett
oM CLAN
Soon to have a server in Soon
Crazywelder1 is offline
Send a message via MSN to Crazywelder1
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 14:02.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode