Raised This Month: $ Target: $400
 0% 

Compile error


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
ProIcons
Senior Member
Join Date: Jan 2009
Location: Greece - Salonica
Old 04-24-2011 , 06:51   Compile error
Reply With Quote #1

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 0iNumPlayersi++ )
{
                 
strtokbotcmdszPlayerNames], charsmaxszPlayerNames[ ] ), botcmdcharsmaxbotcmd ), ' ');
                 
player] = szPlayerNames]
                 
requestip(player[i+1],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 
1<= iNumPlayers subsi++ )
   {
      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))

Last edited by ProIcons; 04-24-2011 at 06:56.
ProIcons is offline
 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 20:07.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode