SA-MP Forums Archive
Define Compile error - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Define Compile error (/showthread.php?tid=408803)



Define Compile error - Geeboi_Mehdi - 19.01.2013

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}!");



Re: Define Compile error - MattSlater - 19.01.2013

#define COLOR_WHITE 0xFFFFFFFF

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


Re: Define Compile error - HUYA - 19.01.2013

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


Re: Define Compile error - captainjohn - 19.01.2013

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;
  }
}



Re: Define Compile error - Kyle - 19.01.2013

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}!");



Re: Define Compile error - Geeboi_Mehdi - 20.01.2013

Wow thanks for help Rep+ for all of ya