16
Scripting SA-MP [Pawn center] / Re : samp 0.3
« le: 18 Octobre 2009, 18:13:44 »
J'ai mit cette callback je les un peu adapter a mon gm
Et j'ai sa comme erreur
Code: [Sélectionner]
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
new string2[64];
new File: UserFile = fopen(string2, io_read);
new tmppass[64];
new pName[24];
if(!IsPlayerAdmin(playerid)) return 0;
if(dialogid == 1)
{
if(!response)
{
new s[128];
format(s,sizeof(s),"Bienvenu, %s!\n\nIdentifier vous pour vous connecter!\n\nVeuillez tapez votre mot passe:",pName);
return ShowPlayerDialog(playerid,2,DIALOG_STYLE_INPUT,"Identification",s,"Connecter","Sortir");
}
if(IsPlayerConnected(playerid))
{
strmid(strval(tmppass), inputtext, 0, strlen(dialogid), 255);
OnPlayerLogin(playerid,tmppass);
}
else
{
SendClientMessage(playerid, COLOR_WHITE, "[Serveur:] Mauvais mot de passe.");
fclose(UserFile);
gPlayerLogTries[playerid] += 1;
if(gPlayerLogTries[playerid] == 4) { Ban(playerid); }
return 1;
}
}
return 0;
}
Et j'ai sa comme erreur
Citer
C:\Documents and Settings\(49504) : error 035: argument type mismatch (argument 1)
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
2 Errors.