Szerző Téma: Ez a script mûködik? (/heal /Töltsd le)  (Megtekintve 489 alkalommal)

[ZzZ]Álmos

  • Vendég
Ez a script mûködik? (/heal /Töltsd le)
« Dátum: 2012. Február 12. - 16:05:18 »
0 Show voters
http://data.hu/get/4724165/heal.pwn
Nálam error-t ír pedig más adta és elv. mûködik. (Pawnoba ír error-t)

Nem elérhető buci11

  • 502
    • Profil megtekintése
Ez a script mûködik? (/heal /Töltsd le)
« Válasz #1 Dátum: 2012. Február 12. - 16:07:22 »
+1 Show voters
használj sscanfet újabb gyorsabb egyszerûbb am szerintem menni fog

Nem elérhető lusta19

  • 9084
  • £u$taÐi$znó
    • Profil megtekintése
Ez a script mûködik? (/heal /Töltsd le)
« Válasz #2 Dátum: 2012. Február 12. - 16:07:54 »
+1 Show voters
így jobb :
 
if(strcmp(cmd, \"/health\", true) == 0) {
    SetPlayerHealth(playerid,100.0);
        SendClientMessage(playerid, 0x33CCFFAA,\"Feltöltöted az életed\");
return 1;
}

[ZzZ]Álmos

  • Vendég
Ez a script mûködik? (/heal /Töltsd le)
« Válasz #3 Dátum: 2012. Február 12. - 16:08:12 »
0 Show voters
Idézetet írta: buci11 date=1329059242\" data-ipsquote-contentapp=\"forums\" data-ipsquote-contenttype=\"forums\" data-ipsquote-contentid=\"16944\" data-ipsquote-contentclass=\"forums_Topic
használj sscanfet újabb gyorsabb egyszerûbb am szerintem menni fog
 
Linket dobsz?

Dupla hozzászólás automatikusan összefûzve. ( 2012. Február 12. - 16:09:13 )

> link=topic=21059.msg224101#msg224101 date=1329059274]
így jobb :
 
if(strcmp(cmd, \"/health\", true) == 0) {
    SetPlayerHealth(playerid,100.0);
        SendClientMessage(playerid, 0x33CCFFAA,\"Feltöltöted az életed\");
return 1;
}

 

[/quote]
Lu$ta így :
C:\\Documents and Settings\\kuruzslo\\Dokumentumok\\test\\gamemodes\\heal.pwn(8) : error 025: function heading differs from prototype
C:\\Documents and Settings\\kuruzslo\\Dokumentumok\\test\\gamemodes\\heal.pwn(8) : error 029: invalid expression, assumed zero
C:\\Documents and Settings\\kuruzslo\\Dokumentumok\\test\\gamemodes\\heal.pwn(10) : error 010: invalid function or declaration
C:\\Documents and Settings\\kuruzslo\\Dokumentumok\\test\\gamemodes\\heal.pwn(13) : error 010: invalid function or declaration
C:\\Documents and Settings\\kuruzslo\\Dokumentumok\\test\\gamemodes\\heal.pwn(16) : error 010: invalid function or declaration
C:\\Documents and Settings\\kuruzslo\\Dokumentumok\\test\\gamemodes\\heal.pwn(18) : error 054: unmatched closing brace (\"}\")
C:\\Documents and Settings\\kuruzslo\\Dokumentumok\\test\\gamemodes\\heal.pwn(19) : error 010: invalid function or declaration
C:\\Documents and Settings\\kuruzslo\\Dokumentumok\\test\\gamemodes\\heal.pwn(21) : warning 203: symbol is never used: \"Heal\"
C:\\Documents and Settings\\kuruzslo\\Dokumentumok\\test\\gamemodes\\heal.pwn(21) : warning 203: symbol is never used: \"id\"
C:\\Documents and Settings\\kuruzslo\\Dokumentumok\\test\\gamemodes\\heal.pwn(21) : warning 203: symbol is never used: \"tmp\"
Pawn compiler 3.2.3664           Copyright © 1997-2006, ITB CompuPhase
7 Errors.
 
[/quote]

Nem elérhető lusta19

  • 9084
  • £u$taÐi$znó
    • Profil megtekintése
Ez a script mûködik? (/heal /Töltsd le)
« Válasz #4 Dátum: 2012. Február 12. - 16:40:36 »
0 Show voters
A módba ez alá kell rakni
public OnPlayerCommandText(playerid,cmdtext[])

 

SimplePortal 2.3.7 © 2008-2024, SimplePortal