17.12.2015, 10:28
Hi.
I need help with a code:
There are 2 errors:
Lines:
Whole code:
I need help with a code:
There are 2 errors:
PHP код:
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.
PHP код:
PlayerInfo[playerid][pSpol] = "musko"; // "musko" means male
PHP код:
PlayerInfo[playerid][pSpol] = "zensko"; // "zensko" means female
PHP код:
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;
}
}
}
}