Hi Leute,
ich benutze: http://forum.sa-mp.com/index.php?topic=23931.630 <-- dieses Plugin...
Leider bekomme ich ständig Errors und ich weiß nicht an was es liegt
public OnPlayerLogin(playerid,password[])
{
MySQLConnect(MYSQL_HOST, MYSQL_USER, MYSQL_PASS, MYSQL_DB);
new cash,lvl;
new playername2[MAX_PLAYER_NAME],query[256],string[256],fetch;
GetPlayerName(playerid, playername2, sizeof(playername2));
format(query,sizeof query,"SELECT * FROM username WHERE username = '%s'",playername2);
fetch = samp_mysql_query(query);
samp_mysql_fetch_row(fetch);
samp_mysql_get_field("password", PlayerInfo[playerid][pPassword]);
if(strcmp(PlayerInfo[playerid][pPassword],password, true ) == 0 )
{
samp_mysql_get_field("money", cash);
GivePlayerMoney(playerid,cash);
samp_mysql_get_field("score", lvl);
SetPlayerScore(playerid,lvl);
samp_mysql_get_field("adminlevel", PlayerInfo[playerid][pAdmin]);
samp_mysql_get_field("ban", PlayerInfo[playerid][pBan]);
if(PlayerInfo[playerid][pBan] == 1){
SendClientMessage(playerid, Weiss, "NeS-Bot (germ.): Du bist von NeS-Freeroam verbannt!");
SendClientMessage(playerid, Weiss, "NeS-Bot (engl.): You're Banned From This Server.");
Ban(playerid);
return 1;
}
samp_mysql_get_field("warns",PlayerInfo[playerid][pWarn]);
if(PlayerInfo[playerid][pWarn] >= 1){
format(string,sizeof string,"SERVER: Achtung! Du hast %d von max. 3 Verwarnungen!",PlayerInfo[playerid][pWarn]);
SendClientMessage(playerid,Weiss,string);
if(PlayerInfo[playerid][pWarn] >= 3){
SendClientMessage(playerid, Weiss, "SERVER: Du hast 3 oder mehr Verwarnungen und wirst nun gebannt.");
Ban(playerid);
return 1;
}
return 1;
}
samp_mysql_get_field("time",PlayerInfo[playerid][pTime]);
format(string, sizeof string,"SERVER: Du hast bis jetzt %d Minuten hier gespielt!",PlayerInfo[playerid][pTime]);
SendClientMessage(playerid,Weiss,string);
return 1;
}
else
{
SendClientMessage(playerid, COLOR_WHITE, "SERVER: Password does not match your name.");
return 1;
}
samp_mysql_close();
return 1;
}
G:\Scripting\SA-MP\__SCRIPTING__\NeS Freeroam\Version 1.30\mit LUCY-Script\NeS-Reg.pwn(1982) : error 035: argument type mismatch (argument 1)
G:\Scripting\SA-MP\__SCRIPTING__\NeS Freeroam\Version 1.30\mit LUCY-Script\NeS-Reg.pwn(1986) : error 035: argument type mismatch (argument 2)
G:\Scripting\SA-MP\__SCRIPTING__\NeS Freeroam\Version 1.30\mit LUCY-Script\NeS-Reg.pwn(1989) : error 035: argument type mismatch (argument 2)
G:\Scripting\SA-MP\__SCRIPTING__\NeS Freeroam\Version 1.30\mit LUCY-Script\NeS-Reg.pwn(1996) : warning 217: loose indentation
G:\Scripting\SA-MP\__SCRIPTING__\NeS Freeroam\Version 1.30\mit LUCY-Script\NeS-Reg.pwn(200acht) : warning 217: loose indentation
G:\Scripting\SA-MP\__SCRIPTING__\NeS Freeroam\Version 1.30\mit LUCY-Script\NeS-Reg.pwn(2013) : warning 217: loose indentation
G:\Scripting\SA-MP\__SCRIPTING__\NeS Freeroam\Version 1.30\mit LUCY-Script\NeS-Reg.pwn(2015) : warning 217: loose indentation
G:\Scripting\SA-MP\__SCRIPTING__\NeS Freeroam\Version 1.30\mit LUCY-Script\NeS-Reg.pwn(2025) : warning 225: unreachable code
G:\Scripting\SA-MP\__SCRIPTING__\NeS Freeroam\Version 1.30\mit LUCY-Script\NeS-Reg.pwn(1981) : warning 204: symbol is assigned a value that is never used: "fetch"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
3 Errors.
Alles anzeigen
Ich hoffe ihr könnt mir helfen
LG Wutschkooo