Szerző Téma: Gyorsító scipt  (Megtekintve 496 alkalommal)

Gyorsító scipt
« Dátum: 2012. December 14. - 16:24:16 »
0 Show voters
Sziasztok!Próbáltam csinálni egy olyat, hogy 2 másodpercenként lekéri a jármû sebességét, és folyamatosan gyorsul, de valamiért nem jó :(
 
#include zcmd
#include a_samp
forward whi;
public whi()
{
new Float:x, Float:y, Float:z;
GetVehicleVelocity(vehicleid, x, y, z);
SetVehicleVelocity(vehicleid, x+10, y+10, z+10);
}
CMD:whi(playerid, params[])
{
SetTimer(\"whi\", 2000, true);
return 1;
}

 

c:\\Documents and Settings\\Viktor\\Asztal\\GTA ÚJ\\pawno\\include\\zcmd.inc(62) : warning 235: public function lacks forward declaration (symbol \"OnGameModeInit\")
c:\\Documents and Settings\\Viktor\\Asztal\\GTA ÚJ\\pawno\\include\\zcmd.inc(64) : error 017: undefined symbol \"funcidx\"
c:\\Documents and Settings\\Viktor\\Asztal\\GTA ÚJ\\pawno\\include\\zcmd.inc(64) : warning 215: expression has no effect
c:\\Documents and Settings\\Viktor\\Asztal\\GTA ÚJ\\pawno\\include\\zcmd.inc(64) : error 001: expected token: \";\", but found \")\"
c:\\Documents and Settings\\Viktor\\Asztal\\GTA ÚJ\\pawno\\include\\zcmd.inc(64) : error 029: invalid expression, assumed zero
c:\\Documents and Settings\\Viktor\\Asztal\\GTA ÚJ\\pawno\\include\\zcmd.inc(64) : 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.

Nem elérhető Casamiro

  • 1046
    • Profil megtekintése
Gyorsító scipt
« Válasz #1 Dátum: 2012. December 14. - 16:40:45 »
+1 Show voters
#include a_samp
#include zcmd
forward whi(playerid);
public whi(playerid)
{
new Float:x, Float:y, Float:z, vehicleid = GetPlayerVehicleID(playerid);
GetVehicleVelocity(vehicleid, x, y, z);
SetVehicleVelocity(vehicleid, x+10, y+10, z+10);
}
CMD:whi(playerid, params[])
{
if(GetPlayerState(playerid) != PLAYER_STATE_DRIVER) return 1;
SetTimer(\"whi\", 2000, true, \"d\", playerid);
return 1;
}

Gyorsító scipt
« Válasz #2 Dátum: 2012. December 14. - 16:53:57 »
0 Show voters
köszi megint! :D

 

SimplePortal 2.3.7 © 2008-2024, SimplePortal