Wysłany: 2016-08-26, 13:31
Karollos
Wiek: 27 Na forum: 4130 dni Posty: 282
Piwa : 89
Siema mog?by mi kto? powiedzie? jak naprawic?
Pawn C : \Users\Karol\Desktop\Untitled . pwn ( 59 ) : error 017 : undefined symbol "IsValidVehicle"
C : \Users\Karol\Desktop\Untitled . pwn ( 220 ) : error 075 : input line too long ( after substitutions )
C : \Users\Karol\Desktop\Untitled . pwn ( 221 ) : error 037 : invalid string ( possibly non - terminated string )
C : \Users\Karol\Desktop\Untitled . pwn ( 221 ) : warning 215 : expression has no effect
C : \Users\Karol\Desktop\Untitled . pwn ( 221 ) : error 001 : expected token : ";" , but found "."
C : \Users\Karol\Desktop\Untitled . pwn ( 221 ) : error 029 : invalid expression , assumed zero
C : \Users\Karol\Desktop\Untitled . pwn ( 221 ) : fatal error 107 : too many error messages on one line
Compilation aborted . Pawn compiler 3.2.3664 Copyright ( c ) 1997 - 2006 , ITB CompuPhase
6 Errors .
Pawn {
if( dialogid == TELEPORTY )
{
if( response == 1 )
{
if( listitem == 0 )
{
ShowPlayerDialog ( playerid , LOKALIZACJE , DIALOG_STYLE_LIST , "Teleporty - Lokalizacje" , "1. /lv\n2. /pustynia\n3. /dh\n4. /sf\n5. /drift8\n6. /drift9\n7. /forteca\n8. /g1\n9. /g2\n10. /g3\n11. /g4\n12. /jaysdin\n13. /drift7\n14. /drift6\n15. /drift5\n16. /drift4\n17. /drift3\n18. /dd\n19. /db2\n20. /cpn\n21. /cjgarage\n22. /calligula\n23. /brothel2\n24. /brothel\n25. /bank\n26. /andromada\n27. /ammo\n28. /4smoki\n29. /kosciol\n30. /kss\n31. /lot\n32. /lot2\n33. /ls\n34. /lslot\n35. /lvlot\n36. /miasteczko\n37. /molo\n38. /offroad\n39. /ognisko\n40. /osiedle1\n41. /osiedle2\n42. /osiedle3\n43. /osiedle4\n44. /osiedle5\n45. /pgr\n46. /plaza\n47. /plazasf\n48. /rcshop\n49. /resta\n50. /salon\n51. /sflot\n52. /skate2\n53. /tunesf\n54. /tunesf2\n55. /tunelv\n56. /tunels\n57. /tunels2\n58. /tama\n59. /osiedle7\n60. /osiedle6\n61. /lc" , "OK" , "Cofnij" )
}
if( listitem == 1 )
{
ShowPlayerDialog ( playerid , ROZRYWKA , DIALOG_STYLE_LIST , " Rozrywka" , "info[]" , "button1[]" , "button2[])"
}
if( listitem == 2 )
{
ShowPlayerDialog ( playerid , OSIEDLA , DIALOG_STYLE_LIST , "Osiedla" , "info[]" , "button1[]" , "button2[])"
}
return 1 ;
}
Linijka nr 59:
Pawn public OnPlayerDisconnect ( playerid , reason )
{
if( IsValidVehicle ( NRG [ playerid ])) DestroyVehicle ( NRG [ playerid ]);
return 1 ;
} (Od cmd /nrg)
Wysłany: 2016-08-26, 15:14
Combacior
Wiek: 29 Na forum: 5795 dni Posty: 1516
Piwa : 2161
Wysłany: 2016-08-26, 15:58
Karollos
Wiek: 27 Na forum: 4130 dni Posty: 282
Piwa : 89
"Combacior" napisał/a :
W 1 sobie poradzilem ale w 2 nie wiem do konca jak uzyc ;/
Wysłany: 2016-08-26, 16:25
Combacior
Wiek: 29 Na forum: 5795 dni Posty: 1516
Piwa : 2161
Wysłany: 2016-08-26, 16:30
Karollos
Wiek: 27 Na forum: 4130 dni Posty: 282
Piwa : 89
"Combacior" napisał/a :http://wiki.sa-mp.com/wiki/Strcat
wlasnie wchodzilem na ta strone ale nw jak uzyc ;c
Wysłany: 2016-08-26, 18:48
ToxiC.
Wiek: 28 Na forum: 5246 dni Posty: 3792
Piwa : 8590
Masz tam przyk?ad. Jak Ci ma?o to wpisujesz strcat example samp i wyskakuje Ci pare link?w, np. http://gtao.pl.com/showthread.php?t=338873
Tam masz jak u?y? tego, a zmienn? w tym przypadku ci?g znak?w podpinasz w tre?? dialogu.
Wysłany: 2016-08-26, 19:02
Karollos
Wiek: 27 Na forum: 4130 dni Posty: 282
Piwa : 89
"ToxiC." napisał/a :Masz tam przyk?ad. Jak Ci ma?o to wpisujesz strcat example samp i wyskakuje Ci pare link?w, np. http://gtao.pl.com/showthread.php?t=338873
Tam masz jak u?y? tego, a zmienn? w tym przypadku ci?g znak?w podpinasz w tre?? dialogu.
aha dobra teraz wiem
Myslalem, ze tak sie uzywa w innych stylach ale juz wiem.
Dobra dzi?ki mysle ze sobie poradze
EDIT
Jednak nie poradzilem sobie
Pawn C : \Users\Karol\Desktop\GS\gamemodes\Prs . pwn ( 221 ) : error 035 : argument type mismatch ( argument 1 )
C : \Users\Karol\Desktop\GS\gamemodes\Prs . pwn ( 222 ) : error 035 : argument type mismatch ( argument 1 )
C : \Users\Karol\Desktop\GS\gamemodes\Prs . pwn ( 223 ) : error 035 : argument type mismatch ( argument 1 )
C : \Users\Karol\Desktop\GS\gamemodes\Prs . pwn ( 224 ) : error 035 : argument type mismatch ( argument 1 )
C : \Users\Karol\Desktop\GS\gamemodes\Prs . pwn ( 225 ) : error 035 : argument type mismatch ( argument 1 )
C : \Users\Karol\Desktop\GS\gamemodes\Prs . pwn ( 225 ) : error 075 : input line too long ( after substitutions )
C : \Users\Karol\Desktop\GS\gamemodes\Prs . pwn ( 227 ) : warning 217 : loose indentation
C : \Users\Karol\Desktop\GS\gamemodes\Prs . pwn ( 227 ) : error 017 : undefined symbol "czko"
C : \Users\Karol\Desktop\GS\gamemodes\Prs . pwn ( 227 ) : error 029 : invalid expression , assumed zero
C : \Users\Karol\Desktop\GS\gamemodes\Prs . pwn ( 227 ) : error 017 : undefined symbol "n37"
C : \Users\Karol\Desktop\GS\gamemodes\Prs . pwn ( 227 ) : fatal error 107 : too many error messages on one line
Pawn if( dialogid == TELEPORTY )
{
if( response == 1 )
{
if( listitem == 0 )
{
strcat ( TELEPORTY , "1. /lv\r\n" );
strcat ( TELEPORTY , "2. /pustynia\r\n" );
strcat ( TELEPORTY , "3. /dh\r\n" );
strcat ( TELEPORTY , "4. /sf\r\n" );
strcat ( TELEPORTY , "5. /drift8\r\n" );
//ShowPlayerDialog(playerid, LOKALIZACJE, DIALOG_STYLE_LIST, "Teleporty - Lokalizacje", "1. /lv\n2. /pustynia\n3. /dh\n4. /sf\n5. /drift8\n6. /drift9\n7. /forteca\n8. /g1\n9. /g2\n10. /g3\n11. /g4\n12. /jaysdin\n13. /drift7\n14. /drift6\n15. /drift5\n16. /drift4\n17. /drift3\n18. /dd\n19. /db2\n20. /cpn\n21. /cjgarage\n22. /calligula\n23. /brothel2\n24. /brothel\n25. /bank\n26. /andromada\n27. /ammo\n28. /4smoki\n29. /kosciol\n30. /kss\n31. /lot\n32. /lot2\n33. /ls\n34. /lslot\n35. /lvlot\n36. /miasteczko\n37. /molo\n38. /offroad\n39. /ognisko\n40. /osiedle1\n41. /osiedle2\n42. /osiedle3\n43. /osiedle4\n44. /osiedle5\n45. /pgr\n46. /plaza\n47. /plazasf\n48. /rcshop\n49. /resta\n50. /salon\n51. /sflot\n52. /skate2\n53. /tunesf\n54. /tunesf2\n55. /tunelv\n56. /tunels\n57. /tunels2\n58. /tama\n59. /osiedle7\n60. /osiedle6\n61. /lc", "OK", "Cofnij")
}
if( listitem == 1 )
{
ShowPlayerDialog ( playerid , ROZRYWKA , DIALOG_STYLE_LIST , " Rozrywka" , "info[]" , "button1[]" , "button2[])"
}
if( listitem == 2 )
{
ShowPlayerDialog ( playerid , OSIEDLA , DIALOG_STYLE_LIST , "Osiedla" , "info[]" , "button1[]" , "button2[])"
}
return 1 ;
Kolejny edit
Dodalem na gorze #pragma tabsize i mam mniej errorow wydaje mi sie, ze z gui juz nie ma porblemow ale sa inne. xD
Pawn C : \Users\Karol\Desktop\GS\gamemodes\Prs . pwn ( 9 ) : error 029 : invalid expression , assumed zero
C : \Users\Karol\Desktop\GS\gamemodes\Prs . pwn ( 9 -- 22 ) : error 008 : must be a constant expression ; assumed zero
C : \Users\Karol\Desktop\GS\gamemodes\Prs . pwn ( 61 ) : error 017 : undefined symbol "IsValidVehicle"
C : \Users\Karol\Desktop\GS\gamemodes\Prs . pwn ( 61 ) : warning 215 : expression has no effect
C : \Users\Karol\Desktop\GS\gamemodes\Prs . pwn ( 61 ) : error 001 : expected token : ";" , but found "]"
C : \Users\Karol\Desktop\GS\gamemodes\Prs . pwn ( 61 ) : error 029 : invalid expression , assumed zero
C : \Users\Karol\Desktop\GS\gamemodes\Prs . pwn ( 61 ) : fatal error 107 : too many error messages on one line
Compilation aborted . Pawn compiler 3.2.3664 Copyright ( c ) 1997 - 2006 , ITB CompuPhase
6 Errors .
linijki od 9 do 22:
Pawn #pragma tabsize
//Kolory
//
#define PRESSED(%0) \
((( newkeys & (% 0 )) == (% 0 )) && (( oldkeys & (% 0 )) != (% 0 )))
//CMD:TELEPORTY/CMD:TELES
#define TELEPORTY 1
#define LOKALIZACJE 2
#define ROZRYWKA 3
#define OSIEDLA 4
new NRG [ MAX_PLAYERS ];
Pawn public OnPlayerDisconnect ( playerid , reason )
{
if( IsValidVehicle ( NRG [ playerid ])) DestroyVehicle ( NRG [ playerid ]);
return 1 ;
}
To errory z /nrg
Wysłany: 2016-08-26, 21:21
Combacior
Wiek: 29 Na forum: 5795 dni Posty: 1516
Piwa : 2161
"Karollos" napisał/a :
"Karollos" napisał/a :C:4Users4Karol4Desktop4GS4gamemodes4Prs.pwn(61)?:?error?017:?undefined?symbol?"IsValidVehicle"
We? st?d wyjd? zanim ci? zwyzywam od najgorszych, bo naprawd? szkoda s??w. Przecie? poda?em ju? link do wiki z funkcj? natywn? IsValidVehicle, ile razy jeszcze mam go poda?? Jest tam wyra?ny przyk?ad jak tego u?y?. Najpierw t? funkcj? trzeba sobie samemu doda?, bo w sampowskich includach nie ma jej zawartej.
Kod: new s[10000 + 1];
strcat(s, "/lv\n");
strcat(s, "/ls\n");
print(s);
Wysłany: 2016-08-28, 22:01
macks
Wiek: 18 Na forum: 3578 dni Posty: 1002
Piwa : 2856
Tak powinien wygl?da? strcat:
Pawn
new TELEPORTY [ 128 ];
strcat ( TELEPORTY , "1. /lv\r\n" );
strcat ( TELEPORTY , "2. /pustynia\r\n" );
strcat ( TELEPORTY , "3. /dh\r\n" );
strcat ( TELEPORTY , "4. /sf\r\n" );
strcat ( TELEPORTY , "5. /drift8\r\n" );
ShowPlayerDialog ( playerid , LOKALIZACJE , DIALOG_STYLE_LIST , TELEPORTY , "OK" , "Cofnij"
pisane na szybko, wiec moze byc zle, ew. pisz
Tagi: jak :: naprawić?
Anonymous
Na forum: 245 dni
Posty: 1
Anonymous Koniecznie zajrzyj na: