09.07.2015, 12:53
Hello,
I'm trying to attach an object to player, but i'm getting this error :
Codes are :
Any help ?
I'm trying to attach an object to player, but i'm getting this error :
PHP код:
C:\Documents and Settings\user1\My Documents\SAMP server\gamemodes\TDM.pwn(1158) : error 033: array must be indexed (variable "MB")
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Error.
PHP код:
new MB[MAX_PLAYERS];
PHP код:
MB = CreateObject(1550, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0); // error on this line
PHP код:
AttachObjectToPlayer(MB[playerid], playerid, -0.027000, -0.251999, 0.000000, 1.000000, 1.000000, 1.000000);