Error Dealership Dialog
#1

Hi guys! I was struck again by a problem. Specifically I tried to do a Dealership. But when I compiled gave me these problems.

Quote:

C:\Documents and Settings\home\Desktop\SERVER SAMP\gamemodes\TLA.pwn(2247) : error 054: unmatched closing brace ("}")
C:\Documents and Settings\home\Desktop\SERVER SAMP\gamemodes\TLA.pwn(2249) : error 010: invalid function or declaration
C:\Documents and Settings\home\Desktop\SERVER SAMP\gamemodes\TLA.pwn(2250) : error 010: invalid function or declaration
C:\Documents and Settings\home\Desktop\SERVER SAMP\gamemodes\TLA.pwn(2251) : error 010: invalid function or declaration
C:\Documents and Settings\home\Desktop\SERVER SAMP\gamemodes\TLA.pwn(2252) : error 010: invalid function or declaration
C:\Documents and Settings\home\Desktop\SERVER SAMP\gamemodes\TLA.pwn(2253) : error 010: invalid function or declaration
C:\Documents and Settings\home\Desktop\SERVER SAMP\gamemodes\TLA.pwn(2254) : error 010: invalid function or declaration
C:\Documents and Settings\home\Desktop\SERVER SAMP\gamemodes\TLA.pwn(2255) : error 010: invalid function or declaration
C:\Documents and Settings\home\Desktop\SERVER SAMP\gamemodes\TLA.pwn(2256) : error 010: invalid function or declaration
C:\Documents and Settings\home\Desktop\SERVER SAMP\gamemodes\TLA.pwn(2257) : error 010: invalid function or declaration
C:\Documents and Settings\home\Desktop\SERVER SAMP\gamemodes\TLA.pwn(225 : error 010: invalid function or declaration
C:\Documents and Settings\home\Desktop\SERVER SAMP\gamemodes\TLA.pwn(2259) : error 010: invalid function or declaration
C:\Documents and Settings\home\Desktop\SERVER SAMP\gamemodes\TLA.pwn(2260) : error 010: invalid function or declaration
C:\Documents and Settings\home\Desktop\SERVER SAMP\gamemodes\TLA.pwn(2261) : error 010: invalid function or declaration
C:\Documents and Settings\home\Desktop\SERVER SAMP\gamemodes\TLA.pwn(2262) : error 010: invalid function or declaration
C:\Documents and Settings\home\Desktop\SERVER SAMP\gamemodes\TLA.pwn(2263) : error 010: invalid function or declaration
C:\Documents and Settings\home\Desktop\SERVER SAMP\gamemodes\TLA.pwn(2264) : error 010: invalid function or declaration
C:\Documents and Settings\home\Desktop\SERVER SAMP\gamemodes\TLA.pwn(2265) : error 010: invalid function or declaration
C:\Documents and Settings\home\Desktop\SERVER SAMP\gamemodes\TLA.pwn(2266) : error 010: invalid function or declaration
C:\Documents and Settings\home\Desktop\SERVER SAMP\gamemodes\TLA.pwn(2267) : error 010: invalid function or declaration
C:\Documents and Settings\home\Desktop\SERVER SAMP\gamemodes\TLA.pwn(226 : error 010: invalid function or declaration
C:\Documents and Settings\home\Desktop\SERVER SAMP\gamemodes\TLA.pwn(2269) : error 010: invalid function or declaration
C:\Documents and Settings\home\Desktop\SERVER SAMP\gamemodes\TLA.pwn(2270) : error 010: invalid function or declaration
C:\Documents and Settings\home\Desktop\SERVER SAMP\gamemodes\TLA.pwn(2271) : error 010: invalid function or declaration
C:\Documents and Settings\home\Desktop\SERVER SAMP\gamemodes\TLA.pwn(2272) : error 010: invalid function or declaration
C:\Documents and Settings\home\Desktop\SERVER SAMP\gamemodes\TLA.pwn(2273) : error 010: invalid function or declaration

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase



26 Errors.
Lines are:

Quote:

} // Line 2247
INI_Int("Vehicle1",PlayerInfo[playerid][pVehicle1]);
INI_Int("Vehicle1Model",PlayerInfo[playerid][pVehicle1Model]);
INI_Float("Vehicle1X",PlayerInfo[playerid][pVehicle1X]);
INI_Float("Vehicle1Y",PlayerInfo[playerid][pVehicle1Y]);
INI_Float("Vehicle1Z",PlayerInfo[playerid][pVehicle1Z]);
INI_Float("Vehicle1C",PlayerInfo[playerid][pVehicle1C]);
INI_Int("Vehicle1Color1",PlayerInfo[playerid][pVehicle1Color1]);
INI_Int("Vehicle1Color2",PlayerInfo[playerid][pVehicle1Color2]);
INI_Int("Vehicle1Value",PlayerInfo[playerid][pVehicle1Value]);
INI_String("Vehicle1Plate",PlayerInfo[playerid][pVehicle1Plate]);
INI_Int("Vehicle1Lock",PlayerInfo[playerid][pVehicle1Lock]);
INI_Int("Vehicle2",PlayerInfo[playerid][pVehicle2]);
INI_Int("Vehicle2Model",PlayerInfo[playerid][pVehicle2Model]);
INI_Float("Vehicle2X",PlayerInfo[playerid][pVehicle2X]);
INI_Float("Vehicle2Y",PlayerInfo[playerid][pVehicle2Y]);
INI_Float("Vehicle2Z",PlayerInfo[playerid][pVehicle2Z]);
INI_Float("Vehicle2C",PlayerInfo[playerid][pVehicle2C]);
INI_Int("Vehicle2Color1",PlayerInfo[playerid][pVehicle2Color1]);
INI_Int("Vehicle2Color2",PlayerInfo[playerid][pVehicle2Color2]);
INI_Int("Vehicle2Value",PlayerInfo[playerid][pVehicle2Value]);
INI_String("Vehicle2Plate",PlayerInfo[playerid][pVehicle2Plate]);
INI_Int("Vehicle2Lock",PlayerInfo[playerid][pVehicle2Lock]);
INI_Int("Vehicle3",PlayerInfo[playerid][pVehicle3]);
INI_Int("Vehicle3Model",PlayerInfo[playerid][pVehicle3Model]);
INI_Float("Vehicle3X",PlayerInfo[playerid][pVehicle3X]);
INI_Float("Vehicle3Y",PlayerInfo[playerid][pVehicle3Y]); //Line 2273
INI_Float("Vehicle3Z",PlayerInfo[playerid][pVehicle3Z]);
INI_Float("Vehicle3C",PlayerInfo[playerid][pVehicle3C]);
INI_Int("Vehicle3Color1",PlayerInfo[playerid][pVehicle3Color1]);
INI_Int("Vehicle3Color2",PlayerInfo[playerid][pVehicle3Color2]);
INI_Int("Vehicle3Value",PlayerInfo[playerid][pVehicle3Value]);
INI_String("Vehicle3Plate",PlayerInfo[playerid][pVehicle3Plate]);
INI_Int("Vehicle3Lock",PlayerInfo[playerid][pVehicle3Lock]);
INI_WriteInt(File,"Vehicle1",PlayerInfo[playerid][pVehicle1]);
INI_WriteInt(File,"Vehicle1Model",PlayerInfo[playerid][pVehicle1Model]);
INI_WriteFloat(File,"Vehicle1X",PlayerInfo[playerid][pVehicle1X]);
INI_WriteFloat(File,"Vehicle1Y",PlayerInfo[playerid][pVehicle1Y]);
INI_WriteFloat(File,"Vehicle1Z",PlayerInfo[playerid][pVehicle1Z]);
INI_WriteFloat(File,"Vehicle1C",PlayerInfo[playerid][pVehicle1C]);
INI_WriteInt(File,"Vehicle1Color1",PlayerInfo[playerid][pVehicle1Color1]);
INI_WriteInt(File,"Vehicle1Color2",PlayerInfo[playerid][pVehicle1Color2]);
INI_WriteInt(File,"Vehicle1Value",PlayerInfo[playerid][pVehicle1Value]);
INI_WriteString(File,"Vehicle1Plate",PlayerInfo[playerid][pVehicle1Plate]);
INI_WriteInt(File,"Vehicle1Lock",PlayerInfo[playerid][pVehicle1Lock]);
INI_WriteInt(File,"Vehicle2",PlayerInfo[playerid][pVehicle2]);
INI_WriteInt(File,"Vehicle2Model",PlayerInfo[playerid][pVehicle2Model]);
INI_WriteFloat(File,"Vehicle2X",PlayerInfo[playerid][pVehicle2X]);
INI_WriteFloat(File,"Vehicle2Y",PlayerInfo[playerid][pVehicle2Y]);
INI_WriteFloat(File,"Vehicle2Z",PlayerInfo[playerid][pVehicle2Z]);
INI_WriteFloat(File,"Vehicle2C",PlayerInfo[playerid][pVehicle2C]);
INI_WriteInt(File,"Vehicle2Color1",PlayerInfo[playerid][pVehicle2Color1]);
INI_WriteInt(File,"Vehicle2Color2",PlayerInfo[playerid][pVehicle2Color2]);
INI_WriteInt(File,"Vehicle2Value",PlayerInfo[playerid][pVehicle2Value]);
INI_WriteString(File,"Vehicle2Plate",PlayerInfo[playerid][pVehicle2Plate]);
INI_WriteInt(File,"Vehicle2Lock",PlayerInfo[playerid][pVehicle2Lock]);
INI_WriteInt(File,"Vehicle3",PlayerInfo[playerid][pVehicle3]);
INI_WriteInt(File,"Vehicle3Model",PlayerInfo[playerid][pVehicle3Model]);
INI_WriteFloat(File,"Vehicle3X",PlayerInfo[playerid][pVehicle3X]);
INI_WriteFloat(File,"Vehicle3Y",PlayerInfo[playerid][pVehicle3Y]);
INI_WriteFloat(File,"Vehicle3Z",PlayerInfo[playerid][pVehicle3Z]);
INI_WriteFloat(File,"Vehicle3C",PlayerInfo[playerid][pVehicle3C]);
INI_WriteInt(File,"Vehicle3Color1",PlayerInfo[playerid][pVehicle3Color1]);
INI_WriteInt(File,"Vehicle3Color2",PlayerInfo[playerid][pVehicle3Color2]);
INI_WriteInt(File,"Vehicle3Value",PlayerInfo[playerid][pVehicle3Value]);
INI_WriteString(File,"Vehicle3Plate",PlayerInfo[playerid][pVehicle3Plate]);
INI_WriteInt(File,"Vehicle3Lock",PlayerInfo[playerid][pVehicle3Lock]);
{

Good, I removed "{" and "}" at the first error. But all those errors show them. Less error with "{"
Reply
#2

The braces should be the other way around.
pawn Код:
{
    INI_Int("Vehicle1",PlayerInfo[playerid][pVehicle1]);
    INI_Int("Vehicle1Model",PlayerInfo[playerid][pVehicle1Model]);
    INI_Float("Vehicle1X",PlayerInfo[playerid][pVehicle1X]);
    INI_Float("Vehicle1Y",PlayerInfo[playerid][pVehicle1Y]);
    INI_Float("Vehicle1Z",PlayerInfo[playerid][pVehicle1Z]);
    INI_Float("Vehicle1C",PlayerInfo[playerid][pVehicle1C]);
    INI_Int("Vehicle1Color1",PlayerInfo[playerid][pVehicle1Color1]);
    INI_Int("Vehicle1Color2",PlayerInfo[playerid][pVehicle1Color2]);
    INI_Int("Vehicle1Value",PlayerInfo[playerid][pVehicle1Value]);
    INI_String("Vehicle1Plate",PlayerInfo[playerid][pVehicle1Plate]);
    INI_Int("Vehicle1Lock",PlayerInfo[playerid][pVehicle1Lock]);
    INI_Int("Vehicle2",PlayerInfo[playerid][pVehicle2]);
    INI_Int("Vehicle2Model",PlayerInfo[playerid][pVehicle2Model]);
    INI_Float("Vehicle2X",PlayerInfo[playerid][pVehicle2X]);
    INI_Float("Vehicle2Y",PlayerInfo[playerid][pVehicle2Y]);
    INI_Float("Vehicle2Z",PlayerInfo[playerid][pVehicle2Z]);
    INI_Float("Vehicle2C",PlayerInfo[playerid][pVehicle2C]);
    INI_Int("Vehicle2Color1",PlayerInfo[playerid][pVehicle2Color1]);
    INI_Int("Vehicle2Color2",PlayerInfo[playerid][pVehicle2Color2]);
    INI_Int("Vehicle2Value",PlayerInfo[playerid][pVehicle2Value]);
    INI_String("Vehicle2Plate",PlayerInfo[playerid][pVehicle2Plate]);
    INI_Int("Vehicle2Lock",PlayerInfo[playerid][pVehicle2Lock]);
    INI_Int("Vehicle3",PlayerInfo[playerid][pVehicle3]);
    INI_Int("Vehicle3Model",PlayerInfo[playerid][pVehicle3Model]);
    INI_Float("Vehicle3X",PlayerInfo[playerid][pVehicle3X]);
    INI_Float("Vehicle3Y",PlayerInfo[playerid][pVehicle3Y]); //Line 2273
    INI_Float("Vehicle3Z",PlayerInfo[playerid][pVehicle3Z]);
    INI_Float("Vehicle3C",PlayerInfo[playerid][pVehicle3C]);
    INI_Int("Vehicle3Color1",PlayerInfo[playerid][pVehicle3Color1]);
    INI_Int("Vehicle3Color2",PlayerInfo[playerid][pVehicle3Color2]);
    INI_Int("Vehicle3Value",PlayerInfo[playerid][pVehicle3Value]);
    INI_String("Vehicle3Plate",PlayerInfo[playerid][pVehicle3Plate]);
    INI_Int("Vehicle3Lock",PlayerInfo[playerid][pVehicle3Lock]);
    INI_WriteInt(File,"Vehicle1",PlayerInfo[playerid][pVehicle1]);
    INI_WriteInt(File,"Vehicle1Model",PlayerInfo[playerid][pVehicle1Model]);
    INI_WriteFloat(File,"Vehicle1X",PlayerInfo[playerid][pVehicle1X]);
    INI_WriteFloat(File,"Vehicle1Y",PlayerInfo[playerid][pVehicle1Y]);
    INI_WriteFloat(File,"Vehicle1Z",PlayerInfo[playerid][pVehicle1Z]);
    INI_WriteFloat(File,"Vehicle1C",PlayerInfo[playerid][pVehicle1C]);
    INI_WriteInt(File,"Vehicle1Color1",PlayerInfo[playerid][pVehicle1Color1]);
    INI_WriteInt(File,"Vehicle1Color2",PlayerInfo[playerid][pVehicle1Color2]);
    INI_WriteInt(File,"Vehicle1Value",PlayerInfo[playerid][pVehicle1Value]);
    INI_WriteString(File,"Vehicle1Plate",PlayerInfo[playerid][pVehicle1Plate]);
    INI_WriteInt(File,"Vehicle1Lock",PlayerInfo[playerid][pVehicle1Lock]);
    INI_WriteInt(File,"Vehicle2",PlayerInfo[playerid][pVehicle2]);
    INI_WriteInt(File,"Vehicle2Model",PlayerInfo[playerid][pVehicle2Model]);
    INI_WriteFloat(File,"Vehicle2X",PlayerInfo[playerid][pVehicle2X]);
    INI_WriteFloat(File,"Vehicle2Y",PlayerInfo[playerid][pVehicle2Y]);
    INI_WriteFloat(File,"Vehicle2Z",PlayerInfo[playerid][pVehicle2Z]);
    INI_WriteFloat(File,"Vehicle2C",PlayerInfo[playerid][pVehicle2C]);
    INI_WriteInt(File,"Vehicle2Color1",PlayerInfo[playerid][pVehicle2Color1]);
    INI_WriteInt(File,"Vehicle2Color2",PlayerInfo[playerid][pVehicle2Color2]);
    INI_WriteInt(File,"Vehicle2Value",PlayerInfo[playerid][pVehicle2Value]);
    INI_WriteString(File,"Vehicle2Plate",PlayerInfo[playerid][pVehicle2Plate]);
    INI_WriteInt(File,"Vehicle2Lock",PlayerInfo[playerid][pVehicle2Lock]);
    INI_WriteInt(File,"Vehicle3",PlayerInfo[playerid][pVehicle3]);
    INI_WriteInt(File,"Vehicle3Model",PlayerInfo[playerid][pVehicle3Model]);
    INI_WriteFloat(File,"Vehicle3X",PlayerInfo[playerid][pVehicle3X]);
    INI_WriteFloat(File,"Vehicle3Y",PlayerInfo[playerid][pVehicle3Y]);
    INI_WriteFloat(File,"Vehicle3Z",PlayerInfo[playerid][pVehicle3Z]);
    INI_WriteFloat(File,"Vehicle3C",PlayerInfo[playerid][pVehicle3C]);
    INI_WriteInt(File,"Vehicle3Color1",PlayerInfo[playerid][pVehicle3Color1]);
    INI_WriteInt(File,"Vehicle3Color2",PlayerInfo[playerid][pVehicle3Color2]);
    INI_WriteInt(File,"Vehicle3Value",PlayerInfo[playerid][pVehicle3Value]);
    INI_WriteString(File,"Vehicle3Plate",PlayerInfo[playerid][pVehicle3Plate]);
    INI_WriteInt(File,"Vehicle3Lock",PlayerInfo[playerid][pVehicle3Lock]);
}
Reply
#3

Not is this problem

Quote:

C:\Documents and Settings\home\Desktop\SERVER SAMP\gamemodes\TLA.pwn(2247) : error 055: start of function body without function header
C:\Documents and Settings\home\Desktop\SERVER SAMP\gamemodes\TLA.pwn(2249) : error 010: invalid function or declaration
C:\Documents and Settings\home\Desktop\SERVER SAMP\gamemodes\TLA.pwn(2250) : error 010: invalid function or declaration
C:\Documents and Settings\home\Desktop\SERVER SAMP\gamemodes\TLA.pwn(2251) : error 010: invalid function or declaration
C:\Documents and Settings\home\Desktop\SERVER SAMP\gamemodes\TLA.pwn(2252) : error 010: invalid function or declaration
C:\Documents and Settings\home\Desktop\SERVER SAMP\gamemodes\TLA.pwn(2253) : error 010: invalid function or declaration
C:\Documents and Settings\home\Desktop\SERVER SAMP\gamemodes\TLA.pwn(2254) : error 010: invalid function or declaration
C:\Documents and Settings\home\Desktop\SERVER SAMP\gamemodes\TLA.pwn(2255) : error 010: invalid function or declaration
C:\Documents and Settings\home\Desktop\SERVER SAMP\gamemodes\TLA.pwn(2256) : error 010: invalid function or declaration
C:\Documents and Settings\home\Desktop\SERVER SAMP\gamemodes\TLA.pwn(2257) : error 010: invalid function or declaration
C:\Documents and Settings\home\Desktop\SERVER SAMP\gamemodes\TLA.pwn(225 : error 010: invalid function or declaration
C:\Documents and Settings\home\Desktop\SERVER SAMP\gamemodes\TLA.pwn(2259) : error 010: invalid function or declaration
C:\Documents and Settings\home\Desktop\SERVER SAMP\gamemodes\TLA.pwn(2260) : error 010: invalid function or declaration
C:\Documents and Settings\home\Desktop\SERVER SAMP\gamemodes\TLA.pwn(2261) : error 010: invalid function or declaration
C:\Documents and Settings\home\Desktop\SERVER SAMP\gamemodes\TLA.pwn(2262) : error 010: invalid function or declaration
C:\Documents and Settings\home\Desktop\SERVER SAMP\gamemodes\TLA.pwn(2263) : error 010: invalid function or declaration
C:\Documents and Settings\home\Desktop\SERVER SAMP\gamemodes\TLA.pwn(2264) : error 010: invalid function or declaration
C:\Documents and Settings\home\Desktop\SERVER SAMP\gamemodes\TLA.pwn(2265) : error 010: invalid function or declaration
C:\Documents and Settings\home\Desktop\SERVER SAMP\gamemodes\TLA.pwn(2266) : error 010: invalid function or declaration
C:\Documents and Settings\home\Desktop\SERVER SAMP\gamemodes\TLA.pwn(2267) : error 010: invalid function or declaration
C:\Documents and Settings\home\Desktop\SERVER SAMP\gamemodes\TLA.pwn(226 : error 010: invalid function or declaration
C:\Documents and Settings\home\Desktop\SERVER SAMP\gamemodes\TLA.pwn(2269) : error 010: invalid function or declaration
C:\Documents and Settings\home\Desktop\SERVER SAMP\gamemodes\TLA.pwn(2270) : error 010: invalid function or declaration
C:\Documents and Settings\home\Desktop\SERVER SAMP\gamemodes\TLA.pwn(2271) : error 010: invalid function or declaration
C:\Documents and Settings\home\Desktop\SERVER SAMP\gamemodes\TLA.pwn(2272) : error 010: invalid function or declaration
C:\Documents and Settings\home\Desktop\SERVER SAMP\gamemodes\TLA.pwn(2273) : error 010: invalid function or declaration
In tutorial not is braces.
Reply
#4

UP !
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)