Szerző Téma: /kill parancs probléma  (Megtekintve 643 alkalommal)

[ZzZ]Álmos

  • Vendég
/kill parancs probléma
« Dátum: 2012. február 14. - 16:42:36 »
0 Show voters
Sziasztok!
[pawn]if (strcmp(\"/kill\", cmdtext, true, 10) == 0)
{
     SetPlayerHealth(playerid,0.0);
     return 1;
}
[/pawn]
Egyszerü /kill parancs. Meghalsz tõle. De runolom és ezek a hibái:
C:\\Bencemod\\SCRIPTEK\\kill script.pwn(1) : error 010: invalid function or declaration
C:\\Bencemod\\SCRIPTEK\\kill script.pwn(4) : error 010: invalid function or declaration
C:\\Bencemod\\SCRIPTEK\\kill script.pwn(7) : error 013: no entry point (no public functions)
Pawn compiler 3.2.3664           Copyright © 1997-2006, ITB CompuPhase
Mi lehet a gond?

Nem elérhető Benceee

  • 4785
    • Profil megtekintése
/kill parancs probléma
« Válasz #1 Dátum: 2012. február 14. - 16:48:21 »
0 Show voters
#include <a_samp>

 
Ez megvan?

[ZzZ]Álmos

  • Vendég
/kill parancs probléma
« Válasz #2 Dátum: 2012. február 14. - 16:56:34 »
0 Show voters
Idézetet írta: Benceee date=1329234501\" data-ipsquote-contentapp=\"forums\" data-ipsquote-contenttype=\"forums\" data-ipsquote-contentid=\"17046\" data-ipsquote-contentclass=\"forums_Topic

#include <a_samp>

 
Ez megvan?
 
Benne van.. Viszont 2x volt benne kitöröltem az egyiket. Már csak 2 error
C:\\Bencemod\\v1.9\\baremod.pwn(121) : error 010: invalid function or declaration
C:\\Bencemod\\v1.9\\baremod.pwn(124) : error 010: invalid function or declaration
Milyen függvény alá kell?

Nem elérhető lusta19

  • 9084
  • £u$taÐi$znó
    • Profil megtekintése
/kill parancs probléma
« Válasz #3 Dátum: 2012. február 14. - 16:56:50 »
0 Show voters
Vagy így:
 
if(strcmp(cmdtext, \"/kill\", true) == 0) {
    SetPlayerHealth(playerid,0.0);
          return 1;
}

[ZzZ]Álmos

  • Vendég
/kill parancs probléma
« Válasz #4 Dátum: 2012. február 14. - 16:58:19 »
0 Show voters
>\" post=\"224958\" timestamp=\"1329235010\"]
Vagy így:
 
if(strcmp(cmdtext, \"/kill\", true) == 0) {
    SetPlayerHealth(playerid,0.0);
          return 1;
}

 

[/quote]
Lusta mindkettõt kipróbálom. Milyen függvény alá kell? Mert én nem függvény alá raktam!

Nem elérhető lusta19

  • 9084
  • £u$taÐi$znó
    • Profil megtekintése
/kill parancs probléma
« Válasz #5 Dátum: 2012. február 14. - 16:59:41 »
0 Show voters
public OnPlayerCommandText

[ZzZ]Álmos

  • Vendég
/kill parancs probléma
« Válasz #6 Dátum: 2012. február 14. - 17:02:36 »
0 Show voters
>\" post=\"224960\" timestamp=\"1329235181\"]
public OnPlayerCommandText
 
[/quote]
Köszi Lusta müxik :) Zárom!

 

SimplePortal 2.3.7 © 2008-2024, SimplePortal