Bonjour,
Sachant que je commence à Dev en 1.7 j'ai une erreur que je comprend pas x)
public Action OnRoundStart(Handle event, char[], bool dontBroadcast)
error 001: expected token: "-identifier-", but found ","
D'où vient mon erreur ?
Et dîtes moi SMLIB n'est plus fonctionnel sous 1.7 ?
Et mon autre erreur
public Action OnTakeDamage(int client, &attacker, &inflictor, &float damage, &damagetype)
fatal error 189: too many error messages on one line
Et la dernière erreur
SDKUnhook(client, SDKHook_OnTakeDamage, OnTakeDamage);
Bout de code
public OnClientDisconnect(client){
if (IsClientInGame(client))
{
if(DvStart[client])
{
FinDv(client);
CPrintToChatAll("%s %N a déconnecté pendant sa dernière volonté", Prefix, client);
}
SDKUnhook(client, SDKHook_OnTakeDamage, OnTakeDamage);
}
}
error 100: function prototypes do not match
Sachant que je commence à Dev en 1.7 j'ai une erreur que je comprend pas x)
Citation:
public Action OnRoundStart(Handle event, char[], bool dontBroadcast)
D'où vient mon erreur ?
Et dîtes moi SMLIB n'est plus fonctionnel sous 1.7 ?
Et mon autre erreur
Citation:
public Action OnTakeDamage(int client, &attacker, &inflictor, &float damage, &damagetype)
Et la dernière erreur
Citation:
SDKUnhook(client, SDKHook_OnTakeDamage, OnTakeDamage);
Citation:
public OnClientDisconnect(client){
if (IsClientInGame(client))
{
if(DvStart[client])
{
FinDv(client);
CPrintToChatAll("%s %N a déconnecté pendant sa dernière volonté", Prefix, client);
}
SDKUnhook(client, SDKHook_OnTakeDamage, OnTakeDamage);
}
}