Jump to content

Question

Posted

Am si eu o problema cu un sistem de sumo.

Primesc aceaste erori:

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

 

17 answers to this question

Recommended Posts

  • 0
Posted
Acum 22 ore, MiritaXD a spus:

Arată codu...

smo_Join(playerid, msg = true)
{
    gCurrentMinigame[playerid] = [MINIGAME_CARSUMO];                                              <<----LINIA 107
    t:bServerGlobalSettings[smo_InProgress];
    smo_FormatVehicleList(playerid);
    SetPlayerVirtualWorld(playerid, MINIGAME_WORLD);

    if(Iter_Contains(smo_SpawnedIndex, playerid))Iter_Remove(smo_SpawnedIndex, playerid);

    PlayerTextDrawSetString(playerid, smo_TdSpawn, "5");
    PlayerTextDrawSetSelectable(playerid, smo_TdSpawn, false);
    smo_SpawnTimer[playerid] = defer smo_UpdateSpawnButton(playerid);
    smo_SpawnCount[playerid] = 4;
    smo_Spectate(playerid);

  • 0
Posted
Acum 19 ore, Dennis12. a spus:

Ce este MINIGAME_CARSUMO? 

 

Incearca:

 


	gCurrentMinigame[playerid] = MINIGAME_CARSUMO;
	

 

am incercat,aceleasi erori primesc
C:\Users\wNekiRo\Desktop\Random\PLD\gamemodes\sumo.pwn(107) : error 028: invalid subscript (not an array or too many subscripts): "gCurrentMinigame"
C:\Users\wNekiRo\Desktop\Random\PLD\gamemodes\sumo.pwn(107) : warning 215: expression has no effect
C:\Users\wNekiRo\Desktop\Random\PLD\gamemodes\sumo.pwn(107) : error 001: expected token: ";", but found "]"
C:\Users\wNekiRo\Desktop\Random\PLD\gamemodes\sumo.pwn(107) : error 029: invalid expression, assumed zero
C:\Users\wNekiRo\Desktop\Random\PLD\gamemodes\sumo.pwn(107) : fatal error 107: too many error messages on one line

  • 0
Posted

Arata linia unde ai declarat variabila gCurrentMinigame.

Facebook

YouTube

Discord: peiN#5187

Ofer servicii scripting de cea mai buna calitate. Ma puteti contacta prin PM / Facebook / Discord.

  • 0
Posted
Acum 10 minute, peiN a spus:

Arata linia unde ai declarat variabila gCurrentMinigame.

adica?

Cumva asta?     gCurrentMinigame[playerid] = [MINIGAME_CARSUMO];         
Scuze sunt mai greu de cap.

  • 0
Posted
56 minutes ago, Exodus_xD said:

adica?

Cumva asta?     gCurrentMinigame[playerid] = [MINIGAME_CARSUMO];         
Scuze sunt mai greu de cap.

Denis12 tia zis gCurrentMinigame[playerid] = MINIGAME_CARSUMO;    asa nu asa gCurrentMinigame[playerid] = [MINIGAME_CARSUMO];   

 Încearcă să fii un om de valoare și nu neapărat un om de succes.

 

  • 0
Posted
La 06.10.2018 la 23:28, PawnFox a spus:

Arata-ne unde este definit MINIGAME_CARSUMO.

nu este defniti nicaieri

  • 0
Posted
La 04.10.2018 la 16:07, KB.HERO a spus:

Denis12 tia zis gCurrentMinigame[playerid] = MINIGAME_CARSUMO;    asa nu asa gCurrentMinigame[playerid] = [MINIGAME_CARSUMO];   

ahm...a fost pusa dar dupa ce am scris si trimis acel raspuns. (Imi pare rau)

  • 0
Posted
La 04.10.2018 la 16:07, KB.HERO a spus:

Denis12 tia zis gCurrentMinigame[playerid] = MINIGAME_CARSUMO;    asa nu asa gCurrentMinigame[playerid] = [MINIGAME_CARSUMO];   

C:\Users\wNekiRo\Desktop\PLD\gamemodes\sumo.pwn(107) : error 028: invalid subscript (not an array or too many subscripts): "gCurrentMinigame"
C:\Users\wNekiRo\Desktop\PLD\gamemodes\sumo.pwn(107) : warning 215: expression has no effect
C:\Users\wNekiRo\Desktop\PLD\gamemodes\sumo.pwn(107) : error 001: expected token: ";", but found "]"
C:\Users\wNekiRo\Desktop\PLD\gamemodes\sumo.pwn(107) : error 029: invalid expression, assumed zero
C:\Users\wNekiRo\Desktop\PLD\gamemodes\sumo.pwn(107) : fatal error 107: too many error messages on one line

  • 0
Posted
23 minutes ago, Exodus xD said:

nu este defniti nicaieri

Daca nu e definit nicaieri normal ca nu-ti compileaza

76561198110915771.pngAddFriend.png

  • 0
Posted
Acum 9 ore, Mento a spus:

Daca nu e definit nicaieri normal ca nu-ti compileaza

pai nu stiu cum l-as putea defini? In new sau define? ...

  • 0
Posted

Pai depinde la ce ai nevoie de acea functie, mai exact ce face ea ?

Arata-ne toata functia / comanda in care se afla acea variabila.

communitylogosml.png

94.23.120.101:7778

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.