SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help > Help Archive

 
 
Thread Tools Display Modes
Old 29/07/2009, 11:16 AM   #1
Dj_maryo1993
Huge Clucker
 
Join Date: Feb 2009
Posts: 250
Reputation: 6
Default error 033: array must be indexed (variable "cheaterr")

pawn Code:
new string[256];
new cheaterr[MAX_PLAYER_NAME];
cheaterr = GetPlayerName(playerid, cheaterr, sizeof(cheaterr));
SendClientMessage(playerid, 0x33CCFFAA, "cheats Detected ");
format(string, sizeof(string), "Warnning %s may use cheats , please check", cheaterr);
SendClientMessageToAll(COLOR_LIGHTRED, string);
Kick(playerid);

Code:
D:\Multiple\Servere\Sa-mp\GF\gamemodes\gf.pwn(26922) : error 033: array must be indexed (variable "cheaterr")
Can someone help me please ?
__________________
Sorry for my bad english
Dj_maryo1993 is offline  
Old 29/07/2009, 11:25 AM   #2
Correlli
Godfather
 
Correlli's Avatar
 
Join Date: May 2009
Location: Slovenia
Posts: 6,340
Reputation: 365
Default Re: error 033: array must be indexed (variable "cheaterr")

Change:
pawn Code:
cheaterr = GetPlayerName(playerid, cheaterr, sizeof(cheaterr));
to:
pawn Code:
GetPlayerName(playerid, cheaterr, sizeof(cheaterr));
Correlli is offline  
Old 29/07/2009, 11:38 AM   #3
Dj_maryo1993
Huge Clucker
 
Join Date: Feb 2009
Posts: 250
Reputation: 6
Default Re: error 033: array must be indexed (variable "cheaterr")

Thanx alot man , it works .
__________________
Sorry for my bad english
Dj_maryo1993 is offline  
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Help Checkpoint & error 033: array must be indexed (variable "tmp") KyleOwnzYou Help Archive 2 08/05/2010 04:10 AM
error 033: array must be indexed (variable "Address") Kyle Help Archive 1 15/02/2010 11:59 PM
[Help]error 033: array must be indexed (variable "teleport") borisblat Help Archive 1 13/10/2009 02:51 PM
error 033: array must be indexed (variable "dini_Get") introzen Help Archive 3 09/03/2009 06:55 AM


All times are GMT. The time now is 12:36 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.