04.01.2014, 12:09
I got this as warnings/errors:
Pastbin: http://pastebin.com/0QWEMrfe
Block of line 78: ( now line 63)
Код:
test.pwn(51) : warning 204: symbol is assigned a value that is never used: "PInfo" test.pwn(50) : warning 203: symbol is never used: "Argent" test.pwn(48) : warning 203: symbol is never used: "Password" test.pwn(47) : warning 203: symbol is never used: "Username" test.pwn(63) : error 035: argument type mismatch (argument 1) test.pwn(226) : error 017: undefined symbol "Logindialog" test.pwn(237) : warning 217: loose indentation test.pwn(285) : warning 217: loose indentation test.pwn(286) : warning 217: loose indentation test.pwn(286) : error 017: undefined symbol "GetPName" test.pwn(287) : error 035: argument type mismatch (argument 1) test.pwn(291) : error 017: undefined symbol "green" test.pwn(296) : error 017: undefined symbol "red" test.pwn(311) : error 035: argument type mismatch (argument 1) test.pwn(314) : error 017: undefined symbol "PInfo" test.pwn(314) : warning 215: expression has no effect test.pwn(314) : error 001: expected token: ";", but found "]" test.pwn(314) : error 029: invalid expression, assumed zero test.pwn(314) : fatal error 107: too many error messages on one line
Block of line 78: ( now line 63)
Код:
public OnPlayerConnect(playerid) { new Query[80],pName[24],string[164]; GetPlayerName(playerid,pName,24); format(Query,sizeof(Query),"SELECT `Username` FROM `Users` WHERE `Username` = '%s' LIMIT 1;",pName); mysql_query(Query); mysql_store_result(); if(mysql_num_rows() != 0)//if number of rows is different from 0 then continue { format(string,sizeof(string),"Hey, %s! \nYour account is registered.\nPlease enter the password to log in!",pName); ShowPlayerDialog(playerid,0,DIALOG_STYLE_INPUT,"Lo g in",string,"Login",""); } else { format(string,sizeof(string),"Hey, %s! \nYour account is not registered. \nPlease register to continue!",pName); ShowPlayerDialog(playerid,1,DIALOG_STYLE_INPUT,"Re gister",string,"Register",""); } mysql_free_result(); return true; }