Hey Breadfisher,
Ich schreibe gerade mein Selfmade auf MySQL um das klappt auch ganz gut mit dem Tutorial von Maddin Link!
Bloß ich bekomme beii dem Stock "LoadPlayer" errors und ich bekomme sie nicht weg
Kann mir vielleicht helfen?
Stock LoadPlayer
stock LoadPlayer(playerid)
{
if(IsPlayerConnected(playerid) && !IsPlayerNPC(playerid))//Wir fragen ab ob der angegebene Spieler auch Online ist, und kein NPC ist (nur zur sicherhheit)
{
SetPVarInt(playerid,"Level") = mysql_GetInt("accounts", "Level", "Name", SpielerName(playerid)); //Wir holen uns den wert der unter "Level" eingetragen ist und Speichern ihn in unserer Variable.
SetPVarInt(playerid,"Geld") = mysql_GetInt("accounts", "Geld", "Name", SpielerName(playerid)); //Wir holen uns den wert der unter "Geld" eingetragen ist und Speichern ihn in unserer Variable.
SetPVarInt(playerid,"Adminleve") = mysql_GetInt("accounts", "Adminlevel", "Name", SpielerName(playerid));
SetPVarInt(playerid,"Fraktion") = mysql_GetInt("accounts", "Fraktion", "Name", SpielerName(playerid));
SetPVarInt(playerid,"Leader") = mysql_GetInt("accounts", "Leader", "Name", SpielerName(playerid));
SetPVarInt(playerid,"Mitglied") = mysql_GetInt("accounts", "Mitglied", "Name", SpielerName(playerid));
SetPVarInt(playerid,"FRang") = mysql_GetInt("accounts", "FRang", "Name", SpielerName(playerid));
SetPVarInt(playerid,"Premium") = mysql_GetInt("accounts", "Premium", "Name", SpielerName(playerid));
SetPVarInt(playerid,"FLicense") = mysql_GetInt("accounts", "FLicense", "Name", SpielerName(playerid));
SetPVarInt(playerid,"PremiumPunkte") = mysql_GetInt("accounts", "PremiumPunkte", "Name", SpielerName(playerid));
SetPVarInt(playerid,"Skin") = mysql_GetInt("accounts", "Skin", "Name", SpielerName(playerid));
SetPVarInt(playerid,"firstskin") = mysql_GetInt("accounts", "firstskin", "Name", SpielerName(playerid));
SetPVarInt(playerid,"Banned") = mysql_GetInt("accounts", "Banned", "Name", SpielerName(playerid));
if(GetPVarInt(playerid,"Banned")==1)
{
SCM(playerid,rot,"Du bist vom Server gebannt!");
Kick(playerid);
}
SetPVarInt(playerid,"loggedin",1);
}
return 1;
}
Errors
C:\Users\Mike\Desktop\samp03dsvr_win32\gamemodes\selfmadeMySQL.pwn(3103) : warning 202: number of arguments does not match definition
C:\Users\Mike\Desktop\samp03dsvr_win32\gamemodes\selfmadeMySQL.pwn(3103) : error 022: must be lvalue (non-constant)
C:\Users\Mike\Desktop\samp03dsvr_win32\gamemodes\selfmadeMySQL.pwn(3104) : warning 202: number of arguments does not match definition
C:\Users\Mike\Desktop\samp03dsvr_win32\gamemodes\selfmadeMySQL.pwn(3104) : error 022: must be lvalue (non-constant)
C:\Users\Mike\Desktop\samp03dsvr_win32\gamemodes\selfmadeMySQL.pwn(3105) : warning 202: number of arguments does not match definition
C:\Users\Mike\Desktop\samp03dsvr_win32\gamemodes\selfmadeMySQL.pwn(3105) : error 022: must be lvalue (non-constant)
C:\Users\Mike\Desktop\samp03dsvr_win32\gamemodes\selfmadeMySQL.pwn(3106) : warning 202: number of arguments does not match definition
C:\Users\Mike\Desktop\samp03dsvr_win32\gamemodes\selfmadeMySQL.pwn(3106) : error 022: must be lvalue (non-constant)
C:\Users\Mike\Desktop\samp03dsvr_win32\gamemodes\selfmadeMySQL.pwn(3107) : warning 202: number of arguments does not match definition
C:\Users\Mike\Desktop\samp03dsvr_win32\gamemodes\selfmadeMySQL.pwn(3107) : error 022: must be lvalue (non-constant)
C:\Users\Mike\Desktop\samp03dsvr_win32\gamemodes\selfmadeMySQL.pwn(3108) : warning 202: number of arguments does not match definition
C:\Users\Mike\Desktop\samp03dsvr_win32\gamemodes\selfmadeMySQL.pwn(3108) : error 022: must be lvalue (non-constant)
C:\Users\Mike\Desktop\samp03dsvr_win32\gamemodes\selfmadeMySQL.pwn(3109) : warning 202: number of arguments does not match definition
C:\Users\Mike\Desktop\samp03dsvr_win32\gamemodes\selfmadeMySQL.pwn(3109) : error 022: must be lvalue (non-constant)
C:\Users\Mike\Desktop\samp03dsvr_win32\gamemodes\selfmadeMySQL.pwn(3110) : warning 202: number of arguments does not match definition
C:\Users\Mike\Desktop\samp03dsvr_win32\gamemodes\selfmadeMySQL.pwn(3110) : error 022: must be lvalue (non-constant)
C:\Users\Mike\Desktop\samp03dsvr_win32\gamemodes\selfmadeMySQL.pwn(3111) : warning 202: number of arguments does not match definition
C:\Users\Mike\Desktop\samp03dsvr_win32\gamemodes\selfmadeMySQL.pwn(3111) : error 022: must be lvalue (non-constant)
C:\Users\Mike\Desktop\samp03dsvr_win32\gamemodes\selfmadeMySQL.pwn(3112) : warning 202: number of arguments does not match definition
C:\Users\Mike\Desktop\samp03dsvr_win32\gamemodes\selfmadeMySQL.pwn(3112) : error 022: must be lvalue (non-constant)
C:\Users\Mike\Desktop\samp03dsvr_win32\gamemodes\selfmadeMySQL.pwn(3113) : warning 202: number of arguments does not match definition
C:\Users\Mike\Desktop\samp03dsvr_win32\gamemodes\selfmadeMySQL.pwn(3113) : error 022: must be lvalue (non-constant)
C:\Users\Mike\Desktop\samp03dsvr_win32\gamemodes\selfmadeMySQL.pwn(3114) : warning 202: number of arguments does not match definition
C:\Users\Mike\Desktop\samp03dsvr_win32\gamemodes\selfmadeMySQL.pwn(3114) : error 022: must be lvalue (non-constant)
C:\Users\Mike\Desktop\samp03dsvr_win32\gamemodes\selfmadeMySQL.pwn(3115) : warning 202: number of arguments does not match definition
C:\Users\Mike\Desktop\samp03dsvr_win32\gamemodes\selfmadeMySQL.pwn(3115) : error 022: must be lvalue (non-constant)
C:\Users\Mike\Desktop\samp03dsvr_win32\gamemodes\selfmadeMySQL.pwn(4083) : warning 204: symbol is assigned a value that is never used: "string"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
13 Errors.
MFG Stein
P.S Kann es an den PVar´s liegen? im Tutorial ist das als Enum erklärt