Szerző Téma: Séta script  (Megtekintve 1667 alkalommal)

Séta script
« Dátum: 2012. Április 18. - 14:22:13 »
0 Show voters
Sziasztok nekem kéne egy olyan script amivel ha beirom /seta akkor átálitja a gyaloglási tipusom :D nem tom hogy kifelyezni máshogy

Séta script
« Válasz #1 Dátum: 2012. Április 18. - 14:37:41 »
0 Show voters
egyszerübbet tudok nomd le az Alt-ot és ugy menj

Nem elérhető Rexii

  • 471
    • Profil megtekintése
Séta script
« Válasz #2 Dátum: 2012. Április 18. - 14:41:31 »
0 Show voters
Idézetet írta: GangBang date=1334751733\" data-ipsquote-contentapp=\"forums\" data-ipsquote-contenttype=\"forums\" data-ipsquote-contentid=\"20348\" data-ipsquote-contentclass=\"forums_Topic
beirom /seta akkor átálitja a gyaloglási TIPUSOM
 

Nem elérhető Erik3333

  • 945
  • SMF | phpBB | TS3 | PHP | HTML | CSS | JS | PAWN | JAVA
    • Profil megtekintése
Séta script
« Válasz #3 Dátum: 2012. Április 18. - 14:48:59 »
0 Show voters
Talán ez?
 
   if(strcmp(cmd, \"/walk\", true) == 0)
{
tmp = strtok(cmdtext,idx);
if (!strlen(tmp))
   return SendClientMessage(playerid,COLOR_LIGHTRED,\"Használat: /walk [id(0-13)]\");
new stilus = strval(tmp);
SetPlayerWalkingStyle(playerid, stilus);
SendFormatMessage(playerid, COLOR_WHITE, \"Sétálási stílusod: %d\", strval(tmp));
return 1;
}

Nem elérhető RyDerBoy96

  • 2048
  • RyDerBoy96
    • Profil megtekintése
Séta script
« Válasz #4 Dátum: 2012. Április 18. - 15:10:35 »
0 Show voters
Idézetet írta: Erik3333 date=1334753339\" data-ipsquote-contentapp=\"forums\" data-ipsquote-contenttype=\"forums\" data-ipsquote-contentid=\"20348\" data-ipsquote-contentclass=\"forums_Topic
Talán ez?
 
   if(strcmp(cmd, \"/walk\", true) == 0)
{
tmp = strtok(cmdtext,idx);
if (!strlen(tmp))
   return SendClientMessage(playerid,COLOR_LIGHTRED,\"Használat: /walk [id(0-13)]\");
new stilus = strval(tmp);
SetPlayerWalkingStyle(playerid, stilus);
SendFormatMessage(playerid, COLOR_WHITE, \"Sétálási stílusod: %d\", strval(tmp));
return 1;
}

 

Ez egy animáció. Õ azt akarja hogy amikor lenyomja az ALT-ot és sétál, azt többféle stílusban is csinálhassa. Pl. úgy akarsz menni mint egy prosti ALT-al, de nem /walk [id]-re gondol. Ezt egyszer beírod és megy örökké, vagyis addig amíg entert nem nyomsz.

Nem elérhető nyE

  • 1745
    • Profil megtekintése
Séta script
« Válasz #5 Dátum: 2012. Április 18. - 15:18:32 »
0 Show voters

Séta script
« Válasz #6 Dátum: 2012. Április 18. - 15:39:55 »
0 Show voters
Idézetet írta: Erik3333 date=1334753339\" data-ipsquote-contentapp=\"forums\" data-ipsquote-contenttype=\"forums\" data-ipsquote-contentid=\"20348\" data-ipsquote-contentclass=\"forums_Topic
Talán ez?
 
   if(strcmp(cmd, \"/walk\", true) == 0)
{
tmp = strtok(cmdtext,idx);
if (!strlen(tmp))
   return SendClientMessage(playerid,COLOR_LIGHTRED,\"Használat: /walk [id(0-13)]\");
new stilus = strval(tmp);
SetPlayerWalkingStyle(playerid, stilus);
SendFormatMessage(playerid, COLOR_WHITE, \"Sétálási stílusod: %d\", strval(tmp));
return 1;
}

 

Énis kiszedtem már ezt a SeeRPG módjából igen így is jó de mikor elakarom menteni akkor crashel a pawno vagy hogy mondjam

Dupla hozzászólás automatikusan összefûzve. ( 2012. Április 18. - 15:41:53 )


http://pastebin.com/XFy0R97c
 
[/quote]
 
C:\\Documents and Settings\\Beni\\Asztal\\SAMP\\filterscripts\\seta.pwn(39) : warning 217: loose indentation
C:\\Documents and Settings\\Beni\\Asztal\\SAMP\\filterscripts\\seta.pwn(39) : error 004: function \"Walk_OnPlayerKeyStateChange\" is not implemented
Pawn compiler 3.2.3664           Copyright (c) 1997-2006, ITB CompuPhase
 
1 Error.

 
Mi lehet a hibah?
« Utoljára szerkesztve: 2012. Április 18. - 15:41:53 írta GangBang »

Nem elérhető Rexii

  • 471
    • Profil megtekintése
Séta script
« Válasz #7 Dátum: 2012. Április 18. - 16:21:09 »
0 Show voters
loose indentation -ra mindig az a megoldás,hogy a mód elején kiteszed ezt:
 
#pragma tabsize 0

Nem elérhető Benceee

  • 4785
    • Profil megtekintése
Séta script
« Válasz #8 Dátum: 2012. Április 18. - 20:31:59 »
0 Show voters
Idézetet írta: Rexii date=1334758869\" data-ipsquote-contentapp=\"forums\" data-ipsquote-contenttype=\"forums\" data-ipsquote-contentid=\"20348\" data-ipsquote-contentclass=\"forums_Topic
loose indentation -ra mindig az a megoldás,hogy a mód elején kiteszed ezt:
 
#pragma tabsize 0

 

Vagy használod a TAB gombot.

Nem elérhető Dead

  • 2045
    • Profil megtekintése
Séta script
« Válasz #9 Dátum: 2012. Április 19. - 15:56:30 »
0 Show voters
Idézetet írta: GangBang date=1334756395\" data-ipsquote-contentapp=\"forums\" data-ipsquote-contenttype=\"forums\" data-ipsquote-contentid=\"20348\" data-ipsquote-contentclass=\"forums_Topic


Talán ez?
 
   if(strcmp(cmd, \"/walk\", true) == 0)
{
tmp = strtok(cmdtext,idx);
if (!strlen(tmp))
   return SendClientMessage(playerid,COLOR_LIGHTRED,\"Használat: /walk [id(0-13)]\");
new stilus = strval(tmp);
SetPlayerWalkingStyle(playerid, stilus);
SendFormatMessage(playerid, COLOR_WHITE, \"Sétálási stílusod: %d\", strval(tmp));
return 1;
}

 

Énis kiszedtem már ezt a SeeRPG módjából igen így is jó de mikor elakarom menteni akkor crashel a pawno vagy hogy mondjam

Dupla hozzászólás automatikusan összefûzve. ( 2012. Április 18. - 15:41:53 )


http://pastebin.com/XFy0R97c
 
[/quote]
 
C:\\Documents and Settings\\Beni\\Asztal\\SAMP\\filterscripts\\seta.pwn(39) : warning 217: loose indentation
C:\\Documents and Settings\\Beni\\Asztal\\SAMP\\filterscripts\\seta.pwn(39) : error 004: function \"Walk_OnPlayerKeyStateChange\" is not implemented
Pawn compiler 3.2.3664           Copyright (c) 1997-2006, ITB CompuPhase
 
1 Error.

 
Mi lehet a hibah?
 
[/quote]
return 1;
}
vagy
}
mindenhol megvan?

 

SimplePortal 2.3.7 © 2008-2024, SimplePortal