[Pomoc]Race

Započeo MicroSD_, Jul 14, 2011, 18:24:24 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim: Noxicus
Detaljan opis problema: Ovako, nasao sam u modu cmd /race i kada idem compilat dode mi 4 errora
Dio skripte: C:\DOCUME~1\komp\Desktop\pro\GAMEMO~1\RLRP.pwn(46992) : error 017: undefined symbol "BSelectedCheckpoint"
C:\DOCUME~1\komp\Desktop\pro\GAMEMO~1\RLRP.pwn(46992) : error 001: expected token: ";", but found "]"
C:\DOCUME~1\komp\Desktop\pro\GAMEMO~1\RLRP.pwn(46992) : error 029: invalid expression, assumed zero
C:\DOCUME~1\komp\Desktop\pro\GAMEMO~1\RLRP.pwn(46992) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


4 Errors.

Neke slike/video za lakse dobivanje pomoci(neobavezno): /

EDIT: Evo komande :SS

CMD:race(playerid, params[])
{
new opcija[20], cp;
if(sscanf(params, "s[20]D(0)", opcija, cp))
{
if(PlayerInfo[playerid][pAdmin] >= 1337)
{
SCM(playerid, WHITE, "{0080C0}INFO: {FFFF00}/race [opcija]");
SCM(playerid, WHITE, "{0080C0}Dostupno: {FFFF00}cp, scp, dcp, start, stop");
SCM(playerid, WHITE, "{0080C0}/editrace | /saverace | /racemenu");
return 1;
}
else return SCM(playerid, COLOR_TOMATO, "Nisi ovlasten! (Samo 1337+)");
}
else
{
if(PlayerInfo[playerid][pAdmin] >= 1337)
{
if(strcmp(opcija,"start",true) == 0)
{
if(BuildAdmin == 1 && PlayerInfo[playerid][pAdmin] <= 1) return 1;
if(RaceBuilders[playerid] != 0)
{
SendClientMessage(playerid, COLOR_YELLOW, "Vec pravise utrku.");
}
else if(RaceParticipant[playerid]>0)
{
    SendClientMessage(playerid, COLOR_YELLOW, "Ucestvujes u utrci.");
}
else
{
new slot;
slot=GetBuilderSlot(playerid);
if(slot == 0)
{
SendClientMessage(playerid, COLOR_YELLOW, "Nema slobodnog mjesta!");
return 1;
}
format(ystring,sizeof(ystring),"Sada pravis utrku! (Slot: %d)",slot);
SendClientMessage(playerid, COLOR_GREEN, ystring);
RaceBuilders[playerid]=slot;
BCurrentCheckpoints[ab(playerid)]=0;
Bracemode[ab(playerid)]=0;
Blaps[ab(playerid)]=0;
BAirrace[ab(playerid)] = 0;
BCPsize[ab(playerid)] = 8.0;
}
return 1;
}
else if(strcmp(opcija,"cp",true) == 0)
{
if(RaceBuilders[playerid] != 0 && BCurrentCheckpoints[ab(playerid)] < MAX_RACECHECKPOINTS)
{
new Float:x, Float:y, Float:z;
GetPlayerPos(playerid,x,y,z);
format(ystring,sizeof(ystring),"Checkpoint %d postavljen: %f,%f,%f.",BCurrentCheckpoints[ab(playerid)],x,y,z);
SendClientMessage(playerid, COLOR_GREEN, ystring);
BRaceCheckpoints[ab(playerid)][BCurrentCheckpoints[ab(playerid)]][0]=x;
BRaceCheckpoints[ab(playerid)][BCurrentCheckpoints[ab(playerid)]][1]=y;
BRaceCheckpoints[ab(playerid)][BCurrentCheckpoints[ab(playerid)]][2]=z;
BSelectedCheckpoint[ab(playerid)]=BCurrentCheckpoints[ab(playerid)];
SetBRaceCheckpoint(playerid,BCurrentCheckpoints[ab(playerid)],-1);
BCurrentCheckpoints[ab(playerid)]++;
}
else if(RaceBuilders[playerid] != 0 && BCurrentCheckpoints[ab(playerid)] == MAX_RACECHECKPOINTS)
{
format(ystring,sizeof(ystring),"Zao nam je, vec imas previse checkpointova (%d).",MAX_RACECHECKPOINTS);
SendClientMessage(playerid, COLOR_YELLOW, ystring);
}
else
{
SendClientMessage(playerid, COLOR_RED, "Ne pravis utrku!");
}
return 1;
}
else if(strcmp(opcija,"scp",true) == 0)
{
if(RaceBuilders[playerid] != 0)
{
if(cp>BCurrentCheckpoints[ab(playerid)]-1 || BCurrentCheckpoints[ab(playerid)] < 1 || cp < 0)
{
SendClientMessage(playerid, COLOR_YELLOW, "Pogresan CP!");
return 1;
}
format(ystring,sizeof(ystring),"Odabrao si checkpoint broj %d.",cp);
SendClientMessage(playerid, COLOR_GREEN, ystring);
BActiveCP(playerid,cp);
BSelectedCheckpoint[ab(playerid)]=cp;
}
else
{
SendClientMessage(playerid, COLOR_RED, "Ne pravis utrku!");
}
return 1;
}
else if(strcmp(opcija,"dcp",true) == 0)
{
if(RaceBuilders[playerid] == 0)
{
SendClientMessage(playerid, COLOR_RED, "Ne pravis utrku!");
return 1;
}
else if(BCurrentCheckpoints[ab(playerid)] < 1)
{
SendClientMessage(playerid, COLOR_YELLOW, "Nema CP-ova za obrisati!");
return 1;
}
for(new i=BSelectedCheckpoint[ab(playerid)];i<BCurrentCheckpoints[ab(playerid)];i++)
{
BRaceCheckpoints[ab(playerid)][i][0]=BRaceCheckpoints[ab(playerid)][i+1][0];
BRaceCheckpoints[ab(playerid)][i][1]=BRaceCheckpoints[ab(playerid)][i+1][1];
BRaceCheckpoints[ab(playerid)][i][2]=BRaceCheckpoints[ab(playerid)][i+1][2];
}
BCurrentCheckpoints[ab(playerid)]--;
BSelectedCheckpoint[ab(playerid)]--;
if(BCurrentCheckpoints[ab(playerid)] < 1)
{
    DisablePlayerRaceCheckpoint(playerid);
    BSelectedCheckpoint[ab(playerid)]=0;
return 1;
}
else if(BSelectedCheckpoint[ab(playerid)] < 0)
{
    BSelectedCheckpoint[ab(playerid)]=0;
}
BActiveCP(playerid,BSelectedCheckpoint[ab(playerid)]);
SendClientMessage(playerid,COLOR_GREEN,"Checkpoint obrisan!");
return 1;
}
else if(strcmp(opcija,"stop",true) == 0)
{
if(RaceBuilders[playerid] != 0) clearrace(playerid);
else SendClientMessage(playerid, COLOR_RED, "Ne pravis utrku!");
}
}
else return SCM(playerid, COLOR_TOMATO, "Nisi ovlasten! (Samo 1337+)");
}
return 1;
}
Poslednja Izmena: Jul 14, 2011, 18:35:13 POSLE PODNE od MTA.user

Ne valja ti taj sistem, ja nisam taj koristio.... Ima podosta bugova ( sa nagradama sa cp-ovima - nestaju itd.)

Nikada nisam uspio rijesiti neke bugove...
Just one more time.


aj os mi poslat taj svoj ovaj kako popravit to da radi IG :/

//new BSelectedCheckpoint[MAX_BUILDERS];               //Selected checkpoint during building


sta da obrisem demi zaljepi tu

Ovak je orginal

//new BSelectedCheckpoint[MAX_BUILDERS];

a da bude ovak

new BSelectedCheckpoint[MAX_BUILDERS];

i opet nece da mi radi npr kad kucam /race itd te komande jel moram maknit ovo /*/

Cim kucam /save race odma mi se server Restartira zasto? -.-
Poslednja Izmena: Septembar 20, 2011, 21:53:13 POSLE PODNE od hood9

sta da napravim da mi se server stalno ne resetira :(

koju mapu reci mi di da idem i sta da vidim koju mapu kad ocu /saverace MOJE stavim i resetira mi se

znaci samo u scriptfiles mapu novu utrke
Poslednja Izmena: Septembar 20, 2011, 23:33:04 POSLE PODNE od hood9

Imam komandu :


CMD:evozilo(playerid, params[])
{

if(PlayerInfo[playerid][pAdmin] >= 1 || PlayerInfo[playerid][pGameMaster] >= 1)
{

ShowPlayerDialog( playerid, 5421, DIALOG_STYLE_LIST, "Odaberi vozilo za igrace na eventu.", "NRG-500\nInfernus\nTurismo\nComet\nSanchez\nFaggio\nPCJ-600\nFCR-900\nQuadBike\nSandKing\nSultan\nSuper GT\nBullet\nZR-350\nCheetah\nBanshee\nFlash\nNema Vozila", "Odaberi", "" );

}
else return SCM(playerid, COLOR_GREY, "Nisi ovlasten!");
return 1;
}




Kako da napravim npr /estvori ili ovo ali da napravim /eport tak nes da se predamnom auti stvore ili nznm dise ovo stvori :/

A kako da napravim te komande npr sam /eport [id vozila] [kolko vozila]