(421) : error 017: undefined symbol "name"
(421) : error 017: undefined symbol "value"
(422) : error 017: undefined symbol "name"
(422) : error 017: undefined symbol "value"
INI_String("Admin", Admin1, 48); // 421
INI_String("Reason", Reason, 128); // 422
|
I Know How To Define But There Is No "Name" Or "Value" In My Script -.-
|
#define INI_String(%1,%2,%3) \
if(!strcmp((%1),name,true))return strcpy(%2,value,%3)
; // 421 ETC.. under a callback ?
public OnPlayerConnect(playerid)
{
new string[256];
new targetid;
new pTargetName[24];
new pName[MAX_PLAYER_NAME];
GetPlayerName(playerid,pName,24);
GetPlayerName(targetid,pTargetName,24);
new file2[128],ip[16];
GetPlayerIp(playerid,ip,16);
format(file2,sizeof(file2),"User_Database/Logs/Bans/%s.ini",ip);
if(fexist(file2))
{
new Admin1[48], Reason[128];
new INI:handler = INI_Open(file2);
INI_String("Admin", Admin1, 48);
INI_String("Reason", Reason, 128);
format(string,sizeof(string),""COL_RED"\t\tAccount "COL_YELLOW"\"%s\""COL_RED"Since Your Banned We Would Like You To Read These Following Details!\nYour name: %s \nAdmin name: %s \nReason: %s \nYour IP Address: %s",pTargetName,pName,Admin1,Reason,ip);
ShowPlayerDialog(playerid,9,DIALOG_STYLE_MSGBOX,""COL_RED"BANNED",string,"OK","");
INI_Close(handler);
Kick(playerid);
return 1;
}
}