Restarted scripting,some problems :S
Hi,i just restarted scripting and i tried to make a script without i relearned something.
Code:
|
I have many errors,show me what i did wrong so i can learn it
|
public advertising
needs a { on the next line the { after client_print(id, print_chat, "Your ping is: %s , And the time: %s",ping,curtime) needs to be a } and you need to close that function with a } |
Error: Start of function body without function header on line 50
is the { below advertising |
Code:
should be more like that... and get_user_time gives you how long the user has been playing in the server... also this never is called, you probably want a set_task or something |
Code:
Still some problems |
Code:
It would take me too long to look through all that, so tell me what errors you're getting |
Welcome to the AMX Mod X 1.60-300 Compiler.
Copyright (c) 1997-2005 ITB CompuPhase, AMX Mod X Team Warning: Loose indentation on line 17 Warning: Loose indentation on line 21 Warning: Loose indentation on line 23 Warning: Loose indentation on line 34 Warning: Loose indentation on line 35 Warning: Loose indentation on line 38 Warning: Loose indentation on line 40 Warning: Loose indentation on line 43 Error: Undefined symbol "id" on line 53 Warning: Expression has no effect on line 53 Warning: Expression has no effect on line 53 Error: Expected token: ";", but found ")" on line 53 Error: Invalid expression, assumed zero on line 53 Error: Too many error messages on one line on line 53 Compilation aborted. 4 Errors. |
This compiles
Code:
|
Code:
To show something on a client_putinserver is still way to early .. You have to delay it about 10 secs |
| All times are GMT -4. The time now is 20:23. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.