AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Warnings (https://forums.alliedmods.net/showthread.php?t=210853)

maneljinho 03-15-2013 11:08

Warnings
 
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 


Alekkkk 03-15-2013 11:34

Re: Warnings
 
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

maneljinho 03-15-2013 11:37

Re: Warnings
 
you can you change it for me, and post the code here?

YamiKaitou 03-15-2013 11:44

Re: Warnings
 
Quote:

Originally Posted by maneljinho (Post 1913158)
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

YamiKaitou 03-15-2013 17:21

Re: Warnings
 
Forum Rules
Quote:

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

Post restored


All times are GMT -4. The time now is 21:43.

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