tq emistry ...i will try again ...
is there any strcharinfo(4) in the 1st place ?
BUILDIN_FUNC(strcharinfo)
{
TBL_PC *sd;
int num;
struct guild* g;
struct party_data* p;
sd=script_rid2sd(st);
if (!sd) { //Avoid crashing....
script_pushconststr(st,"");
return 0;
}
num=script_getnum(st,2);
switch(num){
case 0:
script_pushstrcopy(st,sd->status.name);
break;
case 1:
if( ( p = party_search(sd->status.party_id) ) != NULL )
{
script_pushstrcopy(st,p->party.name);
}
else
{
script_pushconststr(st,"");
}
break;
case 2:
if( ( g = guild_search(sd->status.guild_id) ) != NULL )
{
script_pushstrcopy(st,g->name);
}
else
{
script_pushconststr(st,"");
}
break;
case 3:
script_pushconststr(st,map[sd->bl.m].name);
break;
default:
ShowWarning("buildin_strcharinfo: unknown parameter.\n");
script_pushconststr(st,"");
break;
}
return 0;
}
shouldn't be like ... the server throw error for you ?
ShowWarning("buildin_strcharinfo: unknown parameter.\n");
yep i use faction system annie.. so it's extended number 4 it's player faction..