Define Compile error
#1

i got this error that i had to define color White
i get this:
pawn Код:
C:\Documents and Settings\Owner\Desktop\Trucking Life\gamemodes\PPC_Trucking.pwn(274) : warning 217: loose indentation
C:\Documents and Settings\Owner\Desktop\Trucking Life\gamemodes\PPC_Trucking.pwn(275) : warning 217: loose indentation
C:\Documents and Settings\Owner\Desktop\Trucking Life\gamemodes\PPC_Trucking.pwn(757) : warning 217: loose indentation
C:\Documents and Settings\Owner\Desktop\Trucking Life\gamemodes\PPC_Trucking.pwn(1289) : warning 217: loose indentation
C:\Documents and Settings\Owner\Desktop\Trucking Life\gamemodes\PPC_Trucking.pwn(1320) : warning 217: loose indentation
C:\Documents and Settings\Owner\Desktop\Trucking Life\gamemodes\PPC_Trucking.pwn(2700) : warning 217: loose indentation
C:\Documents and Settings\Owner\Desktop\Trucking Life\gamemodes\PPC_Trucking.pwn(2716) : warning 217: loose indentation
C:\Documents and Settings\Owner\Desktop\Trucking Life\gamemodes\PPC_Trucking.pwn(4528) : warning 217: loose indentation
C:\Documents and Settings\Owner\Desktop\Trucking Life\gamemodes\PPC_Trucking.pwn(4622) : warning 217: loose indentation
C:\Documents and Settings\Owner\Desktop\Trucking Life\gamemodes\PPC_Trucking.pwn(8199) : warning 217: loose indentation
C:\Documents and Settings\Owner\Desktop\Trucking Life\gamemodes\PPC_Trucking.pwn(8205) : warning 217: loose indentation
C:\Documents and Settings\Owner\Desktop\Trucking Life\gamemodes\PPC_Trucking.pwn(8216) : error 017: undefined symbol "COLOR_WHITE"
C:\Documents and Settings\Owner\Desktop\Trucking Life\gamemodes\PPC_Trucking.pwn(8920) : warning 217: loose indentation
C:\Documents and Settings\Owner\Desktop\Trucking Life\gamemodes\PPC_Trucking.pwn(9513) : warning 203: symbol is never used: "Dialog_Neon"
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


1 Error.
pawn Код:
C:\Documents and Settings\Owner\Desktop\Trucking Life\gamemodes\PPC_Trucking.pwn(274) : warning 217: loose indentation
C:\Documents and Settings\Owner\Desktop\Trucking Life\gamemodes\PPC_Trucking.pwn(275) : warning 217: loose indentation
C:\Documents and Settings\Owner\Desktop\Trucking Life\gamemodes\PPC_Trucking.pwn(757) : warning 217: loose indentation
C:\Documents and Settings\Owner\Desktop\Trucking Life\gamemodes\PPC_Trucking.pwn(1289) : warning 217: loose indentation
C:\Documents and Settings\Owner\Desktop\Trucking Life\gamemodes\PPC_Trucking.pwn(1320) : warning 217: loose indentation
C:\Documents and Settings\Owner\Desktop\Trucking Life\gamemodes\PPC_Trucking.pwn(2700) : warning 217: loose indentation
C:\Documents and Settings\Owner\Desktop\Trucking Life\gamemodes\PPC_Trucking.pwn(2716) : warning 217: loose indentation
C:\Documents and Settings\Owner\Desktop\Trucking Life\gamemodes\PPC_Trucking.pwn(4528) : warning 217: loose indentation
C:\Documents and Settings\Owner\Desktop\Trucking Life\gamemodes\PPC_Trucking.pwn(4622) : warning 217: loose indentation
C:\Documents and Settings\Owner\Desktop\Trucking Life\gamemodes\PPC_Trucking.pwn(8199) : warning 217: loose indentation
C:\Documents and Settings\Owner\Desktop\Trucking Life\gamemodes\PPC_Trucking.pwn(8205) : warning 217: loose indentation
C:\Documents and Settings\Owner\Desktop\Trucking Life\gamemodes\PPC_Trucking.pwn(8216) : error 017: undefined symbol "FFFFFFF"
C:\Documents and Settings\Owner\Desktop\Trucking Life\gamemodes\PPC_Trucking.pwn(8920) : warning 217: loose indentation
C:\Documents and Settings\Owner\Desktop\Trucking Life\gamemodes\PPC_Trucking.pwn(9513) : warning 203: symbol is never used: "Dialog_Neon"
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


1 Error.
This is my Line
pawn Код:
public OnPlayerConnect(playerid)
{
   
    if (IsPlayerNPC(playerid))
    return 1;
    SendClientMessage(playerid, COLOR_WHITE, "Welcome to {00FF00}T{FFFFFF}r{FF0000}u{FFFFFF}c{00FF00}k{FFFFFF}i{FF0000}n {FFFFFF}g{00FF00}L{FFFFFF}i{FF0000}f{FFFFFF}e{00FF00}!");
Reply
#2

#define COLOR_WHITE 0xFFFFFFFF

Add this at the top of your script but below your includes.
Reply
#3

Give me the all warning lines i help you fix it.
Reply
#4

Try this?

pawn Код:
if (IsPlayerNPC(playerid))
{
    SendClientMessage(playerid, COLOR_WHITE, "Welcome to {00FF00}T{FFFFFF}r{FF0000}u{FFFFFF}c{00FF00}k{FFFFFF}i{FF0000}n {FFFFFF}g{00FF00}L{FFFFFF}i{FF0000}f{FFFFFF}e{00FF00}!");
    return 1;
  }
}
Reply
#5

Quote:
Originally Posted by captainjohn
Посмотреть сообщение
Try this?

pawn Код:
if (IsPlayerNPC(playerid))
{
    SendClientMessage(playerid, COLOR_WHITE, "Welcome to {00FF00}T{FFFFFF}r{FF0000}u{FFFFFF}c{00FF00}k{FFFFFF}i{FF0000}n {FFFFFF}g{00FF00}L{FFFFFF}i{FF0000}f{FFFFFF}e{00FF00}!");
    return 1;
  }
}
That has an extra un-needed closing tag }.

Use this:

pawn Код:
if (IsPlayerNPC(playerid)) return SendClientMessage(playerid, 0xFFFFFFFF, "Welcome to {00FF00}T{FFFFFF}r{FF0000}u{FFFFFF}c{00FF00}k{FFFFFF}i{FF0000}n {FFFFFF}g{00FF00}L{FFFFFF}i{FF0000}f{FFFFFF}e{00FF00}!");
Reply
#6

Wow thanks for help Rep+ for all of ya
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)