Jump to content

Question

Posted

C:\Documents and Settings\Vlady-Valy\Desktop\Others\San Andreas MultiPlayer\Server\filterscripts\Createclan.pwn(410) : error 032: array index out of bounds (variable "ClanColors")
C:\Documents and Settings\Vlady-Valy\Desktop\Others\San Andreas MultiPlayer\Server\filterscripts\Createclan.pwn(499) : error 032: array index out of bounds (variable "ClanColors")
Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase


2 Errors.

[pawn]if(listitem == 12)

{

SetPlayerColor(playerid, ClanColors[12]);

format(CQuery, sizeof(CQuery), "UPDATE clans SET clancolor = 12 WHERE clanname = '%s'", GetPlayerClan(playerid));

  db_query( Database, CQuery );

}[/pawn]

[pawn]if(listitem == 12)

{

SetPlayerColor(playerid, ClanColors[ 12 ]);

format(CQuery, sizeof(CQuery), "UPDATE clans SET clancolor = 12 WHERE clanname = '%s'", GetPlayerClan(playerid));

  db_query( Database, CQuery );

}[/pawn]

Cum le repar?

2 answers to this question

Recommended Posts

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • 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.