Wilder Gaming Roleplay\gamemodes\WGRP.pwn(530) : error 047: array sizes do not match, or destination array is too small
Wilder Gaming Roleplay\gamemodes\WGRP.pwn(542) : error 047: array sizes do not match, or destination array is too small
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
2 Errors.
PlayerInfo[playerid][pSpol] = "musko"; // "musko" means male
PlayerInfo[playerid][pSpol] = "zensko"; // "zensko" means female
case DIALOG_SPOL:
{
if(!response) return Kick(playerid);
else if(response)
{
switch(listitem)
{
case 0:
{
PlayerInfo[playerid][pSpol] = "musko";
new INI:File = INI_Open(UserPath(playerid));
INI_SetTag(File,"Podatci");
INI_WriteString(File,"pSpol","musko");
INI_Close(File);
SendClientMessage(playerid,-1,"{0080FF}WG:{FFFFFF} Odabrali ste spol. Nastavljate dalje sa registracijom...");
ShowPlayerDialog(playerid,DIALOG_GODINE,DIALOG_STYLE_INPUT,"{FFFF00}Unesite godine","{FFFFFF}Molimo unesite vase {FFFF00}IC {FFFFFF}godine. Limit: 12-45","Unesi","Izlaz");
return 1;
}
case 1:
{
PlayerInfo[playerid][pSpol] = "zensko";
new INI:File = INI_Open(UserPath(playerid));
INI_SetTag(File,"Podatci");
INI_WriteString(File,"pSpol","zensko");
INI_Close(File);
SendClientMessage(playerid,-1,"{0080FF}WG:{FFFFFF} Odabrali ste spol. Nastavljate dalje sa registracijom...");
ShowPlayerDialog(playerid,DIALOG_GODINE,DIALOG_STYLE_INPUT,"{FFFF00}Unesite godine","{FFFFFF}Molimo unesite vase {FFFF00}IC {FFFFFF}godine. Limit: 12-45","Unesi","Izlaz");
return 1;
}
}
}
}
enum pInfo
{
pLozinka,
pEmail[40],
pNovac,
pSkin,
pAdministrator,
pAdminKod,
pSpol[20],
pGodine,
pUbojstava,
pSmrti
}
new PlayerInfo[MAX_PLAYERS][pInfo];
format (PlayerInfo[playerid][pSpol], 20, "musko");
format (PlayerInfo[playerid][pSpol], 20, "zensko");
PlayerInfo[playerid][pSpol][0] = EOS;
strcat (PlayerInfo[playerid][pSpol], "musko");//zensko
PHP код:
PHP код:
|