[POMOC]Errori za stats

Započeo Matrix_Green, Decembar 27, 2011, 10:55:29 PRE PODNE

prethodna tema - sledeća tema

0 članova i 3 gostiju pregledaju ovu temu.

Skripta:NX
Problem:promjenjivao sam statuse i izbacuje mi 4 errora coordsstring1,
errori
C:\Documents and Settings\Sandman\Desktop\Luka (Pocetci)\gamemodes\GGRP.pwn(13714) : error 017: undefined symbol "coordsstring1"
C:\Documents and Settings\Sandman\Desktop\Luka (Pocetci)\gamemodes\GGRP.pwn(13714) : error 017: undefined symbol "coordsstring1"
C:\Documents and Settings\Sandman\Desktop\Luka (Pocetci)\gamemodes\GGRP.pwn(13714) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Sandman\Desktop\Luka (Pocetci)\gamemodes\GGRP.pwn(13714) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


4 Errors.


Dio skripte:
public ShowStats(playerid,targetid)
{
    if(IsPlayerConnected(playerid)&&IsPlayerConnected(targetid))
{
new coordsstring[1005];
new ca =  GetPlayerCash(targetid);
new at[20];
  if(PlayerInfo[targetid][pSex] == 1) { at = "Musko"; }
else if(PlayerInfo[targetid][pSex] == 2) { at = "Zensko"; }
else if(PlayerInfo[targetid][pSex] == 0) { at = "Nepoznato"; }
  new ot[20];
  if(PlayerInfo[targetid][pOrigin] == 1) { ot = "Bosna"; }
else if(PlayerInfo[targetid][pOrigin] == 2) { ot = "Srbija"; }
else if(PlayerInfo[targetid][pOrigin] == 3) { ot = "Hrvatska"; }
else if(PlayerInfo[targetid][pOrigin] == 4) { ot = "Crna Gora"; }
else if(PlayerInfo[targetid][pOrigin] == 0) { ot = "Nepoznato"; }
new tt[20];
if(PlayerInfo[targetid][pMember] == 1 || PlayerInfo[targetid][pLeader] == 1) { tt = "LSPD"; }
else if(PlayerInfo[targetid][pMember] == 2 || PlayerInfo[targetid][pLeader] == 2) { tt = "FBI"; }
else if(PlayerInfo[targetid][pMember] == 3 || PlayerInfo[targetid][pLeader] == 3) { tt = "SWAT"; }
else if(PlayerInfo[targetid][pMember] == 4 || PlayerInfo[targetid][pLeader] == 4) { tt = "BAL"; }
else if(PlayerInfo[targetid][pMember] == 5 || PlayerInfo[targetid][pLeader] == 5) { tt = "LCN"; }
else if(PlayerInfo[targetid][pMember] == 6 || PlayerInfo[targetid][pLeader] == 6) { tt = "Yakuza"; }
else if(PlayerInfo[targetid][pMember] == 8 || PlayerInfo[targetid][pLeader] == 8) { tt = "Hitman"; }
else if(PlayerInfo[targetid][pMember] == 9 || PlayerInfo[targetid][pLeader] == 9) { tt = "CNN"; }
else if(PlayerInfo[targetid][pMember] == 7 || PlayerInfo[targetid][pLeader] == 9) { tt = "GSF"; }
else if(PlayerInfo[targetid][pMember] == 10 || PlayerInfo[targetid][pLeader] == 10) { tt = "Taxi"; }
else if(PlayerInfo[targetid][pMember] == 11 || PlayerInfo[targetid][pLeader] == 11) { tt = "SK"; }
else if(PlayerInfo[targetid][pMember] == 13 || PlayerInfo[targetid][pLeader] == 12) { tt = "MS13"; }
else if(PlayerInfo[targetid][pMember] == 12 || PlayerInfo[targetid][pLeader] == 13) { tt = "ESL"; }
else{ tt = "Nema"; }
new dt[20];
if(STDPlayer[targetid] == 1) { dt = "HIV"; }
else if(STDPlayer[targetid] == 2) { dt = "Sifilis"; }
else if(STDPlayer[targetid] == 3) { dt = "Triper"; }
else { dt = "Nema"; }
    new ft[22];
    if(PlayerInfo[targetid][pMember] == 4 || PlayerInfo[targetid][pLeader] == 4)
{ ft = "The Ballas"; }
if(PlayerInfo[targetid][pMember] == 4 || PlayerInfo[targetid][pLeader] == 4)
{ ft = "Hitman Agencija"; }
if(PlayerInfo[targetid][pMember] == 4 || PlayerInfo[targetid][pLeader] == 4)
{ ft = "Cable Network News"; }
if(PlayerInfo[targetid][pMember] == 11 || PlayerInfo[targetid][pLeader] == 11)
{ ft = "Dark Kings"; }
if(PlayerInfo[targetid][pMember] == 1 || PlayerInfo[targetid][pLeader] == 1)
{ ft = "Police Department"; }
if(PlayerInfo[targetid][pMember] == 10 || PlayerInfo[targetid][pLeader] == 10)
{ ft = "Taxi"; }
if(PlayerInfo[targetid][pMember] == 2 || PlayerInfo[targetid][pLeader] == 2)
{ ft = "FBI"; }
if(PlayerInfo[targetid][pMember] == 3 || PlayerInfo[targetid][pLeader] == 3)
{ ft = "SWAT"; }
  else if(PlayerInfo[targetid][pMember] == 5 || PlayerInfo[targetid][pLeader] == 5)
{ ft = "The Italian Mafia"; }
else if(PlayerInfo[targetid][pMember] == 6 || PlayerInfo[targetid][pLeader] == 6)
{ ft = "Yakuza"; }
else if(PlayerInfo[targetid][pMember] == 7 || PlayerInfo[targetid][pLeader] == 7)
{ ft = "GSF"; }
else if(PlayerInfo[targetid][pMember] == 12 || PlayerInfo[targetid][pLeader] == 13)
{ ft = "MS"; }
else if(PlayerInfo[targetid][pMember] == 13 || PlayerInfo[targetid][pLeader] == 12)
{ ft = "ESL"; }
else
{ ft = "Civil"; }

    new rt[64];
    if(PlayerInfo[targetid][pMember] == 5 || PlayerInfo[targetid][pLeader] == 5 || PlayerInfo[targetid][pMember] == 6 || PlayerInfo[targetid][pLeader] == 6)//The 2 Organisations
    {
        if(PlayerInfo[targetid][pRank] == 1) { rt = "Pocetnik"; }
else if(PlayerInfo[targetid][pRank] == 2) { rt = "Asistent"; }
else if(PlayerInfo[targetid][pRank] == 3) { rt = "Vojnik"; }
else if(PlayerInfo[targetid][pRank] == 4) { rt = "Izvrsioc"; }
else if(PlayerInfo[targetid][pRank] == 5) { rt = "Organizator"; }
  else if(PlayerInfo[targetid][pRank] == 6) { rt = "Godfather"; }
else { rt = "Outsider"; }
}
if(PlayerInfo[targetid][pMember] == 12 || PlayerInfo[targetid][pLeader] == 12 || PlayerInfo[targetid][pMember] == 13 || PlayerInfo[targetid][pLeader] == 13)//The 2 Organisations
    {
        if(PlayerInfo[targetid][pRank] == 1) { rt = "Pocetnik"; }
else if(PlayerInfo[targetid][pRank] == 2) { rt = "Gangster"; }
else if(PlayerInfo[targetid][pRank] == 3) { rt = "Ubica"; }
else if(PlayerInfo[targetid][pRank] == 4) { rt = "Izvrsioc"; }
else if(PlayerInfo[targetid][pRank] == 5) { rt = "Zamjenik"; }
  else if(PlayerInfo[targetid][pRank] == 6) { rt = "Sef"; }
else { rt = "Outsider"; }
}
else if(PlayerInfo[targetid][pMember] == 1 || PlayerInfo[targetid][pLeader] == 1)//PD Ranks
{
    if(PlayerInfo[targetid][pRank] == 1) { rt = "Kadet"; }
else if(PlayerInfo[targetid][pRank] == 2) { rt = "Officer"; }
else if(PlayerInfo[targetid][pRank] == 3) { rt = "Sergeant"; }
else if(PlayerInfo[targetid][pRank] == 4) { rt = "Lieutenant"; }
else if(PlayerInfo[targetid][pRank] == 5) { rt = "Captain"; }
        else if(PlayerInfo[targetid][pRank] == 6) { rt = "Chief"; }
else { rt = "Kadet"; }
}
else if(PlayerInfo[targetid][pMember] == 2 || PlayerInfo[targetid][pLeader] == 2)//FBI Ranks
{
    if(PlayerInfo[targetid][pRank] == 1) { rt = "Professional Staff"; }
else if(PlayerInfo[targetid][pRank] == 2) { rt = "Special Agent Trainee"; }
else if(PlayerInfo[targetid][pRank] == 3) { rt = "Special Agent"; }
else if(PlayerInfo[targetid][pRank] == 4) { rt = "Special Agent in Charge"; }
else if(PlayerInfo[targetid][pRank] == 5) { rt = "Assistant Director in Charge"; }
    else if(PlayerInfo[targetid][pRank] == 6) { rt = "Director"; }
else { rt = "Intern"; }
}
else if(PlayerInfo[targetid][pMember] == 3 || PlayerInfo[targetid][pLeader] == 3)//Swat Ranks
{
    if(PlayerInfo[targetid][pRank] == 1) { rt = "Private"; }
else if(PlayerInfo[targetid][pRank] == 2) { rt = "Sergeant"; }
else if(PlayerInfo[targetid][pRank] == 3) { rt = "Major"; }
else if(PlayerInfo[targetid][pRank] == 4) { rt = "Captain"; }
else if(PlayerInfo[targetid][pRank] == 5) { rt = "Lieutenant"; }
    else if(PlayerInfo[targetid][pRank] == 6) { rt = "General"; }
else { rt = "Private"; }
}
else if(PlayerInfo[targetid][pMember] == 8 || PlayerInfo[targetid][pLeader] == 8)//Hitman Ranks
{
    if(PlayerInfo[targetid][pRank] == 1) { rt = "Freelancer"; }
else if(PlayerInfo[targetid][pRank] == 2) { rt = "Marksman"; }
else if(PlayerInfo[targetid][pRank] == 3) { rt = "Agent"; }
else if(PlayerInfo[targetid][pRank] == 4) { rt = "Special Agent"; }
else if(PlayerInfo[targetid][pRank] == 5) { rt = "Vice-Director"; }
    else if(PlayerInfo[targetid][pRank] == 6) { rt = "Director"; }
else { rt = "Freelancer"; }
}
else if(PlayerInfo[targetid][pMember] == 9 || PlayerInfo[targetid][pLeader] == 9)//NR Ranks
{
    if(PlayerInfo[targetid][pRank] == 1) { rt = "Intern"; }
else if(PlayerInfo[targetid][pRank] == 2) { rt = "Local Reporter"; }
else if(PlayerInfo[targetid][pRank] == 3) { rt = "Local Editor"; }
else if(PlayerInfo[targetid][pRank] == 4) { rt = "Network Anchor"; }
else if(PlayerInfo[targetid][pRank] == 5) { rt = "Network Editor"; }
    else if(PlayerInfo[targetid][pRank] == 6) { rt = "Network Producer"; }
else { rt = "Intern"; }
}
else if(PlayerInfo[targetid][pMember] == 10 || PlayerInfo[targetid][pLeader] == 10)//Taxi Company Ranks
{
    if(PlayerInfo[targetid][pRank] == 1) { rt = "Trainee"; }
else if(PlayerInfo[targetid][pRank] == 2) { rt = "Taxi Rookie"; }
else if(PlayerInfo[targetid][pRank] == 3) { rt = "Cabbie"; }
else if(PlayerInfo[targetid][pRank] == 4) { rt = "Dispatcher"; }
else if(PlayerInfo[targetid][pRank] == 5) { rt = "Shift Supervisor"; }
    else if(PlayerInfo[targetid][pRank] == 6) { rt = "Taxi Company Owner"; }
else { rt = "Trainee"; }
}
else if(IsAnInstructor(targetid))//Driving/Flying School Ranks
{
    if(PlayerInfo[targetid][pRank] == 1) { rt = "Trainee"; }
else if(PlayerInfo[targetid][pRank] == 2) { rt = "Instructor"; }
else if(PlayerInfo[targetid][pRank] == 3) { rt = "Senior Instructor"; }
else if(PlayerInfo[targetid][pRank] == 4) { rt = "Manager"; }
else if(PlayerInfo[targetid][pRank] == 5) { rt = "Under Boss"; }
    else if(PlayerInfo[targetid][pRank] == 6) { rt = "Boss"; }
else { rt = "Trainee"; }
}
  else if(PlayerInfo[playerid][pMember] == 12 || PlayerInfo[playerid][pLeader] == 12)
    {
        if(PlayerInfo[targetid][pRank] == 1) { rt = "Gangster"; } // prvi rank
        else if(PlayerInfo[targetid][pRank] == 2) { rt = "Ubica"; } // drugi rank
        else if(PlayerInfo[targetid][pRank] == 3) { rt = "Manijak"; } // treci rank
        else if(PlayerInfo[targetid][pRank] == 4) { rt = "Pomagac"; } // cetvrti rank
        else if(PlayerInfo[targetid][pRank] == 5) { rt = "Asistent"; } // peti rank
        else if(PlayerInfo[targetid][pRank] == 6) { rt = "Boss"; } // sesti rank
        else { rt = "Pocetnik"; } // ako nije nista od toga
    }
    else if(PlayerInfo[playerid][pMember] == 13 || PlayerInfo[playerid][pLeader] == 13)
    {
        if(PlayerInfo[targetid][pRank] == 1) { rt = "Gangster"; } // prvi rank
        else if(PlayerInfo[targetid][pRank] == 2) { rt = "Ubica"; } // drugi rank
        else if(PlayerInfo[targetid][pRank] == 3) { rt = "Manijak"; } // treci rank
        else if(PlayerInfo[targetid][pRank] == 4) { rt = "Pomagac"; } // cetvrti rank
        else if(PlayerInfo[targetid][pRank] == 5) { rt = "Asistent"; } // peti rank
        else if(PlayerInfo[targetid][pRank] == 6) { rt = "Boss"; } // sesti rank
        else { rt = "Pocetnik"; } // ako nije nista od toga
    }
else
{
    rt = "Nema";
}
        new jt[20];
         if(GetPVarInt(targetid, "Posao") == 1) { jt = "Detektiv"; }
        else if(GetPVarInt(targetid, "Posao") == 2) { jt = "Advokat"; }
        else if(GetPVarInt(targetid, "Posao") == 3) { jt = "Prostitutka"; }
        else if(GetPVarInt(targetid, "Posao") == 4) { jt = "Uzgajivac droge"; }
        else if(GetPVarInt(targetid, "Posao") == 5) { jt = "Kradljivac Vozila"; }
        else if(GetPVarInt(targetid, "Posao") == 7) { jt = "AutoMehanicar"; }
        else if(GetPVarInt(targetid, "Posao") == 8) { jt = "Tjelohranitelj"; }
        else if(GetPVarInt(targetid, "Posao") == 9) { jt = "Diler Oruzjem"; }
        else if(GetPVarInt(targetid, "Posao") == 10) { jt = "Diler Vozila"; }
else if(GetPVarInt(targetid, "Posao") == 12) { jt = "Boxer"; }
        else if(GetPVarInt(targetid, "Posao") == 14) { jt = "Bus vozac"; }
        else if(GetPVarInt(targetid, "Posao") == 15) { jt = "Raznosac Novina"; }
        else if(GetPVarInt(targetid, "Posao") == 16) { jt = "Kamiondzija"; }
        else if(GetPVarInt(targetid, "Posao") == 17) { jt = "Seljak"; }
else if(GetPVarInt(targetid, "Posao") == 40) { jt = "Pilot"; }
else if(GetPVarInt(targetid, "Posao") == 96) { jt = "Diler Drogom"; }
else if(GetPVarInt(targetid, "Posao") == 68) { jt = "Elektricar"; }
        else { jt = "Nezaposlen"; }
new dra[20];
if(GetPVarInt(targetid, "DonatorRank")  == 1) { dra = "Bronzani Donator"; }
else if(GetPVarInt(targetid, "DonatorRank") == 2) { dra = "Srebreni Donator"; }
else if(GetPVarInt(targetid, "DonatorRank") == 3) { dra = "Zlatni donator"; }
else { dra = "Nema"; }
new ma[20];
strmid(ma, PlayerInfo[targetid][pMarriedTo], 0, strlen(PlayerInfo[targetid][pMarriedTo]), 255);
new a = PlayerInfo[targetid][pAge];
new p = PlayerInfo[targetid][pConnectTime];
new d = PlayerInfo[targetid][pDeaths];
new c = PlayerInfo[targetid][pCrimes];
new ar = PlayerInfo[targetid][pArrested];
new dr = PlayerInfo[targetid][pDrugs];
new m = PlayerInfo[targetid][pMats];

new le = PlayerInfo[targetid][pLevel];
new e = PlayerInfo[targetid][pExp];
new k = PlayerInfo[targetid][pKills];
new n = PlayerInfo[targetid][pPnumber];
new ac = PlayerInfo[targetid][pAccount];
new nl = PlayerInfo[targetid][pLevel]+1;
new ex = nl*levelexp;
new cl = nl*levelcost;//10k for testing purposes
new hk = PlayerInfo[targetid][pPhousekey];
new bk = PlayerInfo[targetid][pPbiskey];
new sk = PlayerInfo[targetid][pPsbiskey];

new po = PlayerInfo[targetid][pPayDayPoeni];
new hc = HireCar[targetid];
PlayerInfo[targetid][pKredit1] = k;
new name[MAX_PLAYER_NAME];
GetPlayerName(targetid, name, sizeof(name));
new Float:px,Float:py,Float:pz;
GetPlayerPos(targetid, px, py, pz);
new string1[128];
//SendClientMessage(playerid, 0x003BFFCE,"_______________________________________");
format(coordsstring1, sizeof(coordsstring1),"\n{00C0FF}- Igrac:{FFFFFF}[%s]\n{00C0FF}- Level:[%d]\n- Spol:[%s]\n- God:[%d]\n- Drzava:[%s]\n- Novac:[%d$]\n- Bank:[%d$]\n- Broj:[%d]", name,level,atext,age,otext,cash,account,pnumber);
format(coordsstring2, sizeof(coordsstring2),"\n{00C0FF}- Posao:[%s]\n- Organizacija:[%s]\n- Rank:[%s]\n- Tim:[%s]",jtext,ftext,rtext,ttext);
format(coordsstring3, sizeof(coordsstring3),"\n{00C0FF}- IgraSati:[%d]\n- Respekti:[%d/%d]\n- PayDay poeni[%d/6]\n- Ubistva:[%d]\n- Smrti:[%d]\n- Wanted:[%d]\n- Droga:[%d]\n- Materijali:[%d]\n- Upozorenja[%d/5]",ptime,exp,expamount,poeni,kills,deaths,wanted,drugs,mats,warns);
format(coordsstring4, sizeof(coordsstring4),"\n{FFFFFF}- Imovina:\n{00C0FF}- Kuca:[%d]\n- Firma:[%d]\n- Local:[%d]\n- Donator:[%s]",housekey,bizkey,local,drank);
format(string, 500," %s%s%s%s",coordsstring1,coordsstring2,coordsstring3,coordsstring4);
ShowPlayerDialog(playerid, 13, DIALOG_STYLE_MSGBOX,"{00C0FF}Osobna Iskaznica",string,"< Uredu >","");
}
}
}
}


dio na koji mi izbacuje errori taj 13714
format(coordsstring1, sizeof(coordsstring1),"\n{00C0FF}- Igrac:{FFFFFF}[%s]\n{00C0FF}- Level:[%d]\n- Spol:[%s]\n- God:[%d]\n- Drzava:[%s]\n- Novac:[%d$]\n- Bank:[%d$]\n- Broj:[%d]", name,level,atext,age,otext,cash,account,pnumber);
<a href="http://tinypic.com?ref=5l2yrb" target="_blank"><img src="http://i47.tinypic.com/5l2yrb.png" border="0" alt="Image and video hosting by TinyPic"></a>

Poviše toga stavi:

new coordsstring1[128];
new coordsstring2[128];
new coordsstring3[128];
new coordsstring4[128];



Inače, to šta ti je falilo, falila ti je 'definicija' string-a... (to ti govorim, da znaš za sljedeći put sam riješit ovakav error. ;)