Hooligan

Matuoklio problema

Recommended Posts

Sveiki, iskilo beda su matuokliu meta error Stai ta dalis kurioje meta error

(713) if(PlayerToPoint(20.0, playerid, -2011.8517,238.3638,31.0365) && model != 481 && model != 510)
  {
     (715) if(GetSpeed(playerid)>90 && !playerDB[playerid][greitis] && !playerDB[playerid][admin] && !playerDB[playerid][vip])
     {
     (717) SetPlayerWantedLevel(playerid,GetPlayerWantedLevel(playerid)+2);
     (718) new estr[128];
     (719) format(estr,128,"* Greic(io matuoklis užfiksavo, kad ju-s virsijote greiti!! Leistinas greitis 90 KM/H o jusu buvo %d KM/H.",GetSpeed(playerid));
     (720) SendClientMessage(playerid,RED,estr);
     (721) format(estr,128,"%s virsijo greiti. Jo greitis buvo %d KM/H.",GET_PLAYER_NAME(playerid),GetSpeed(playerid));
     (722) SendMessageToCops(BLUE,estr);
     (723) playerDB[playerid][greitis] = true;
     (724) SetTimerEx("NuimamGreiti",5000,0,"i",playerid);
     }
  }
}

Error:

C:\Documents and Settings\*******\My Documents\Downloads\New Folder\Ls_Rp1\gamemodes\LS-RP.pwn(713) : error 010: invalid function or declaration

C:\Documents and Settings\********\My Documents\Downloads\New Folder\Ls_Rp1\gamemodes\LS-RP.pwn(715) : error 010: invalid function or declaration

C:\Documents and Settings\*********\My Documents\Downloads\New Folder\Ls_Rp1\gamemodes\LS-RP.pwn(719) : error 021: symbol already defined: "format"

C:\Documents and Settings\**********\My Documents\Downloads\New Folder\Ls_Rp1\gamemodes\LS-RP.pwn(722) : error 021: symbol already defined: "SendMessageToCops"

C:\Documents and Settings\**********\My Documents\Downloads\New Folder\Ls_Rp1\gamemodes\LS-RP.pwn(10402) : warning 203: symbol is never used: "estr"

Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

4 Errors.

Dalintis šį pranešimą


Nuoroda iki šio pranešimo
Dalintis per kitą puslapį

new Float:sx,Float:sy,Float:sz;
  GetVehiclePos(vehicleid,sx,sy,sz);
  if(sy < didziausiay && sy > maziausiay && sx < didziausiax && sx > mažiausiax)
{

čia nustatyk kur bus.

new id = s_GetClosestPlayer(playerid,10.0),estr[128];
  if(!IsPlayerConnected(id) || !aktivuotas[playerid] || fi[playerid][id] || GetPlayerState(id) != 2 ||!GetSpeed(id)) return SetTimerEx("CheckS",100,0,"i",playerid),1;
  format(estr,128,"%s pravazevo %d KM/H greiciu.",GET_PLAYER_NAME(id),GetSpeed(id));
  fi[playerid][id] = true;
  SendClientMessage(playerid,RED,estr);
   if(GetSpeed(id) >= 100)
   {

     SetPlayerWantedLevel(id,GetPlayerWantedLevel(id)+2);
     format(estr,128,"* Jus virsijote greiti leistinas greitis 100 KM/H o jusu buvo %d KM/H.",GetSpeed(id));
     SendClientMessage(id,RED,estr);
   }
  SetTimerEx("Unfi",7*700,0,"ii",playerid,id);
  SetTimerEx("CheckS",100,0,"i",playerid);
  return 1;
}
Float:GetPos(playerid,posid) { new Float:id[3]; if(IsPlayerInAnyVehicle(playerid)) GetVehiclePos(GetPlayerVehicleID(playerid),id[0],id[1],id[2]); else GetPlayerPos(playerid,id[0],id[1],id[2]); return id[posid-1]; }
                                                                 //Speed = floatmul(floatsqroot(floatadd(floatadd(floatpower(vX, 2), floatpower(vY, 2)),  floatpower(vZ, 2))), 176.0);
GetSpeed(id) { new Float:s[4]; GetVehicleVelocity(GetPlayerVehicleID(id),s[0],s[1],s[2]); return floatround((1.61-MPH)*floatsqroot(floatabs(floatpower(s[0]+s[1]+s[2],2)))*105); }
GET_PLAYER_NAME( id ) { new x[  MAX_PLAYER_NAME  ]; if( IsPlayerConnected( id ) ) GetPlayerName( id , x , sizeof(x) ); return x; }
s_GetClosestPlayer(except,Float: radius = 99999.9999)
{
  new Float:dis[2],e[2];
  e[0] = INVALID_PLAYER_ID;
  dis[0] = radius;
  for (e[1]=0;e[1]   {
     dis[1] = floatsqroot(floatpower(floatabs(floatsub(GetPos(e[1],1),GetPos(except,1))),2)+floatpower(floatabs(floatsub(GetPos(e[1],2),GetPos(except,2))),2)+floatpower(floatabs(floatsub(GetPos(e[1],3),GetPos(except,3))),2));
     if(dis[1]< dis[0])
     {
        dis[0] = dis[1];
        e[0] = e[1];
     }
  }
  return e[0]

Tokį radau kažkur internete, pabandyk pakeisti.

Arba jaučiu kažkur nepadėjai , { } ;

Dalintis šį pranešimą


Nuoroda iki šio pranešimo
Dalintis per kitą puslapį
Svečias
Ši tema yra užrakinta.

  • Å iame puslapyje narÅ¡o:   0 nariai

    Nėra registruotų narių peržiūrinčių šį forumą.