26.06.2011, 23:33
pawn Код:
COMMAND:recruit(playerid,params[])
{
new f[60];
if(PlayerInfo[playerid][pFrank] <9) return SendClientMessage(playerid,COLOR_GREY,"You have to be rank 9 in a faction to use this command");
if(sscanf(params,"u",id)) return SendClientMessage(playerid,COLOR_GREY,"/recruit [playerid]");
GetPlayerName(playerid,Name,sizeof(Name));
f = dini_Get(file, "Faction");
format(String,sizeof(String),"You are invited for %s by %s",f,Name);
ShowPlayerDialog(playerid,FINVITE,DIALOG_STYLE_MSGBOX,"Invited",String,"","");
return 1;
}
Код:
C:\Users\Bart\Desktop\infinityrp\gamemodes\infinityrp.pwn(510) : error 047: array sizes do not match, or destination array is too small Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error.
pawn Код:
f = dini_Get(file, "Faction");