File = INI_Open(path);
name = INI_String(File,"Nick");
reason = INI_String(File,"Reason");
aname = INI_String(File,"Banned_by");
date = INI_String(File,"Date");
time = INI_String(File,"Time");
format(msg,128,"Nick: %s | Banned by: %s | Reason: %s | Time: %s | Date: %s",name,aname,reason,time,date);
[Ban Info] Nick = [MG]Dimi Banned_by = [MG]Dimi Reason = Test Date = 15:06:46 Time = 16.10.2011
File = INI_Open(path);
name = INI_String(File,"Nick",128);
reason = INI_String(File,"Reason",128);
aname = INI_String(File,"Banned_by",128);
date = INI_String(File,"Date",128);
time = INI_String(File,"Time",128);
format(msg,128,"Nick: %s | Banned by: %s | Reason: %s | Time: %s | Date: %s",name,aname,reason,time,date);
1) Adding lenght wont work since its saying Undefined symbol, not "Number of arguments, does not match the definition"
2) Kinda easier for me |
File = INI_Open(path);
name = INI_String(File,"Nick",25);
reason = INI_String(File,"Reason",25);
aname = INI_String(File,"Banned_by",25);
date = INI_String(File,"Date",25);
time = INI_String(File,"Time",25);
format(msg,128,"Nick: %s | Banned by: %s | Reason: %s | Time: %s | Date: %s",name,aname,reason,time,date);
INI_Close(File);
Im reading
EDIT: here. I added lenght. PHP код:
D:\Server\filterscripts\LVGW_ADMIN_FS.pwn(1587) : error 035: argument type mismatch (argument 1) D:\Server\filterscripts\LVGW_ADMIN_FS.pwn(1587) : error 001: expected token: ";", but found "return" D:\Server\filterscripts\LVGW_ADMIN_FS.pwn(1587) : fatal error 107: too many error messages on one line On each of these lines |