17.08.2015, 21:12
For the first function, you've declared 2 times the variable "x".
For the second function, have you already a variable global "pName" ?
Think to use the BBCode [php] or [code] when you post a code.
Код:
stock GetNumberOfPlayersOnThisIP(test_ip[])//&&&&&&&&&&&&&&&&&&&&&&&stock&&&&&&& { new against_ip[32+1]; new x = 0; //line 35 new ip_count = 0; for(new x, m = GetMaxPlayers(); x<m; x++) { //line 37 if(IsPlayerConnected(x)) { GetPlayerIp(x,against_ip,32); if(!strcmp(against_ip,test_ip)) ip_count++; } } return ip_count; }
Think to use the BBCode [php] or [code] when you post a code.