07.08.2016, 13:13
Warnings
Please Help me To Fix This Error
CODE
Warning Lines
Code:
C:\Users\Anurag\Desktop\3G Cops And Robbers1\filterscripts\taxifilter.pwn(17) : warning 213: tag mismatch C:\Users\Anurag\Desktop\3G Cops And Robbers1\filterscripts\taxifilter.pwn(51) : warning 213: tag mismatch C:\Users\Anurag\Desktop\3G Cops And Robbers1\filterscripts\taxifilter.pwn(55) : warning 217: loose indentation Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 3 Warnings.
CODE
Code:
// This is a comment // uncomment the line below if you want to write a filterscript #define FILTERSCRIPT #define COLOR_GREEN 0x33AA33AA #define COLOR_RED 0xAA3333AA #include <a_samp> #if defined FILTERSCRIPT new MyFirstNPCVehicle; new Text:Botinfo; public OnFilterScriptInit() { print("Taxi v0.1"); ConnectNPC("Dave","newnpc"); MyFirstNPCVehicle = CreateVehicle(420, 0.0, 0.0, 5.0, 0.0, 3, 3, 5000); Botinfo = Create3DTextLabel("Anurag Saini",COLOR_GREEN,0.0,0.0,0.0,30.0,0); return 1; } public OnFilterScriptExit() { return 1; } #else main() { print("\n----------------------------------"); print(" Blank Gamemode by your name here"); print("----------------------------------\n"); } #endif public OnPlayerSpawn(playerid) { if(IsPlayerNPC(playerid)) { new npcname[MAX_PLAYER_NAME]; GetPlayerName(playerid, npcname, sizeof(npcname)); SetPlayerSkin(playerid, 253); if(!strcmp(npcname, "Dave",true)) { PutPlayerInVehicle(playerid, MyFirstNPCVehicle,0); SetPlayerColor(playerid,0xFFFFFFFF); } if(!strcmp(npcname, "Dave",true)) { Attach3DTextLabelToPlayer(Botinfo, playerid, 0.0, 0.0, 0.0); } return 1; } return 1; }
Code:
Botinfo = Create3DTextLabel("Anurag Saini",COLOR_GREEN,0.0,0.0,0.0,30.0,0);
Code:
Attach3DTextLabelToPlayer(Botinfo, playerid, 0.0, 0.0, 0.0);