[POMOC] Erori

Započeo Duda97, Mart 03, 2011, 15:00:57 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim:FactionGame editujem
Detaljan opis problema: Dodao sam neke nove komande, i izbacilo mi je ove erore:


H:\San Andreas MultiPlayer Documents\Ultimate RP v2.0\gamemodes\ultimaterp.pwn.pwn(29640) : error 078: function uses both "return" and "return <value>"
H:\San Andreas MultiPlayer Documents\Ultimate RP v2.0\gamemodes\ultimaterp.pwn.pwn(29660) : error 078: function uses both "return" and "return <value>"
H:\San Andreas MultiPlayer Documents\Ultimate RP v2.0\gamemodes\ultimaterp.pwn.pwn(29686) : error 078: function uses both "return" and "return <value>"
H:\San Andreas MultiPlayer Documents\Ultimate RP v2.0\gamemodes\ultimaterp.pwn.pwn(29689) : error 078: function uses both "return" and "return <value>"
H:\San Andreas MultiPlayer Documents\Ultimate RP v2.0\gamemodes\ultimaterp.pwn.pwn(29704) : error 078: function uses both "return" and "return <value>"
H:\San Andreas MultiPlayer Documents\Ultimate RP v2.0\gamemodes\ultimaterp.pwn.pwn(29709) : error 078: function uses both "return" and "return <value>"
H:\San Andreas MultiPlayer Documents\Ultimate RP v2.0\gamemodes\ultimaterp.pwn.pwn(29712) : error 078: function uses both "return" and "return <value>"
H:\San Andreas MultiPlayer Documents\Ultimate RP v2.0\gamemodes\ultimaterp.pwn.pwn(29739) : error 078: function uses both "return" and "return <value>"
H:\San Andreas MultiPlayer Documents\Ultimate RP v2.0\gamemodes\ultimaterp.pwn.pwn(29744) : error 078: function uses both "return" and "return <value>"
H:\San Andreas MultiPlayer Documents\Ultimate RP v2.0\gamemodes\ultimaterp.pwn.pwn(29747) : error 078: function uses both "return" and "return <value>"
H:\San Andreas MultiPlayer Documents\Ultimate RP v2.0\gamemodes\ultimaterp.pwn.pwn(29828) : error 078: function uses both "return" and "return <value>"
H:\San Andreas MultiPlayer Documents\Ultimate RP v2.0\gamemodes\ultimaterp.pwn.pwn(29833) : error 078: function uses both "return" and "return <value>"
H:\San Andreas MultiPlayer Documents\Ultimate RP v2.0\gamemodes\ultimaterp.pwn.pwn(29855) : error 078: function uses both "return" and "return <value>"
H:\San Andreas MultiPlayer Documents\Ultimate RP v2.0\gamemodes\ultimaterp.pwn.pwn(29860) : error 078: function uses both "return" and "return <value>"
H:\San Andreas MultiPlayer Documents\Ultimate RP v2.0\gamemodes\ultimaterp.pwn.pwn(29865) : error 078: function uses both "return" and "return <value>"
H:\San Andreas MultiPlayer Documents\Ultimate RP v2.0\gamemodes\ultimaterp.pwn.pwn(29881) : error 078: function uses both "return" and "return <value>"
H:\San Andreas MultiPlayer Documents\Ultimate RP v2.0\gamemodes\ultimaterp.pwn.pwn(29897) : error 078: function uses both "return" and "return <value>"
H:\San Andreas MultiPlayer Documents\Ultimate RP v2.0\gamemodes\ultimaterp.pwn.pwn(29902) : error 078: function uses both "return" and "return <value>"
H:\San Andreas MultiPlayer Documents\Ultimate RP v2.0\gamemodes\ultimaterp.pwn.pwn(29907) : error 078: function uses both "return" and "return <value>"
H:\San Andreas MultiPlayer Documents\Ultimate RP v2.0\gamemodes\ultimaterp.pwn.pwn(29919) : error 078: function uses both "return" and "return <value>"
H:\San Andreas MultiPlayer Documents\Ultimate RP v2.0\gamemodes\ultimaterp.pwn.pwn(29924) : error 078: function uses both "return" and "return <value>"
H:\San Andreas MultiPlayer Documents\Ultimate RP v2.0\gamemodes\ultimaterp.pwn.pwn(29931) : error 078: function uses both "return" and "return <value>"
H:\San Andreas MultiPlayer Documents\Ultimate RP v2.0\gamemodes\ultimaterp.pwn.pwn(29938) : error 078: function uses both "return" and "return <value>"
H:\San Andreas MultiPlayer Documents\Ultimate RP v2.0\gamemodes\ultimaterp.pwn.pwn(29962) : error 078: function uses both "return" and "return <value>"
H:\San Andreas MultiPlayer Documents\Ultimate RP v2.0\gamemodes\ultimaterp.pwn.pwn(29974) : error 078: function uses both "return" and "return <value>"
H:\San Andreas MultiPlayer Documents\Ultimate RP v2.0\gamemodes\ultimaterp.pwn.pwn(29985) : error 078: function uses both "return" and "return <value>"

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


26 Errors.



Dio skripte:

//-------------------------------------DRIFT EVENT BY MORRISON--------------------
if(strcmp(cmd, "/drifthelp", true) == 0)
{
if(IsPlayerConnected(playerid))
    {
SendClientMessage(playerid, COLOR_GREEN,"_______________________________________");
SendClientMessage(playerid, COLOR_WHITE,"**********DRIFT RACE HELP*********");
SendClientMessage(playerid, COLOR_LIGHTBLUE,"*** DRIFT RACE *** /driftstart /driftready /setdrift /gotodrift ");

}
return 1;
}

if (strcmp(cmdtext, "/driftstart", true, 10)==0)
{
if (PlayerInfo[playerid][pAdmin] >= 1 || PlayerInfo[playerid][pEventMember] == 1)
  {
MoveObject(driftograda, -2492.188,-611.360,129.978,500.000000);
SendClientMessage(playerid, COLOR_YELLOW, "Identitet potvrden.Drift start se spusta .");
}
else return
SendClientMessage(playerid, COLOR_YELLOW, "Nisi ovlasten da koristis ovu komandu !");
}

if (strcmp(cmdtext, "/driftready", true, 10)==0)
{
if (PlayerInfo[playerid][pAdmin] >= 1 || PlayerInfo[playerid][pEventMember] == 1)
  {
MoveObject(driftograda, -2486.138,-614.620,132.198,9999999.000000);
SendClientMessage(playerid, COLOR_YELLOW, "Identitet potvrden.Drift start se dize .");
}
else return
SendClientMessage(playerid, COLOR_YELLOW, "Nisi ovlasten da koristis ovu komandu !");
}

  if (strcmp(cmd, "/setdrift", true)==0)
{
if(IsPlayerConnected(playerid))
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_YELLOW, "KORISTITE: /setdrift [IgracevID/DioImena]");
return 1;
}
giveplayerid = ReturnUser(tmp);
if (PlayerInfo[playerid][pAdmin] >= 1 || PlayerInfo[playerid][pEventMember] == 1)
{
if(IsPlayerConnected(giveplayerid))
{
SetPlayerCheckpoint(giveplayerid, -2506.0701,-614.8732,132.5254,20.0); // PRVI CHECKPOINT NA RACE
CP[giveplayerid] = 42; // OVO JE ONAJ PRVI BROJ KOD CP-A
GetPlayerName(playerid, sendername, sizeof(sendername));
GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
format(string, sizeof(string), "DRIFT ORGANIZATOR %s je pozvao %s na Drift Race!", sendername, giveplayer);
SendClientMessageToAll(COLOR_LIGHTRED, string);
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD2, " Niste autorizirani za koristenje ove komande !");
}
}
return 1;
}

if(strcmp(cmd, "/gotodrift", true) == 0)
{
    if(IsPlayerConnected(playerid))
    {
if(PlayerInfo[playerid][pAdmin] >= 3)
{
if (GetPlayerState(playerid) == 2)
{
new tmpcar = GetPlayerVehicleID(playerid);
SetVehiclePos(tmpcar, -2506.0701,-614.8732,132.5254);
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
}
else
{
SetPlayerPos(playerid, -2506.0701,-614.8732,132.5254);
}
SendClientMessage(playerid, COLOR_YELLOW, "   You have been teleported !");
SetPlayerInterior(playerid,0);
PlayerInfo[playerid][pInt] = 0;
}
else
{
SendClientMessage(playerid, COLOR_YELLOW, "   You are not authorized to use that command !");
return 1;
}
}
return 1;
}

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

kada ides "return", nikad nesmije ostati prazno... Znaci:

iz ovog:



else return
SendClientMessage(playerid, COLOR_YELLOW, "Nisi ovlasten da koristis ovu komandu !");


u ovo:

else return SendClientMessage(playerid, COLOR_YELLOW, "Nisi ovlasten da koristis ovu komandu !");


ili u suprotnom:

else
{


// bla bla ghsfdgfshsf
return true;
}

Hvala puno, mozete lock temu :D ispravio sam to :D