strlen(inputtext)
#1

Hello! I have a big problem, I'm setting something easy, and is giving error ..

Код:
C:\Users\2\Desktop\gamemode\gamemodes\2.pwn(23907) : error 047: array sizes do not match, or destination array is too small
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
is something standard, and I can not change, I've tried to put anyway ..

PHP код:
PlayerInfo[playerid][pKey] = tmppass;
///
PlayerInfo[playerid][pKey] = strlen(inputtext); 
PHP код:
        if (strlen(inputtext))
        {
            new 
tmppass[64];
            
strmid(tmppassinputtext0strlen(inputtext), 255);
            
Encrypt(tmppass);
            
PlayerInfo[playerid][pKey] = tmppass//error
            
SendClientMessage(playerid, -1"<!> Password changed successfully.");
        } 
PHP код:
public Encrypt(string[])
{
    for(new 
x=0strlen(string); x++)
      {
          
string[x] += (3^x) * (15);
          if(
string[x] > (0xff))
          {
              
string[x] -= 256;
          }
      }
    return 
1;

Reply


Messages In This Thread
strlen(inputtext) - by SukMathcuck - 17.06.2015, 18:41
Re: strlen(inputtext) - by J0sh... - 17.06.2015, 18:47
Re: strlen(inputtext) - by Azula - 17.06.2015, 18:50
Re: strlen(inputtext) - by AndySedeyn - 17.06.2015, 18:53
Re: strlen(inputtext) - by Misiur - 17.06.2015, 19:07
Re: strlen(inputtext) - by SukMathcuck - 17.06.2015, 20:16

Forum Jump:


Users browsing this thread: 2 Guest(s)