[Errors] Array issues.
#3

Tried it, it gives me the following error:
Код:
C:\Users\Bradley\Documents\LVCRP lol\nycrpv10(1).pwn(92191) : error 033: array must be indexed (variable "marriedto")
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
pawn Код:
new giveplayerid = ReturnUser(inputtext);
        new HistoryString[1024];
        new giveplayer[MAX_PLAYER_NAME];
        new sext[24];
        format(giveplayer,sizeof(giveplayer), "%s", GetPlayerNameEx(giveplayerid));
        new marriedto[MAX_PLAYER_NAME];
        format(marriedto,sizeof(marriedto), "%s", PlayerInfo[giveplayerid][pMarriedTo]);
//        new imarriedto[MAX_PLAYER_NAME];
//        format(imarriedto,sizeof(imarriedto), "%s", GetPlayerNameEx(marriedto));
        new married[20];
        strmid(married, PlayerInfo[giveplayerid][pMarriedTo], 0, strlen(PlayerInfo[giveplayerid][pMarriedTo]), 255);
        if(PlayerInfo[marriedto][pSex] == 1) { sext = "Husband"; } else { sext = "Wife"; } // [ON THIS LINE]
        if(giveplayerid != INVALID_PLAYER_ID)
Reply


Messages In This Thread
[Errors] Array issues. - by bradleyofniet - 08.02.2015, 16:41
Re: [Errors] Array issues. - by JeaSon - 08.02.2015, 17:00
Re: [Errors] Array issues. - by bradleyofniet - 09.02.2015, 06:56
Re: [Errors] Array issues. - by bradleyofniet - 09.02.2015, 14:54
Re: [Errors] Array issues. - by bradleyofniet - 10.02.2015, 14:00
Re: [Errors] Array issues. - by JeaSon - 10.02.2015, 15:28
Re: [Errors] Array issues. - by bradleyofniet - 10.02.2015, 15:40
Re: [Errors] Array issues. - by JeaSon - 10.02.2015, 15:46
Re: [Errors] Array issues. - by bradleyofniet - 10.02.2015, 15:51
Re: [Errors] Array issues. - by bradleyofniet - 10.02.2015, 15:53

Forum Jump:


Users browsing this thread: 1 Guest(s)