Gde gresim?

Započeo [IF] mariomako, Jun 24, 2010, 23:26:37 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Zasto mi dolazi do ove errore?

E:\SAMP Server\PittBull Stunt\gamemodes\pittbull.pwn(74) : error 028: invalid subscript (not an array or too many subscripts): "IgracInfo"
E:\SAMP Server\PittBull Stunt\gamemodes\pittbull.pwn(74) : warning 215: expression has no effect
E:\SAMP Server\PittBull Stunt\gamemodes\pittbull.pwn(74) : error 001: expected token: ";", but found "]"
E:\SAMP Server\PittBull Stunt\gamemodes\pittbull.pwn(74) : error 029: invalid expression, assumed zero
E:\SAMP Server\PittBull Stunt\gamemodes\pittbull.pwn(74) : fatal error 107: too many error messages on one line


a evo celi gamemod

#include <a_samp>

enum IgracInfo
{
Jezik
}

main()
{
print(" PittBull Stunt/DM");
print(" _________________");
print("     By: mariomako");
print(" ");
}

public OnGameModeInit()
{
SetGameModeText("Stunt/DM");
AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
return 1;
}

public OnGameModeExit()
{
return 1;
}

public OnPlayerRequestClass(playerid, classid)
{
SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
return 1;
}

public OnPlayerConnect(playerid)
{
   ShowPlayerDialog(playerid,5510,DIALOG_STYLE_LIST,"Odaberite svoj jezik [PICK YOUR LANGUAGE]","English\nCroatian","OK","/");
return 1;
}

public OnPlayerDisconnect(playerid, reason)
{
return 1;
}

public OnPlayerSpawn(playerid)
{
return 1;
}

public OnPlayerDeath(playerid, killerid, reason)
{
return 1;
}

public OnVehicleSpawn(vehicleid)
{
return 1;
}

public OnVehicleDeath(vehicleid, killerid)
{
return 1;
}

public OnPlayerText(playerid, text[])
{
return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp(cmdtext, "/rules", true) == 0)
{
if (IgracInfo[playerid][Jezik] == 1)
{
SendClientMessage(playerid, 0xAA3333AA, "===========================[ RULES ]======================================");
SendClientMessage(playerid, 0xAA3333AA, "OVDJE IDE TEXT AKO JE ODABRAO ENG.");
SendClientMessage(playerid, 0xAA3333AA, "Don cheat");
}
if (IgracInfo[playerid][Jezik] == 2)
{
SendClientMessage(playerid, 0xAA3333AA, "===========================[ PRAVILA ]======================================");
SendClientMessage(playerid, 0xAA3333AA, "OVDJE IDE TEXT AKO JE ODABRAO HRV.");
SendClientMessage(playerid, 0xAA3333AA, "Nemoj koristiti cheatove ili modove");
}
return 1;
}
return 0;
}

public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
return 1;
}

public OnPlayerExitVehicle(playerid, vehicleid)
{
return 1;
}

public OnPlayerStateChange(playerid, newstate, oldstate)
{
return 1;
}

public OnPlayerEnterCheckpoint(playerid)
{
return 1;
}

public OnPlayerLeaveCheckpoint(playerid)
{
return 1;
}

public OnPlayerEnterRaceCheckpoint(playerid)
{
return 1;
}

public OnPlayerLeaveRaceCheckpoint(playerid)
{
return 1;
}

public OnRconCommand(cmd[])
{
return 1;
}

public OnPlayerRequestSpawn(playerid)
{
return 1;
}

public OnObjectMoved(objectid)
{
return 1;
}

public OnPlayerObjectMoved(playerid, objectid)
{
return 1;
}

public OnPlayerPickUpPickup(playerid, pickupid)
{
return 1;
}

public OnVehicleMod(playerid, vehicleid, componentid)
{
return 1;
}

public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
{
return 1;
}

public OnVehicleRespray(playerid, vehicleid, color1, color2)
{
return 1;
}

public OnPlayerSelectedMenuRow(playerid, row)
{
return 1;
}

public OnPlayerExitedMenu(playerid)
{
return 1;
}

public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
{
return 1;
}

public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
return 1;
}

public OnRconLoginAttempt(ip[], password[], success)
{
return 1;
}

public OnPlayerUpdate(playerid)
{
return 1;
}

public OnPlayerStreamIn(playerid, forplayerid)
{
return 1;
}

public OnPlayerStreamOut(playerid, forplayerid)
{
return 1;
}

public OnVehicleStreamIn(vehicleid, forplayerid)
{
return 1;
}

public OnVehicleStreamOut(vehicleid, forplayerid)
{
return 1;
}

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
   if(dialogid == 5510 && response)
   {

       switch(listitem)
       {
           case 0:
           {
           IgracInfo[playerid][Jezik] =2; // Time se oznacuje engleski jezik
           SendClientMessage(playerid,0x00FFD2FF,"Your language is english");
           }
           case 1:
           {
           IgracInfo[playerid][Jezik] =1; // Time se oznacuje hrvatski jezik
           SendClientMessage(playerid,0x00FFD2FF,"Tvoj jezik je hrvatski");
           }
       }
   }
   return 0;
}

public OnPlayerClickPlayer(playerid, clickedplayerid, source)
{
return 1;
}


Molim vas hitno mi je!
Poslednja Izmena: Jun 24, 2010, 23:35:36 POSLE PODNE od Mario Velickovski

Citat: Smartex-Balkan|D~3~M~!~R poslato Jun 24, 2010, 23:33:58 POSLE PODNE
Mislim da trebas Dodat new IgracInfo i sve je rijeseno ??

samo vise errore

E:\SAMP Server\PittBull Stunt\gamemodes\pittbull.pwn(6) : error 021: symbol already defined: "IgracInfo"
E:\SAMP Server\PittBull Stunt\gamemodes\pittbull.pwn(76) : error 028: invalid subscript (not an array or too many subscripts): "IgracInfo"
E:\SAMP Server\PittBull Stunt\gamemodes\pittbull.pwn(76) : warning 215: expression has no effect
E:\SAMP Server\PittBull Stunt\gamemodes\pittbull.pwn(76) : error 001: expected token: ";", but found "]"
E:\SAMP Server\PittBull Stunt\gamemodes\pittbull.pwn(76) : error 029: invalid expression, assumed zero
E:\SAMP Server\PittBull Stunt\gamemodes\pittbull.pwn(76) : fatal error 107: too many error messages on one line

Citat: Smartex-Balkan|D~3~M~!~R poslato Jun 24, 2010, 23:33:58 POSLE PODNE
Mislim da trebas Dodat new IgracInfo i sve je rijeseno ??
ja mislim da to nije tako
jel vidis :
E:\SAMP Server\PittBull Stunt\gamemodes\pittbull.pwn(74) : error 001: expected token: ";", but found "]"
E:\SAMP Server\PittBull Stunt\gamemodes\pittbull.pwn(74) : error 029: invalid expression, assumed zero
E:\SAMP Server\PittBull Stunt\gamemodes\pittbull.pwn(74) : fatal error 107: too many error messages on one line

jel vidis sta je ovo to znaci da fali neka zagrada ili nesto a ja mu nemogunaci jer sam smotan xD i slip XD
ja mislim da t ifali zagrada .. ili ; ovo neznam xD :D
ali jamislim da sam u pravu

Citat: aleluja poslato Jun 24, 2010, 23:38:12 POSLE PODNE
Citat: Smartex-Balkan|D~3~M~!~R poslato Jun 24, 2010, 23:33:58 POSLE PODNE
Mislim da trebas Dodat new IgracInfo i sve je rijeseno ??
ja mislim da to nije tako
jel vidis :
E:\SAMP Server\PittBull Stunt\gamemodes\pittbull.pwn(74) : error 001: expected token: ";", but found "]"
E:\SAMP Server\PittBull Stunt\gamemodes\pittbull.pwn(74) : error 029: invalid expression, assumed zero
E:\SAMP Server\PittBull Stunt\gamemodes\pittbull.pwn(74) : fatal error 107: too many error messages on one line

jel vidis sta je ovo to znaci da fali neka zagrada ili nesto a ja mu nemogunaci jer sam smotan xD i slip XD
ja mislim da t ifali zagrada .. ili ; ovo neznam xD :D
ali jamislim da sam u pravu


evo taj line pa neznam gde fali ali radio sam po tutorijalu u tutorijalu je tako

      if (IgracInfo[playerid][Jezik] == 1)

http://balkan-samp.com/forum/index.php?topic=6127.msg51356#msg51356

nastoe

enum IgracInfo 

    Jezik 
};

Citat: ExtremePower poslato Jun 24, 2010, 23:59:33 POSLE PODNE
enum IgracInfo 

    Jezik 
};


opet iste errore

E:\SAMP Server\PittBull Stunt\gamemodes\pittbull.pwn(74) : error 028: invalid subscript (not an array or too many subscripts): "IgracInfo"
E:\SAMP Server\PittBull Stunt\gamemodes\pittbull.pwn(74) : warning 215: expression has no effect
E:\SAMP Server\PittBull Stunt\gamemodes\pittbull.pwn(74) : error 001: expected token: ";", but found "]"
E:\SAMP Server\PittBull Stunt\gamemodes\pittbull.pwn(74) : error 029: invalid expression, assumed zero
E:\SAMP Server\PittBull Stunt\gamemodes\pittbull.pwn(74) : fatal error 107: too many error messages on one line


Line 74:

if (IgracInfo[playerid][Jezik] == 1)

pokusao sam staviti ; na kraju ali opet iste errore ovo je gamemode pocnjen od 0 aj mislio sam da nije do to ali i na God Father mi iste errore nalazi

enum iInfo
{
     Jezik
};

new IgracInfo[MAX_PLAYERS][iInfo];



mozda bude loose indetention na ovome "jezik" pa to poravnaj posto nemogu tabat na forumu bez jednog dodatka za firefox
Poslednja Izmena: Jun 25, 2010, 11:32:20 PRE PODNE od John

Citat: John poslato Jun 25, 2010, 11:31:37 PRE PODNE
enum iInfo
{
     Jezik
};

new IgracInfo[MAX_PLAYERS][iInfo];



mozda bude loose indetention na ovome "jezik" pa to poravnaj posto nemogu tabat na forumu bez jednog dodatka za firefox

samo vise errore

enum iInfo
{
     Jezik
};

new IgracInfo[MAX_PLAYERS][iInfo];


EDIT: Ove errore mi nalazi

C:\Documents and Settings\Mako\Desktop\Untitled.pwn(5) : error 001: expected token: "-identifier-", but found " "
C:\Documents and Settings\Mako\Desktop\Untitled.pwn(6) : error 010: invalid function or declaration
C:\Documents and Settings\Mako\Desktop\Untitled.pwn(12) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Mako\Desktop\Untitled.pwn(12) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Mako\Desktop\Untitled.pwn(12) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Mako\Desktop\Untitled.pwn(12) : fatal error 107: too many error messages on one line
Poslednja Izmena: Jun 25, 2010, 12:46:50 POSLE PODNE od Mario Velickovski

Nez

*

jel mozes kopirati ovu skriptu na www.pastebin.com ? ali ne odavde da kopiras nego iz pawna ;)

uozbiljite se :(

mislim da ovo krivo radis:

enum IgracInfo   
{   
pJezik,   
};   


Citat: [WebeR]SoaD123 poslato Jun 25, 2010, 13:27:32 POSLE PODNE
mislim da ovo krivo radis:

enum IgracInfo   
{   
pJezik,   
};   




sada nalazi ove errore

C:\Documents and Settings\Mako\Desktop\Untitled.pwn(10) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Mako\Desktop\Untitled.pwn(10) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Mako\Desktop\Untitled.pwn(10) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Mako\Desktop\Untitled.pwn(10) : fatal error 107: too many error messages on one line


Evo tebi pastebin.com

http://pastebin.com/h3rmdrPz

Citat: Mario Velickovski poslato Jun 25, 2010, 12:33:29 POSLE PODNE
Citat: John poslato Jun 25, 2010, 11:31:37 PRE PODNE
enum iInfo
{
     Jezik
};

new IgracInfo[MAX_PLAYERS][iInfo];



mozda bude loose indetention na ovome "jezik" pa to poravnaj posto nemogu tabat na forumu bez jednog dodatka za firefox


samo vise errore

enum iInfo
{
     Jezik
};

new IgracInfo[MAX_PLAYERS][iInfo];


EDIT: Ove errore mi nalazi

C:\Documents and Settings\Mako\Desktop\Untitled.pwn(5) : error 001: expected token: "-identifier-", but found " "
C:\Documents and Settings\Mako\Desktop\Untitled.pwn(6) : error 010: invalid function or declaration
C:\Documents and Settings\Mako\Desktop\Untitled.pwn(12) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Mako\Desktop\Untitled.pwn(12) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Mako\Desktop\Untitled.pwn(12) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Mako\Desktop\Untitled.pwn(12) : fatal error 107: too many error messages on one line



Ti ocito nesto krivo radis, evo ja ubacio ovo svoje i compajlira mi normalno.

http://pastebin.com/0ZhpDc72

Citat: John poslato Jun 25, 2010, 15:38:41 POSLE PODNE
Citat: Mario Velickovski poslato Jun 25, 2010, 12:33:29 POSLE PODNE
Citat: John poslato Jun 25, 2010, 11:31:37 PRE PODNE
enum iInfo
{
     Jezik
};

new IgracInfo[MAX_PLAYERS][iInfo];



mozda bude loose indetention na ovome "jezik" pa to poravnaj posto nemogu tabat na forumu bez jednog dodatka za firefox


samo vise errore

enum iInfo
{
     Jezik
};

new IgracInfo[MAX_PLAYERS][iInfo];


EDIT: Ove errore mi nalazi

C:\Documents and Settings\Mako\Desktop\Untitled.pwn(5) : error 001: expected token: "-identifier-", but found " "
C:\Documents and Settings\Mako\Desktop\Untitled.pwn(6) : error 010: invalid function or declaration
C:\Documents and Settings\Mako\Desktop\Untitled.pwn(12) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Mako\Desktop\Untitled.pwn(12) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Mako\Desktop\Untitled.pwn(12) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Mako\Desktop\Untitled.pwn(12) : fatal error 107: too many error messages on one line



Ti ocito nesto krivo radis, evo ja ubacio ovo svoje i compajlira mi normalno.

http://pastebin.com/0ZhpDc72

Oh hvala bogu da neko mi napravio evo copy sam tvoj kod i sve radi hvala mnogo i testirao sam ga radi fantasticno


Citat: Kruno1407 poslato Jun 25, 2010, 19:25:31 POSLE PODNE
Probaj napisat PlayerInfo a ne IgracInfo..

jao spameru jel citas da je problem resen???????????????????????????????