Hallo liebe Comm,
ich habe ein kleines Problem.
Undzwar möchte ich das die NPC's eingeloggt werden. Soweit so gut.
Aber leider bekomme ich einen Error
if(IsPlayerNPC(playerid)) { new npcname[MAX_PLAYER_NAME]; GetPlayerName(playerid, npcname, sizeof(npcname)); if(!strcmp(npcname, "BlueBusDriver", true)) { gPlayerLogged = 1; //ERROR SetPlayerColor(playerid, 0xFFFFFF00); PutPlayerInVehicle(playerid, NPCBlueBus, 0); SetSkin(playerid, 255); ResetPlayerWeapons(playerid); Attach3DTextLabelToVehicle(NPCTextBlue, NPCBlueBus, 0.0, 0.0, 0.0); } if(!strcmp(npcname, "BlackBusDriver", true)) { gPlayerLogged = 1; //ERROR SetPlayerColor(playerid, 0xFFFFFF00); PutPlayerInVehicle(playerid, NPCBlackBus, 0); SetSkin(playerid, 255); ResetPlayerWeapons(playerid); Attach3DTextLabelToVehicle(NPCTextBlack, NPCBlackBus, 0.0, 0.0, 0.0); } }
Falls die Pawno Funktion buggt,
wovin ich ausgehe ist hier die Pastebin :
http://pastebin.com/u5gPNE3P
Error :
C:\Users\Master\Dropbox\Next-RL\gamemodes\NX-RL.pwn(163946) : error 033: array must be indexed (variable "gPlayerLogged")
C:\Users\Master\Dropbox\Next-RL\gamemodes\NX-RL.pwn(163955) : error 033: array must be indexed (variable "gPlayerLogged")
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
2 Errors.
Ich danke demjenigen der mir hilft