Balkan SA:MP

PAWN skriptanje, gamemodovi, filterskripte, include fajlovi, mape, pluginovi => Razgovor u vezi PAWN - skriptanja => Temu započeo: kAr1o poslato Oktobar 17, 2021, 16:08:45 POSLE PODNE

Naslov: Pomoc
Poruka od: kAr1o poslato Oktobar 17, 2021, 16:08:45 POSLE PODNE
Problem(error/warning):

warning 213: tag mismatch: expected tag "PlayerText", but found "Text"
error 001: expected token: ",", but found "["
error 029: invalid expression, assumed zero
warning 215: expression has no effect
error 001: expected token: ";", but found "]"
fatal error 107: too many error messages on one line

Deo skripte:

stock UnistiInGameTD(playerid)
{
for(new i = 0; i < 9; i ++)
{
        PlayerTextDrawDestroy(playerid, Igtd[playerid][i]);         //========== OVDJE IZBACUJE ERROR
Igtd[playerid][i] = PlayerText:INVALID_TEXT_DRAW;
}
}

Menjo sam td i sada mi izbacuje error kod PlayerTextDrawDestroy
Naslov: Odg: Pomoc
Poruka od: noddy_ poslato Oktobar 17, 2021, 17:09:37 POSLE PODNE
imas li nesto ovako od new-ova

[pawn]new PlayerText:Igtd[MAX_PLAYERS][Brojevi] // Text: se koristi ako TD nije player a ako jeste player koristis PlayerText:[/pawn]
Naslov: Odg: Pomoc
Poruka od: kAr1o poslato Oktobar 17, 2021, 17:28:59 POSLE PODNE
Citat: Gravano poslato Oktobar 17, 2021, 17:09:37 POSLE PODNE
imas li nesto ovako od new-ova

[pawn]new PlayerText:Igtd[MAX_PLAYERS][Brojevi] // Text: se koristi ako TD nije player a ako jeste player koristis PlayerText:[/pawn]

koristim

new Text:Igtd[9];
Naslov: Odg: Pomoc
Poruka od: kAr1o poslato Oktobar 17, 2021, 17:30:47 POSLE PODNE
i kad stavim sad kako si i ti [MAX_PLAYERS]
iskoci mi jos errora

array must be indexed (variable "Igtd")
argument type mismatch (argument 1)
Naslov: Odg: Pomoc
Poruka od: noddy_ poslato Oktobar 17, 2021, 17:56:07 POSLE PODNE
Citat: kAr1o poslato Oktobar 17, 2021, 17:28:59 POSLE PODNE
koristim

new Text:Igtd[9];
new PlayerText:Igtd[MAX_PLAYERS][9];
Naslov: Odg: Pomoc
Poruka od: kAr1o poslato Oktobar 17, 2021, 18:46:59 POSLE PODNE
Citat: Gravano poslato Oktobar 17, 2021, 17:56:07 POSLE PODNE
new PlayerText:Igtd[MAX_PLAYERS][9];

iskace mi jos errora

array must be indexed (variable "Igtd")
argument type mismatch (argument 1)
Naslov: Odg: Pomoc
Poruka od: noddy_ poslato Oktobar 17, 2021, 19:04:59 POSLE PODNE
jel koristis tako kako sam napisao?
Naslov: Odg: Pomoc
Poruka od: Goku ^ poslato Oktobar 17, 2021, 19:11:17 POSLE PODNE
[pawn]new PlayerText:Igtd[MAX_PLAYERS][10];[/pawn]
Naslov: Odg: Pomoc
Poruka od: index poslato Oktobar 18, 2021, 07:51:48 PRE PODNE
Citat: kAr1o poslato Oktobar 17, 2021, 16:08:45 POSLE PODNE
Problem(error/warning):

warning 213: tag mismatch: expected tag "PlayerText", but found "Text"
error 001: expected token: ",", but found "["
error 029: invalid expression, assumed zero
warning 215: expression has no effect
error 001: expected token: ";", but found "]"
fatal error 107: too many error messages on one line

Deo skripte:

stock UnistiInGameTD(playerid)
{
for(new i = 0; i < 9; i ++)
{
        PlayerTextDrawDestroy(playerid, Igtd[playerid][i]);         //========== OVDJE IZBACUJE ERROR
Igtd[playerid][i] = PlayerText:INVALID_TEXT_DRAW;
}
}

Menjo sam td i sada mi izbacuje error kod PlayerTextDrawDestroy
new PlayerText:Igtd[MAX_PLAYERS][9];
Naslov: Odg: Pomoc
Poruka od: index poslato Oktobar 18, 2021, 07:52:56 PRE PODNE
posalji mi u pm kod textdrawa jesi siguran da su playertextdrawovi?
Naslov: Odg: Pomoc
Poruka od: Sage poslato Oktobar 18, 2021, 09:26:31 PRE PODNE
Ne možeš samo da promeniš iz Text: u PlayerText: i kaeš gotovo promenio sam TD u PTD :D
Naslov: Odg: Pomoc
Poruka od: index poslato Oktobar 18, 2021, 10:16:53 PRE PODNE
Textdrawovi su mu bili na global...
Naslov: Odg: Pomoc
Poruka od: Sage poslato Oktobar 18, 2021, 13:49:20 POSLE PODNE
Citat: BTL | jevta poslato Oktobar 18, 2021, 10:16:53 PRE PODNE
Textdrawovi su mu bili na global...
Ma ne seri