symbol already defined: "RemoveBuildingForPlayer"
#1

I get this error:

C:\Users\Feleren\Desktop\Other Servers for SAMP\LA-RP v1.3\PUv1.3.pwn(62) : error 021: symbol already defined: "RemoveBuildingForPlayer"
C:\Users\Feleren\Desktop\Other Servers for SAMP\LA-RP v1.3\PUv1.3.pwn(73) : warning 217: loose indentation
C:\Users\Feleren\Desktop\Other Servers for SAMP\LA-RP v1.3\PUv1.3.pwn(84) : warning 217: loose indentation
C:\Users\Feleren\Desktop\Other Servers for SAMP\LA-RP v1.3\PUv1.3.pwn(103) : warning 217: loose indentation
C:\Users\Feleren\Desktop\Other Servers for SAMP\LA-RP v1.3\PUv1.3.pwn(222) : warning 217: loose indentation
C:\Users\Feleren\Desktop\Other Servers for SAMP\LA-RP v1.3\PUv1.3.pwn(222) : warning 213: tag mismatch
C:\Users\Feleren\Desktop\Other Servers for SAMP\LA-RP v1.3\PUv1.3.pwn(222) : warning 202: number of arguments does not match definition
C:\Users\Feleren\Desktop\Other Servers for SAMP\LA-RP v1.3\PUv1.3.pwn(22 : warning 217: loose indentation
C:\Users\Feleren\Desktop\Other Servers for SAMP\LA-RP v1.3\PUv1.3.pwn(333) : warning 217: loose indentation
C:\Users\Feleren\Desktop\Other Servers for SAMP\LA-RP v1.3\PUv1.3.pwn(335) : warning 203: symbol is never used: "Angle"
C:\Users\Feleren\Desktop\Other Servers for SAMP\LA-RP v1.3\PUv1.3.pwn(335) : warning 203: symbol is never used: "Interior"
C:\Users\Feleren\Desktop\Other Servers for SAMP\LA-RP v1.3\PUv1.3.pwn(335) : warning 203: symbol is never used: "PosX"
C:\Users\Feleren\Desktop\Other Servers for SAMP\LA-RP v1.3\PUv1.3.pwn(335) : warning 203: symbol is never used: "PosY"
C:\Users\Feleren\Desktop\Other Servers for SAMP\LA-RP v1.3\PUv1.3.pwn(335) : warning 203: symbol is never used: "PosZ"
C:\Users\Feleren\Desktop\Other Servers for SAMP\LA-RP v1.3\PUv1.3.pwn(335) : warning 203: symbol is never used: "VirtualWorld"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase




What does all this mean?
I'm trying to make a RP server.
I don't care about those warnings - all I want is to get rid of the errors :3
Reply
#2

You probably using it outside of brackets, you must use it as a function, put it under OnPlayerConnect.
Example;
pawn Код:
public OnPlayerConnect(playerid)
{
    RemoveBuildingForPlayer(.....);
    return 1;
}
Check the wiki also https://sampwiki.blast.hk/wiki/RemoveBuildingForPlayer
Reply
#3

Ehh...
well, do you mean like this?
Quote:

// Start of OnPlayerConnect
RemoveBuildingForPlayer(playerid, 4514, 440.0469, 587.4453, 19.7344, 0.25);
RemoveBuildingForPlayer(playerid, 4515, 604.5234, 352.5391, 19.7344, 0.25);
RemoveBuildingForPlayer(playerid, 4516, -141.3359, 468.6484, 12.9141, 0.25);
RemoveBuildingForPlayer(playerid, 4517, -193.8281, 269.5078, 12.8906, 0.25);
RemoveBuildingForPlayer(playerid, 5993, 1110.8984, -1328.8125, 13.8516, 0.25);
RemoveBuildingForPlayer(playerid, 1440, 1141.9844, -1346.1094, 13.2656, 0.25);
RemoveBuildingForPlayer(playerid, 1440, 1148.6797, -1385.1875, 13.2656, 0.25);
public OnPlayerConnect(playerid)

{
Login[playerid] = 0;
new nombre[MAX_PLAYER_NAME], archivo[256];
GetPlayerName(playerid, nombre, sizeof(nombre));
format(archivo, sizeof(archivo), "/Users/%s.ini", nombre);
if (!dini_Exists(archivo))
{
ShowPlayerDialog(playerid, Register, DIALOG_STYLE_INPUT, "Register", "Welcome to Project:Ultimate! Type your desired password in order to register:", "Accept", "Cancel");
}
else
{
ShowPlayerDialog(playerid, Logged, DIALOG_STYLE_INPUT, "Login", "Type in your password in order to login:", "Accept", "Cancel");
}
return 1;
}
// End of OnPlayerConnect



'Cause it still show's the same error
Reply
#4

No, put them inside of OnPlayerConnect. Check below:
pawn Код:
public OnPlayerConnect(playerid)
{
    Login[playerid] = 0;
    new nombre[MAX_PLAYER_NAME], archivo[256];
    GetPlayerName(playerid, nombre, sizeof(nombre));
    format(archivo, sizeof(archivo), "/Users/%s.ini", nombre);
    if (!dini_Exists(archivo))
    {
          ShowPlayerDialog(playerid, Register, DIALOG_STYLE_INPUT, "Register", "Welcome to Project:Ultimate! Type your desired password in order to register:", "Accept", "Cancel");
    }
    else
    {
          ShowPlayerDialog(playerid, Logged, DIALOG_STYLE_INPUT, "Login", "Type in your password in order to login:", "Accept", "Cancel");
    }
    RemoveBuildingForPlayer(playerid, 4514, 440.0469, 587.4453, 19.7344, 0.25);
    RemoveBuildingForPlayer(playerid, 4515, 604.5234, 352.5391, 19.7344, 0.25);
    RemoveBuildingForPlayer(playerid, 4516, -141.3359, 468.6484, 12.9141, 0.25);
    RemoveBuildingForPlayer(playerid, 4517, -193.8281, 269.5078, 12.8906, 0.25);
    RemoveBuildingForPlayer(playerid, 5993, 1110.8984, -1328.8125, 13.8516, 0.25);
    RemoveBuildingForPlayer(playerid, 1440, 1141.9844, -1346.1094, 13.2656, 0.25);
    RemoveBuildingForPlayer(playerid, 1440, 1148.6797, -1385.1875, 13.2656, 0.25);
    return 1;
}
Reply
#5

Oh, OMG, thanks

I've been struggeling with this shit for days :3
+REP for you, man
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)