error 006: must be assigned to an array
#7

Add this at the very bottom of your script.
From dutils.inc, thanks Draco:
pawn Код:
/**
 * Sets a string's value to source.
 * @param  dest
 *      source
 *      count
 */

stock set(dest[],source[]) {
    new count = strlen(source);
    new i=0;
    for (i=0;i<count;i++) {
        dest[i]=source[i];
    }
    dest[count]=0;
}
And use:
pawn Код:
new playerip[16];
GetPlayerIp(playerid,playerip,sizeof(playerip));
set(PlayerInfo[playerid][pIP],playerip);
Reply


Messages In This Thread
error 006: must be assigned to an array - by loleteviejo - 03.05.2009, 10:34
Re: error 006: must be assigned to an array - by loleteviejo - 04.05.2009, 07:53
Re: error 006: must be assigned to an array - by Andom - 04.05.2009, 08:04
Re: error 006: must be assigned to an array - by loleteviejo - 04.05.2009, 13:55
Re: error 006: must be assigned to an array - by carlo rizzi - 04.05.2009, 14:30
Re: error 006: must be assigned to an array - by HB - 04.05.2009, 14:35
Re: error 006: must be assigned to an array - by CracK - 04.05.2009, 15:32
Re: error 006: must be assigned to an array - by Donny_k - 04.05.2009, 16:09

Forum Jump:


Users browsing this thread: 1 Guest(s)