Raised This Month: $ Target: $400
 0% 

Warnings


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
maneljinho
Member
Join Date: Apr 2011
Old 03-15-2013 , 11:08   Warnings
Reply With Quote #1

PHP Code:
public check_table(){ 
new 
cache[1024], pos
pos 
formatex(cache1204"CREATE TABLE IF NOT EXISTS %s ( authid VARCHAR( 64 ), xp integer( 3 ) DEFAULT 0, level integer( 9 ) DEFAULT 0, punkty integer( 3 ) DEFAULT 0, Zycie integer( 3 ) DEFAULT 0,",g_sqlTable)
pos += formatex(cache[pos], 1023-pos"Kamizelka integer( 3 ) DEFAULT 0, Kamuflaz integer( 3 ) DEFAULT 0,Granaty integer( 3 ) DEFAULT 0, Odrodzenie1 integer( 3 ) DEFAULT 0,StalowaGlowa integer( 3 ) DEFAULT 0,Buty integer( 3 ) DEFAULT 0,BonusExp integer( 3 ) DEFAULT 0,RegeneracjaHP integer( 3 ) DEFAULT 0, ")
pos += formatex(cache[pos], 1023-pos"AntyFlash integer( 3 ) DEFAULT 0,Niewidzialnosc integer( 3 ) DEFAULT 0,Bron integer( 3 ) DEFAULT 0,Zoom integer( 3 ) DEFAULT 0,KameHame integer( 3 ) DEFAULT 0,Piorun integer( 3 ) DEFAULT 0,Pushe integer( 3 ) DEFAULT 0,")
pos += formatex(cache[pos], 1023-pos"Odbicie integer( 3 ) DEFAULT 0,Drop integer( 3 ) DEFAULT 0,Wykrywacz integer( 3 ) DEFAULT 0,PRIMARY KEY ( `authid`) );")
 
 
log_amx("create table query: %s"cache)
SQL_ThreadQuery(g_SqlTuple"handle_create_table"cache)
return 
PLUGIN_HANDLED
}
public 
handle_create_table(FailState,Handle:Query,Error[],Errcode,Data[],DataSize){
if(
FailState){
log_amx("SQL Error: %s (%d)"ErrorErrcode)
log_amx("Tabela %s , tworzenie przerwane ... "g_sqlTable)
return 
PLUGIN_HANDLED
}
log_amx("Tabela %s Stworzona..."g_sqlTable)
return 
PLUGIN_HANDLED 

Last edited by maneljinho; 03-22-2013 at 15:30.
maneljinho is offline
Alekkkk
Member
Join Date: Mar 2012
Location: Bulgaria
Old 03-15-2013 , 11:34   Re: Warnings
Reply With Quote #2

Warning: Unreachable code on line 683
Warning: Function "submenu2" should return a value on line 692

1. Move return PLUGIN_HANDLED to the end of the function ( line 692 )

Warning: Tag mismatch on line 1592
Warning: Tag mismatch on line 1602
...

2. Remove last param in all set_dhudmessage

Warning: Symbol is assigned a value that is never used: "LR_GRT" on line 1642
Warning: Symbol is never used: "PREFIX" on line 1642

3. Dont create them when you don't use them
__________________

Last edited by Alekkkk; 03-15-2013 at 11:34.
Alekkkk is offline
Send a message via Skype™ to Alekkkk
maneljinho
Member
Join Date: Apr 2011
Old 03-15-2013 , 11:37   Re: Warnings
Reply With Quote #3

you can you change it for me, and post the code here?
maneljinho is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 03-15-2013 , 11:44   Re: Warnings
Reply With Quote #4

Quote:
Originally Posted by maneljinho View Post
you can you change it for me, and post the code here?
Since this is Scripting Help, you are supposed to be able to fix it yourself. Simply use what you were told and make the needed corrections
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 03-15-2013 , 17:21   Re: Warnings
Reply With Quote #5

Forum Rules
Quote:
Do not blank out posts - if you solve your problem post the solution for others to find.

Post restored
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
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 21:43.


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