subtracting time code
this code doesn't works
PHP Code:
|
Re: subtracting time code
I'm at no advanced level of PHP, but I believe an entry must already exist in order to use UPDATE. Are you getting an error?
Show your full code. |
Re: subtracting time code
i am not getting errors just some warnings
PHP Code:
|
Re: subtracting time code
What are the warnings you are getting?
|
Re: subtracting time code
/tmp/textseJfqW.sma(39) : warning 201: redefinition of constant/macro (symbol "SILVER")
/tmp/textseJfqW.sma(41) : warning 201: redefinition of constant/macro (symbol "ADMIN") /tmp/textseJfqW.sma(59) : warning 217: loose indentation /tmp/textseJfqW.sma(105) : warning 217: loose indentation /tmp/textseJfqW.sma(108) : warning 217: loose indentation /tmp/textseJfqW.sma(113) : warning 217: loose indentation /tmp/textseJfqW.sma(128) : warning 209: function "eCurWeapon" should return a value /tmp/textseJfqW.sma(134) : warning 217: loose indentation /tmp/textseJfqW.sma(135) : warning 217: loose indentation /tmp/textseJfqW.sma(137) : warning 217: loose indentation /tmp/textseJfqW.sma(163) : warning 217: loose indentation /tmp/textseJfqW.sma(173) : warning 217: loose indentation /tmp/textseJfqW.sma(373) : warning 203: symbol is never used: "colorChat" /tmp/textseJfqW.sma(373) : warning 203: symbol is never used: "findAnyPlayer" /tmp/textseJfqW.sma(373) : warning 203: symbol is never used: "g_addCvar" /tmp/textseJfqW.sma(373) : warning 203: symbol is never used: "messageSayText" /tmp/textseJfqW.sma(373) : warning 203: symbol is never used: "messageTeamInfo" |
Re: subtracting time code
there is no warning in this code
|
Re: subtracting time code
Those warnings do not apply to the code snippet you supplied
Now, back to your original question. Define "doesn't work". How do you know it is not working? What kind of debugging have you done? Are you sure it is even executing? Is the SQL server accepting your query and executing it without any errors? |
Re: subtracting time code
For loose indentation you can use Indenter,Click on Tools->Indenter
This should solve your 99% indentation warning. You have put these variables,But you are not using them,Put "//" before them to disable,If no warnings are given,Then you can delete those variables as you are not using them. /tmp/textseJfqW.sma(373) : warning 203: symbol is never used: "colorChat" /tmp/textseJfqW.sma(373) : warning 203: symbol is never used: "findAnyPlayer" /tmp/textseJfqW.sma(373) : warning 203: symbol is never used: "g_addCvar" /tmp/textseJfqW.sma(373) : warning 203: symbol is never used: "messageSayText" /tmp/textseJfqW.sma(373) : warning 203: symbol is never used: "messageTeamInfo" |
Re: subtracting time code
how will i know if the plugin works or not?
|
Re: subtracting time code
Quote:
|
| All times are GMT -4. The time now is 06:12. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.