Szerző Téma: pls help  (Megtekintve 628 alkalommal)

pls help
« Dátum: 2010. Március 02. - 22:26:36 »
0 Show voters
1     #include <a_samp>
2     393 if (strcmp (cmdtext, \"/open\", true, 0)  {
3   394                    MoveObject (PoliceLVGate,2237.59, 2457.15, 9.77, 4.00);
4   395                    return 1;
5   396            }
6   397                SetTimer(\"Auto\", 5000, 1);  {
7   398                 SendClientMessage((0x33AA33AA,\"Sikeresen kinyitottad,a kapu 5mp mulva zarul\");
8   399                   MoveObject (PoliceLVGate,2237.59, 2448.94, 9.77, 4.00);
9   400                   return 1;
10  401                   }
11  402                  
nem tudom idáig ez jó e de elfogadja a pawno de a 3 asba kap 1 apró hibát méghozzá: error 010: invalid function or declaration (kezdo scripter vagyok) és ezt hogy tudom kijavitani?
« Utoljára szerkesztve: 2010. Március 05. - 18:42:11 írta reqries »

Nem elérhető Iceaac

  • 2187
    • Profil megtekintése
pls help
« Válasz #1 Dátum: 2010. Március 03. - 06:27:54 »
0 Show voters
Megcsinálod a kapu parancsait, /nyit parancsnál SetTimer, és mikor lejár a timer akkor megint moveobject a helyére mint /zár paranccsal.
http://wiki.sa-mp.com/wiki/SetTimer

jana4

  • Vendég
pls help
« Válasz #2 Dátum: 2010. Március 03. - 18:14:16 »
0 Show voters
SetTimerEx(\"vissza hívó prototípus neve\", 5000, false, \"i\", playerid);
« Utoljára szerkesztve: 2010. Március 03. - 18:33:04 írta ScreaM »

Nem elérhető ZeRo

  • 4620
  • Ex Globális Moderátor
    • Profil megtekintése
pls help
« Válasz #3 Dátum: 2010. Március 03. - 18:26:23 »
0 Show voters
Idézetet írta: ScreaM date=1267636456\" data-ipsquote-contentapp=\"forums\" data-ipsquote-contenttype=\"forums\" data-ipsquote-contentid=\"843\" data-ipsquote-contentclass=\"forums_Topic

SetTimerEx(\"vissza hívó prototípus neve\", 5000, false, \"s\", playerid);

 

Egy objektum - azononosítóra hivatkozni a játékos azonosítójával sztring argumentumként?  ::)
ZeRo

jana4

  • Vendég
pls help
« Válasz #4 Dátum: 2010. Március 03. - 18:27:47 »
0 Show voters
jajj bocs, lol  :) kimásoltam csak a módomból [az volt elottem xd]

javítva

 

SimplePortal 2.3.7 © 2008-2024, SimplePortal