2 language script help
#1

Why on this line have errors?

Код:
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: (line 74 is with red color)

Quote:

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;
}

I'm have defining jezik and IgracInfo

[code=pawno]enum IgracInfo
{
Jezik
}[/code]
Reply


Messages In This Thread
2 language script help - by mariokumanovac - 24.06.2010, 19:05
Re: 2 language script help - by ReVo_ - 24.06.2010, 19:06
Re: 2 language script help - by mariokumanovac - 24.06.2010, 19:50
Re: 2 language script help - by [HiC]TheKiller - 24.06.2010, 20:00
Re: 2 language script help - by mariokumanovac - 24.06.2010, 20:25
Re: 2 language script help - by Antonio [G-RP] - 24.06.2010, 20:28

Forum Jump:


Users browsing this thread: 1 Guest(s)