Zaloguj się by uzyskać pełen dostęp. Nie masz jeszcze konta? Założ je już teraz w kilka sekund.

Wysłany: 2016-08-26, 13:31


Karollos







Wiek: 27
Na forum: 4129 dni
Posty: 282

Piwa: 89

Respekt: 60

Siema mog?by mi kto? powiedzie? jak naprawic?
Pawn
C:\Users\Karol\Desktop\Untitled.pwn(59) : error 017undefined symbol "IsValidVehicle"
C:\Users\Karol\Desktop\Untitled.pwn(220) : error 075input line too long (after substitutions)
C:\Users\Karol\Desktop\Untitled.pwn(221) : error 037invalid string (possibly non-terminated string)
C:\Users\Karol\Desktop\Untitled.pwn(221) : warning 215expression has no effect
C:\Users\Karol\Desktop\Untitled.pwn(221) : error 001expected token";"but found "."
C:\Users\Karol\Desktop\Untitled.pwn(221) : error 029invalid expressionassumed zero
C:\Users\Karol\Desktop\Untitled.pwn(221) : fatal error 107too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664              Copyright (c1997-2006ITB CompuPhase


6 Errors.

Pawn
{
    if(dialogid == TELEPORTY)
    {
        if(response == 1)
        {
            if(listitem == 0)
            {
                ShowPlayerDialog(playeridLOKALIZACJEDIALOG_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(playeridROZRYWKADIALOG_STYLE_LIST," Rozrywka""info[]""button1[]""button2[])"
            }
            if(listitem == 2)
            {
                ShowPlayerDialog(playeridOSIEDLADIALOG_STYLE_LIST"Osiedla""info[]""button1[]""button2[])"
            }
        return 1;
        }

Linijka nr 59:
Pawn
public OnPlayerDisconnect(playeridreason)
{
    if(IsValidVehicle(NRG[playerid])) DestroyVehicle(NRG[playerid]);
    return 1;
}
(Od cmd /nrg)

Podpis
:)
Postaw piwo autorowi tego posta
 

 
Wysłany: 2016-08-26, 15:14


Combacior







Wiek: 29
Na forum: 5795 dni
Posty: 1516

Piwa: 2161

Respekt: 1060
Respekt: 1060

Ostrzeżeń: 20%
1. http://wiki.sa-mp.com/wiki/IsValidVehicle
2. Ci?g znak?w w dialogu z teleportami jest za d?ugi, musisz u?y? funkcji strcat lub skr?ci? t? linijk?.

Postaw piwo autorowi tego posta
 

 
Wysłany: 2016-08-26, 15:58


Karollos







Wiek: 27
Na forum: 4129 dni
Posty: 282

Piwa: 89

Respekt: 60

"Combacior" napisał/a:

1. http://wiki.sa-mp.com/wiki/IsValidVehicle
2. Ci?g znak?w w dialogu z teleportami jest za d?ugi, musisz u?y? funkcji strcat lub skr?ci? t? linijk?.

W 1 sobie poradzilem ale w 2 nie wiem do konca jak uzyc ;/

Podpis
:)
Postaw piwo autorowi tego posta
 

 
Wysłany: 2016-08-26, 16:25


Combacior







Wiek: 29
Na forum: 5795 dni
Posty: 1516

Piwa: 2161

Respekt: 1060
Respekt: 1060

Ostrzeżeń: 20%
Postaw piwo autorowi tego posta
 

 
Wysłany: 2016-08-26, 16:30


Karollos







Wiek: 27
Na forum: 4129 dni
Posty: 282

Piwa: 89

Respekt: 60

"Combacior" napisał/a:

http://wiki.sa-mp.com/wiki/Strcat

wlasnie wchodzilem na ta strone ale nw jak uzyc ;c

Podpis
:)
Postaw piwo autorowi tego posta
 

 
Wysłany: 2016-08-26, 18:48


ToxiC.







Wiek: 28
Na forum: 5246 dni
Posty: 3792

Piwa: 8590

Respekt: 1143,8
Respekt: 1143,8

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.

Postaw piwo autorowi tego posta
 

 
Wysłany: 2016-08-26, 19:02


Karollos







Wiek: 27
Na forum: 4129 dni
Posty: 282

Piwa: 89

Respekt: 60

"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 :P
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 035argument type mismatch (argument 1)
C:\Users\Karol\Desktop\GS\gamemodes\Prs.pwn(222) : error 035argument type mismatch (argument 1)
C:\Users\Karol\Desktop\GS\gamemodes\Prs.pwn(223) : error 035argument type mismatch (argument 1)
C:\Users\Karol\Desktop\GS\gamemodes\Prs.pwn(224) : error 035argument type mismatch (argument 1)
C:\Users\Karol\Desktop\GS\gamemodes\Prs.pwn(225) : error 035argument type mismatch (argument 1)
C:\Users\Karol\Desktop\GS\gamemodes\Prs.pwn(225) : error 075input line too long (after substitutions)
C:\Users\Karol\Desktop\GS\gamemodes\Prs.pwn(227) : warning 217loose indentation
C:\Users\Karol\Desktop\GS\gamemodes\Prs.pwn(227) : error 017undefined symbol "czko"
C:\Users\Karol\Desktop\GS\gamemodes\Prs.pwn(227) : error 029invalid expressionassumed zero
C:\Users\Karol\Desktop\GS\gamemodes\Prs.pwn(227) : error 017undefined symbol "n37"
C:\Users\Karol\Desktop\GS\gamemodes\Prs.pwn(227) : fatal error 107too 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(playeridROZRYWKADIALOG_STYLE_LIST," Rozrywka""info[]""button1[]""button2[])"
            }
            if(listitem == 2)
            {
                ShowPlayerDialog(playeridOSIEDLADIALOG_STYLE_LIST"Osiedla""info[]""button1[]""button2[])"
            }
        return 1;


Kolejny edit :P

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 029invalid expressionassumed zero
C:\Users\Karol\Desktop\GS\gamemodes\Prs.pwn(-- 22) : error 008must be a constant expressionassumed zero
C:\Users\Karol\Desktop\GS\gamemodes\Prs.pwn(61) : error 017undefined symbol "IsValidVehicle"
C:\Users\Karol\Desktop\GS\gamemodes\Prs.pwn(61) : warning 215expression has no effect
C:\Users\Karol\Desktop\GS\gamemodes\Prs.pwn(61) : error 001expected token";"but found "]"
C:\Users\Karol\Desktop\GS\gamemodes\Prs.pwn(61) : error 029invalid expressionassumed zero
C:\Users\Karol\Desktop\GS\gamemodes\Prs.pwn(61) : fatal error 107too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664              Copyright (c1997-2006ITB 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(playeridreason)
{
    if(IsValidVehicle(NRG[playerid])) DestroyVehicle(NRG[playerid]);
    return 1;
}

To errory z /nrg

Podpis
:)
Postaw piwo autorowi tego posta
 

 
Wysłany: 2016-08-26, 21:21


Combacior







Wiek: 29
Na forum: 5795 dni
Posty: 1516

Piwa: 2161

Respekt: 1060
Respekt: 1060

Ostrzeżeń: 20%
"Karollos" napisał/a:

W 1 sobie poradzilem


"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);


Postaw piwo autorowi tego posta
 

 
Wysłany: 2016-08-28, 22:01


macks







Wiek: 18
Na forum: 3577 dni
Posty: 1002

Piwa: 2856

Respekt: 463
Respekt: 463

Ostrzeżeń: 20%
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(playeridLOKALIZACJEDIALOG_STYLE_LISTTELEPORTY"OK""Cofnij"


pisane na szybko, wiec moze byc zle, ew. pisz

Postaw piwo autorowi tego posta
 

 
Tagi: jak :: naprawić?
Anonymous





Na forum: 245 dni
Posty: 1



Anonymous Koniecznie zajrzyj na:






Skocz do:  
Wyświetl posty z ostatnich:   
GTAONLINE.PL » JĘZYKI PROGRAMOWANIA » PAWN Ten temat jest zablokowany bez możliwości zmiany postów lub pisania odpowiedzi

Nie możesz pisać nowych tematów
Nie możesz odpowiadać w tematach
Nie możesz zmieniać swoich postów
Nie możesz usuwać swoich postów
Nie możesz głosować w ankietach
Dodaj temat do Ulubionych
Wersja do druku