24.06.2010, 19:05
Why on this line have errors?
Line 74: (line 74 is with red color)
I'm have defining jezik and IgracInfo
[code=pawno]enum IgracInfo
{
Jezik
}[/code]
Код:
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
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; } |
[code=pawno]enum IgracInfo
{
Jezik
}[/code]