[POMOC]Testo[playerid] = 1;

Započeo Belajac
4. Mar. 2013. Zaključano
288
pregleda
7
postova
Belajac
4
Shot Caller
4. Mar. 2013.
Skripta koju koristim: CLRP
Detaljan opis problema:
E:\SAMP\TC V5.5 LV\gamemodes\TC.pwn(29072) : error 028: invalid subscript (not an array or too many subscripts): "Testo"
E:\SAMP\TC V5.5 LV\gamemodes\TC.pwn(29072) : warning 215: expression has no effect
E:\SAMP\TC V5.5 LV\gamemodes\TC.pwn(29072) : error 001: expected token: ";", but found "]"
E:\SAMP\TC V5.5 LV\gamemodes\TC.pwn(29072) : error 029: invalid expression, assumed zero
E:\SAMP\TC V5.5 LV\gamemodes\TC.pwn(29072) : fatal error 107: too many error messages on one line

Deo skripte:

new Testo;
CMD:testo(playerid, params[])
    {
  Testo = 1;
}
29072 if(Testo == 1)
{
SendClientMessage(playerid,COLOR_WHITE,"aaa");
}
gLava
5
Crime Lord
4. Mar. 2013.
new Testo;
CMD:testo(playerid, params[])
{
if(Testo == 0)
{
Testo = 1;
}
if(Testo == 1)
{
SendClientMessage(playerid,COLOR_WHITE,"aaa");
}
return 1;
}
Johnâ„¢
5
Godfather
4. Mar. 2013.
Ako mislis koristit dalje u modu array (niz), sto izgleda ovak:
Testo = 1; // Znaci da ima nesto u uglatim zagradama poslije imena varijable


Onda pri njezinom definiranju moras odredit velicinu tog arraya (niza):
new Testo; // Kad deiniras neki array za igraca onda uvijek ide MAX_PLAYERS pri definiranju u uglate zagrade
Belajac
4
Shot Caller
4. Mar. 2013.
Ja sam otprilike ovo stavio, ali evo preciznije:
new Testo;
CMD:testo(playerid, params[])
    {
  Testo = 1;
ShowPlayerDialog(playerid,PITANJE1,DIALOG_STYLE_MSGBOX,"Da li zelite hleb?","Da","Ne");
}
if(dialogid == PITANJE1)
{
29072 if(Testo == 1)
{
if(response)
{
SendClientMessage(playerid,COLOR_WHITE,"aaa");
}
}
}
Johnâ„¢
5
Godfather
4. Mar. 2013.
Ponavljam, moras pri definiranju stavit:
new Testo;
Belajac
4
Shot Caller
4. Mar. 2013.
Hvala,to je to bili ste veoma brzi.
Johnâ„¢
5
Godfather
4. Mar. 2013.
Nemas frke. 🙂

Rijesen problem, lock.

Morate biti prijavljeni da biste odgovorili na ovu temu.

Prijava

© 2026 SmartShark. All rights reserved.

Powered by Momentum|v2026.3.001 Alpha