06.01.2011, 20:06
(
Последний раз редактировалось Tetsuka; 06.01.2011 в 20:36.
)
Hi guys, i've got a problem here, dont know where it comes from:
Code:
Error:
Code:
pawn Код:
new age = PlayerInfo[targetid][pAge];
new ptime = PlayerInfo[targetid][pConnectTime];
new bigfish = PlayerInfo[targetid][pBiggestFish];
new arrests = PlayerInfo[targetid][pArrested];
new drugs = PlayerInfo[targetid][pDrugs];
new mats = PlayerInfo[targetid][pMats];
new level = PlayerInfo[targetid][pLevel];
new exp = PlayerInfo[targetid][pExp];
new pnumber = PlayerInfo[targetid][pPnumber];
new account = PlayerInfo[targetid][pAccount];
new nxtlevel = PlayerInfo[targetid][pLevel]+1;
new expamount = nxtlevel*levelexp;
new housekey = PlayerInfo[targetid][pPhousekey];
new bizkey = PlayerInfo[targetid][pPbiskey];
new intir = PlayerInfo[targetid][pInt];
new virworld = PlayerInfo[targetid][pVirWorld];
new local = PlayerInfo[targetid][pLocal];
new Float:health;
new name[MAX_PLAYER_NAME]; // HERE IS THE ERROR
GetPlayerName(targetid, name, sizeof(name));
GetPlayerHealth(targetid,health);
new Float:px,Float:py,Float:pz;
GetPlayerPos(targetid, px, py, pz);
new coordsstring[256];
format(coordsstring, sizeof(coordsstring),"_____________________________________| %s |_____________________________________",name);
SendClientMessage(playerid, COLOR_GREEN,coordsstring);
format(coordsstring, sizeof(coordsstring), "| Niveau:[%d] | Sexe:[%s] | Age:[%d] | Argent:[%d$] | Banque :[%d$] | Numero:[%d] | Rang:[%s] |", level,atext,age,cash,account,pnumber,drank);
SendClientMessage(playerid, COLOR_GRAD1,coordsstring);
format(coordsstring, sizeof(coordsstring), "| Heures jouйes:[%d] | Poissons:[%d] | Arrestations:[%d] | Job:[%s] | Respect:[%d/%d] |", ptime,bigfish,arrests,jtext,exp,expamount);
SendClientMessage(playerid, COLOR_GRAD2,coordsstring);
format(coordsstring, sizeof(coordsstring), "| Drogue:[%d] | Matos:[%d] | Team:[%s] | Faction:[%s] | Rang:[%s] |",drugs,mats,ttext,ftext,rtext);
SendClientMessage(playerid, COLOR_GRAD3,coordsstring);
format(coordsstring, sizeof(coordsstring), "| Radio:[%s] | Frequence:[%d] |",Radios, PlayerInfo[playerid][Frequence]);
SendClientMessage(playerid, COLOR_GRAD4,coordsstring);
if (PlayerInfo[playerid][pAdmin] >= 1)
{
format(coordsstring, sizeof(coordsstring), "| Maison: [%d] | Entreprise: [%d] | Clef: [%d] | Intйrieur:[%d] | Monde Virtuel:[%d] | Local[%d] |", housekey,bizkey,HireCar[targetid],intir,virworld,local);
SendClientMessage(playerid, COLOR_GRAD6,coordsstring);
}
SendClientMessage(playerid, COLOR_GREEN,"______________________________________________________________________");
Error:
Quote:
C:\Users\Zaknafein\Desktop\LAAAAA\gamemodes\miamir p.pwn(8955) : 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. |