09.02.2015, 06:56
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)