[POMOC]Mappe

Započeo WilliamS, Jun 12, 2013, 16:50:08 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim:Moja
Detaljan opis problema:Radio sam mapu preko map editora i dobio kordinate remove objekte...i ubacio sam tamo u skriptu i baca mi errore na ove dve linije RemoveBuildingForPlayer(playerid, 962, 825.0547, -1356.8828, 13.6016, 0.25);
RemoveBuildingForPlayer(playerid, 962, 827.5078, -1353.7266, 13.6016, 0.25);
Kako da stavim umesto RemoveBuildingForPlayer ?
Dio skripte:
Neke slike/video za lakse dobivanje pomoci(neobavezno):


Respect:ColdPlay,Artie,dnjl.

baca mi error na ovoj liniji RemoveBuildingForPlayer(playerid, 962, 825.0547, -1356.8828, 13.6016, 0.25); a error je C:\Users\Salipur\Desktop\City_Life_RolePlay_v5.0_0.3x\gamemodes\CLRP.pwn(1177) : error 021: symbol already defined: "RemoveBuildingForPlayer"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


1 Error.


Respect:ColdPlay,Artie,dnjl.

Stavio sam ga tu i baca mi errore


Respect:ColdPlay,Artie,dnjl.

Posalji ceo onplayerconnect
Poslednja Izmena: Jun 12, 2013, 17:56:28 POSLE PODNE od [LX] BocaBajrovic (Bocilinjo!)

Evo  public OnPlayerConnect(playerid)
{
    if(PlayerInfo[playerid][pOfflineBan] == 1)
{
SCM(playerid,BELA, "Vi ste offline banovani!");
SCM(playerid,BELA, "Ako mislite da je greska postavite na forumu!");
SCM(playerid,BELA, "Forum: www.sa-mp.com");
Kick(playerid);
}

gHeaderTextDrawId[playerid] = PlayerText:INVALID_TEXT_DRAW;
    gBackgroundTextDrawId[playerid] = PlayerText:INVALID_TEXT_DRAW;
    gCurrentPageTextDrawId[playerid] = PlayerText:INVALID_TEXT_DRAW;
    gNextButtonTextDrawId[playerid] = PlayerText:INVALID_TEXT_DRAW;
    gPrevButtonTextDrawId[playerid] = PlayerText:INVALID_TEXT_DRAW;

    for(new x=0; x < SELECTION_ITEMS; x++)
{
        gSelectionItems[playerid][x] = PlayerText:INVALID_TEXT_DRAW;
}

gItemAt[playerid] = 0;

if(fexist(UserPath(playerid)))
{
INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
new ptext[10],string[200];
if(PlayerInfo[playerid][pPoreklo] == 1) { ptext = "SRB"; }
else if(PlayerInfo[playerid][pPoreklo] == 2) { ptext = "BIH"; }
else if(PlayerInfo[playerid][pPoreklo] == 3) { ptext = "HRV"; }
ClearChatbox(playerid, 20);
format(string,sizeof(string),"{FFFFFF}___________________________________\n\nKorisnik {FF0000}%s {FFFFFF}je pronadjen.\nPoreklo: {F3FF02}%s\n\n{FFFFFF}Unesite lozinku korisnika:\n___________________________________", ImeIgraca(playerid),ptext);
SPD(playerid, DIALOG_LOGIN, DIALOG_STYLE_PASSWORD,"{00BFFE}Ci{FFFFFF}ty {F3FF02}Life",string,"Ulaz","Izlaz");
if(PlayerInfo[playerid][pRegistrovan] == 0)
{
SetTimerEx("NijePogledaoTutorial", 9000, 0, "i", playerid);
}
}
else
{
    ClearChatbox(playerid, 20);
    new registracija[150];
format(registracija, sizeof registracija, "{FFFFFF}Korisnicki racun {00C0FF}%s {FFFFFF}nije registrovan.\nUnesite lozinku koju cete koristiti za ulazak u igru.", ImeIgraca(playerid));
SPD(playerid, DIALOG_REGISTRACIJA, DIALOG_STYLE_INPUT,"{00C0FF}Registracija",registracija,"Registruj","Izlaz");
}
SetPlayerColor(playerid,0xFFFFFF00);

TP[playerid] = 0;
DozvolaZaSkin[playerid] = 0;
IgracLogovan[playerid] = 0;
PLogin[playerid] = 0;
MotorVozila[playerid] = 0;
PlayerPressedJump[playerid] = 0;
PlayerInfo[playerid][pRegistrovan] = 0;
PlayerInfo[playerid][pTelefon] = 0;
PlayerInfo[playerid][pGPS] = 0;
PlayerInfo[playerid][pDzeparosVreme] = 0;
return 1;
}

//Remove Objekti

//Spawn
RemoveBuildingForPlayer(playerid, 962, 825.0547, -1356.8828, 13.6016, 0.25);
RemoveBuildingForPlayer(playerid, 962, 827.5078, -1353.7266, 13.6016, 0.25);


//------------------------------------------------------------------------------


Respect:ColdPlay,Artie,dnjl.

Ovako public OnPlayerConnect(playerid)
{
    if(PlayerInfo[playerid][pOfflineBan] == 1)
{
SCM(playerid,BELA, "Vi ste offline banovani!");
SCM(playerid,BELA, "Ako mislite da je greska postavite na forumu!");
SCM(playerid,BELA, "Forum: www.sa-mp.com");
Kick(playerid);
}
//spawn
RemoveBuildingForPlayer(playerid, 962, 825.0547, -1356.8828, 13.6016, 0.25);
RemoveBuildingForPlayer(playerid, 962, 827.5078, -1353.7266, 13.6016, 0.25);

gHeaderTextDrawId[playerid] = PlayerText:INVALID_TEXT_DRAW;
    gBackgroundTextDrawId[playerid] = PlayerText:INVALID_TEXT_DRAW;
    gCurrentPageTextDrawId[playerid] = PlayerText:INVALID_TEXT_DRAW;
    gNextButtonTextDrawId[playerid] = PlayerText:INVALID_TEXT_DRAW;
    gPrevButtonTextDrawId[playerid] = PlayerText:INVALID_TEXT_DRAW;

    for(new x=0; x < SELECTION_ITEMS; x++)
{
        gSelectionItems[playerid][x] = PlayerText:INVALID_TEXT_DRAW;
}

gItemAt[playerid] = 0;

if(fexist(UserPath(playerid)))
{
INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
new ptext[10],string[200];
if(PlayerInfo[playerid][pPoreklo] == 1) { ptext = "SRB"; }
else if(PlayerInfo[playerid][pPoreklo] == 2) { ptext = "BIH"; }
else if(PlayerInfo[playerid][pPoreklo] == 3) { ptext = "HRV"; }
ClearChatbox(playerid, 20);
format(string,sizeof(string),"{FFFFFF}___________________________________\n\nKorisnik {FF0000}%s {FFFFFF}je pronadjen.\nPoreklo: {F3FF02}%s\n\n{FFFFFF}Unesite lozinku korisnika:\n___________________________________", ImeIgraca(playerid),ptext);
SPD(playerid, DIALOG_LOGIN, DIALOG_STYLE_PASSWORD,"{00BFFE}Ci{FFFFFF}ty {F3FF02}Life",string,"Ulaz","Izlaz");
if(PlayerInfo[playerid][pRegistrovan] == 0)
{
SetTimerEx("NijePogledaoTutorial", 9000, 0, "i", playerid);
}
}
else
{
    ClearChatbox(playerid, 20);
    new registracija[150];
format(registracija, sizeof registracija, "{FFFFFF}Korisnicki racun {00C0FF}%s {FFFFFF}nije registrovan.\nUnesite lozinku koju cete koristiti za ulazak u igru.", ImeIgraca(playerid));
SPD(playerid, DIALOG_REGISTRACIJA, DIALOG_STYLE_INPUT,"{00C0FF}Registracija",registracija,"Registruj","Izlaz");
}
SetPlayerColor(playerid,0xFFFFFF00);

TP[playerid] = 0;
DozvolaZaSkin[playerid] = 0;
IgracLogovan[playerid] = 0;
PLogin[playerid] = 0;
MotorVozila[playerid] = 0;
PlayerPressedJump[playerid] = 0;
PlayerInfo[playerid][pRegistrovan] = 0;
PlayerInfo[playerid][pTelefon] = 0;
PlayerInfo[playerid][pGPS] = 0;
PlayerInfo[playerid][pDzeparosVreme] = 0;
return 1;
}
Poslednja Izmena: Jun 12, 2013, 18:08:17 POSLE PODNE od [LX] BocaBajrovic (Bocilinjo!)

Tnx radi moze lock

Boco Pm.. :D


Respect:ColdPlay,Artie,dnjl.