[Tutorial] Mysql Register/Login system!
#41

Nice tutorial , thanks for it .
Reply
#42

Awesome tut.!
Reply
#43

It took me 20 minutes to fix your errors for myself.
Reply
#44

My errors
C:\Users\Alazam\Desktop\Samp\gamemodes\France.pwn( 46) : error 001: expected token: ";", but found "public"
C:\Users\Alazam\Desktop\Samp\gamemodes\France.pwn( 259) : error 017: undefined symbol "Logindialog"
C:\Users\Alazam\Desktop\Samp\gamemodes\France.pwn( 263) : error 017: undefined symbol "Regdialog"
C:\Users\Alazam\Desktop\Samp\gamemodes\France.pwn( 263) : error 017: undefined symbol "NPUT"
C:\Users\Alazam\Desktop\Samp\gamemodes\France.pwn( 263) : error 029: invalid expression, assumed zero
C:\Users\Alazam\Desktop\Samp\gamemodes\France.pwn( 263) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


6 Errors.


My script

http://pastebin.com/ccCincpV

What is the problem please?
Reply
#45

Quote:

C:\samp\gamemodes\dugi.pwn(60) : warning 204: symbol is assigned a value that is never used: "pInfo"
C:\samp\gamemodes\dugi.pwn(59) : warning 203: symbol is never used: "Money"
C:\samp\gamemodes\dugi.pwn(57) : warning 203: symbol is never used: "Password"
C:\samp\gamemodes\dugi.pwn(56) : warning 203: symbol is never used: "Username"
C:\samp\gamemodes\dugi.pwn(356) : error 017: undefined symbol "pInfo"
C:\samp\gamemodes\dugi.pwn(356) : warning 215: expression has no effect
C:\samp\gamemodes\dugi.pwn(356) : error 001: expected token: ";", but found "]"
C:\samp\gamemodes\dugi.pwn(356) : error 029: invalid expression, assumed zero
C:\samp\gamemodes\dugi.pwn(356) : fatal error 107: too many error messages on one line

These are all the errors I am getting and this is my code:
pawn Code:
stock load_stats(playerid)
{
    new pName[24], query[80];
    GetPlayerName(playerid, pName, 24);

    format(query, sizeof(query), "SELECT * FROM server_players WHERE playername = '%s'", pName);
    mysql_query(query);
    mysql_store_result();

    mysql_fetch_row_format(query, "|");
    sscanf(query, "e<p<|>s[24]s[23]i>", pInfo[playerid]);
    mysql_free_result();

    GivePlayerMoney(playerid, pInfo[playerid][Money]);

    return 1;
}
Can you please help me out?
Reply
#46

way to awful didn't help.
Reply
#47

UP,

I have the same problem...
Reply
#48

No ideas ?


Thank you.
Reply
#49

UP please...
Reply
#50

I Have Problem
Quote:

F:\Sa-mp 3z alimash\MYSQL Iranian DeathMatch\gamemodes\DeathMatch.pwn(95) : error 035: argument type mismatch (argument 1)
F:\Sa-mp 3z alimash\MYSQL Iranian DeathMatch\gamemodes\DeathMatch.pwn(96) : error 017: undefined symbol "mysql_store_result"
F:\Sa-mp 3z alimash\MYSQL Iranian DeathMatch\gamemodes\DeathMatch.pwn(97) : error 017: undefined symbol "mysql_fetch_row_format"
F:\Sa-mp 3z alimash\MYSQL Iranian DeathMatch\gamemodes\DeathMatch.pwn(9 : error 017: undefined symbol "PInfo"
F:\Sa-mp 3z alimash\MYSQL Iranian DeathMatch\gamemodes\DeathMatch.pwn(9 : warning 215: expression has no effect
F:\Sa-mp 3z alimash\MYSQL Iranian DeathMatch\gamemodes\DeathMatch.pwn(9 : error 001: expected token: ";", but found "]"
F:\Sa-mp 3z alimash\MYSQL Iranian DeathMatch\gamemodes\DeathMatch.pwn(9 : error 029: invalid expression, assumed zero
F:\Sa-mp 3z alimash\MYSQL Iranian DeathMatch\gamemodes\DeathMatch.pwn(9 : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


7 Errors.

Quote:

stock LoadStats(playerid)
{
new pName[24],Query[80];
GetPlayerName(playerid,pName,24);
format(Query, sizeof(Query), "SELECT * FROM `Users` WHERE `Username` = '%s' ", pName);
mysql_query(Query);//Line 95
mysql_store_result();//Line 96
mysql_fetch_row_format(Query, "|");//Line 97
sscanf(Query, "e<p<|>s[24]s[23]i>", PInfo[playerid]);//Line 98
mysql_free_result();
GivePlayerMoney(playerid,PInfo[playerid][Money]);
return 1;
}

Please Help Me
Reply
#51

would some1 help my with this i got 14 error did something wrong
Reply
#52

FU**ing images die :ccc
Reply
#53

Why is it not creating the Users table?
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)