PHP Code:
public requestip(P) {
new cmd[300];
format(cmd,299,"IP %s",P)
socket_send(bothost,cmd,512)
}
/*
\
\
\
*/
new test = get_player_id(killername); //120 Line
new test2 = get_player_name(test); //121 Line
/*
\
\
\
*/
for( new i = 0; i < iNumPlayers; i++ )
{
strtok( botcmd, szPlayerNames[ i + 1 ], charsmax( szPlayerNames[ ] ), botcmd, charsmax( botcmd ), ' ', 1 );
player[ i + 1 ] = szPlayerNames[ i + 1 ]
requestip(player[i+1],i + 1); //585 Line
}
/*
\
\
\
*/
if (equali(arg1,"IP"))
{
new useID = arg2; //614
new useIP[32];
format(useIP,31,"%s",arg3)
format(ips[useID],31,"%s",useIP)
}
/*
\
\
\
*/
get_player_id(p_r[]) {
new get[32];
format(get,31,"%s",p_r);
for ( new i = 1; i <= iNumPlayers + subs; i++ )
{
if (equali(player[i],get))
{
return i;
}
}
return 0;
}
/*
\
\
\
*/
get_player_name(p_i) {
new num=p_i;
if (strlen(player[num]) > 0) {
return player[num];
}
return 0; //640 Line
}
Welcome to the AMX Mod X 1.8.1-300 Compiler.
Copyright (c) 1997-2006 ITB CompuPhase, AMX Mod X Team
Error: Argument type mismatch (argument 1) on line 120
Error: Array must be indexed (variable "-unknown-") on line 121
Error: Argument type mismatch (argument 1) on line 585
Error: Array must be indexed (variable "-unknown-") on line 614
Error: Inconsistent return types (array & non-array) on line 640
__________________
function rb return $regsubex($$1-,/(.)/g,$+($chr(2) $+ $chr(3),$r(2,15),$chr(2),\1))