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

Wysłany: 2011-08-27, 23:08


MG303







Wiek: 30
Na forum: 6419 dni
Posty: 654

Piwa: 2990

Respekt: 231,6
Respekt: 231,6Respekt: 231,6

Dominik354657, policz klamry :)

Postaw piwo autorowi tego posta
 

 
Wysłany: 2011-08-27, 23:12


Dominik354657







Wiek: 41
Na forum: 6229 dni
Posty: 19



Respekt: 50

open 98, close 99

dobra widze, ze nie potraficie pomoc

Postaw piwo autorowi tego posta
 

 
Wysłany: 2011-08-28, 12:44


MG303







Wiek: 30
Na forum: 6419 dni
Posty: 654

Piwa: 2990

Respekt: 231,6
Respekt: 231,6Respekt: 231,6

Dominik354657, no skoro nie masz jednej otwartej klamry to co ja mam pom?c? Posprawdzaj warunki itp, zobacz w kt?rym miejscu nie masz tej otwartej...

Postaw piwo autorowi tego posta
 

 
Wysłany: 2011-08-28, 13:40


Dominik354657







Wiek: 41
Na forum: 6229 dni
Posty: 19



Respekt: 50

Dobra, wiem oczekuje niemo?liwego ;D

Pogrzeba?em i mam to:

Kod:

C:\Documents and Settings\samp server 0.3c\gamemodes\grandlarc.pwn(353) : error 029: invalid expression, assumed zero
C:\Documents and Settings\samp server 0.3c\gamemodes\grandlarc.pwn(353) : error 029: invalid expression, assumed zero
C:\Documents and Settings\samp server 0.3c\gamemodes\grandlarc.pwn(353) : error 029: invalid expression, assumed zero
No i 2 bledy w 1 linii.


W:

Kod:

public OnGameModeInit()
{
SetGameModeText("Testing Map");
ShowPlayerMarkers(PLAYER_MARKERS_MODE_GLOBAL);
ShowNameTags(1);
SetNameTagDrawDistance(40.0);
EnableStuntBonusForAll(0);
DisableInteriorEnterExits();
SetWeather(2);
SetWorldTime(11);

//--------------------------------------------------------
new playerid;
(353)public OnPlayerCommandText(playerid, cmdtext[]);
{
if (strcmp("/solo", cmdtext, true, 10) == 0)
{
SetPlayerPos(playerid, 1882.3140, -1402.0904, 13.5703);
SendClientMessage(playerid,0x33AA33AA,"WITAJ NA SOLO");
return 1;
}
return 0;
}
//--------------------------------------------------------

//ManualVehicleEngineAndLights();
//LimitGlobalChatRadius(300.0);


Postaw piwo autorowi tego posta
 

 
Wysłany: 2011-08-28, 16:40


MG303







Wiek: 30
Na forum: 6419 dni
Posty: 654

Piwa: 2990

Respekt: 231,6
Respekt: 231,6Respekt: 231,6

?le.

Kod:

public OnGameModeInit() //ZACZYNASZ ONGAMEMODEINIT
{
SetGameModeText("Testing Map");
ShowPlayerMarkers(PLAYER_MARKERS_MODE_GLOBAL);
ShowNameTags(1);
SetNameTagDrawDistance(40.0);
EnableStuntBonusForAll(0);
DisableInteriorEnterExits();
SetWeather(2);
SetWorldTime(11);

//ManualVehicleEngineAndLights();
//LimitGlobalChatRadius(300.0);
//--------------------------------------------------------
return 1;
} //KONCZYSZ ONGAMEMODEINIT

public OnPlayerCommandText(playerid, cmdtext[]) //ZACZYNASZ ONPLAYERCOMMANDTEXT
{
if (strcmp("/solo", cmdtext, true, 10) == 0)
{
SetPlayerPos(playerid, 1882.3140, -1402.0904, 13.5703);
SendClientMessage(playerid,0x33AA33AA,"WITAJ NA SOLO");
return 1;
}
return 0;
} //KONCZYSZ ONPLAYERCOMMANDTEXT
//--------------------------------------------------------


Postaw piwo autorowi tego posta
 

 
Wysłany: 2011-08-28, 20:20


Dominik354657







Wiek: 41
Na forum: 6229 dni
Posty: 19



Respekt: 50

Zamkni?cie OnGameModeInit mam gdzie indziej, ale mniejsza z tym. Po zamkni?ciu da?em teleport i takie errory (co? z klamrami i xStreamer mi sie wpierniczy?)

Kod:

C:\Documents and Settings\samp server 0.3c\gamemodes\grandlarc.pwn(407) : error 001: expected token: "-identifier-", but found "("
C:\Documents and Settings\samp server 0.3c\gamemodes\grandlarc.pwn(409) : error 010: invalid function or declaration
C:\Documents and Settings\samp server 0.3c\gamemodes\grandlarc.pwn(411) : error 021: symbol already defined: "xStreamer_SetPlayerPos"
C:\Documents and Settings\samp server 0.3c\gamemodes\grandlarc.pwn(413) : error 010: invalid function or declaration
C:\Documents and Settings\samp server 0.3c\gamemodes\grandlarc.pwn(415) : error 010: invalid function or declaration


Postaw piwo autorowi tego posta
 

 
Wysłany: 2011-08-28, 20:48


MG303







Wiek: 30
Na forum: 6419 dni
Posty: 654

Piwa: 2990

Respekt: 231,6
Respekt: 231,6Respekt: 231,6

Dominik354657, jaki teleport? Zrobi?e? tak jak ci kaza?em?

Postaw piwo autorowi tego posta
 

 
Wysłany: 2011-08-28, 21:06


Dominik354657







Wiek: 41
Na forum: 6229 dni
Posty: 19



Respekt: 50

Tak

Postaw piwo autorowi tego posta
 

 
Wysłany: 2011-08-28, 21:57


MG303







Wiek: 30
Na forum: 6419 dni
Posty: 654

Piwa: 2990

Respekt: 231,6
Respekt: 231,6Respekt: 231,6

Dominik354657, czy te errory si? pojawiaj? przez ten kod, czy co? dodawa?e?/zmienia?e?? Du?a jest ta mapa? Je?li nie, to daj kod na pastebin.pl

Postaw piwo autorowi tego posta
 

 
Wysłany: 2011-08-28, 22:45


Dominik354657







Wiek: 41
Na forum: 6229 dni
Posty: 19



Respekt: 50

Dobra, nie ma co, je?li m?g?by? to napisa?by? mi szablon na teleport z pojazdem i bez :) Dam piwko :piwo: , I wklei sie do skryptu.

Postaw piwo autorowi tego posta
 

 
Wysłany: 2011-08-28, 23:08


MG303







Wiek: 30
Na forum: 6419 dni
Posty: 654

Piwa: 2990

Respekt: 231,6
Respekt: 231,6Respekt: 231,6

Dominik354657, Poszukaj w dziale poradniki ;) tam masz poradnik: jak zrobi? teleport z pojazdem i bez

Postaw piwo autorowi tego posta
 

 
Wysłany: 2011-08-31, 15:57


kubicus1







Wiek: 39
Na forum: 5396 dni
Posty: 2



Respekt: 50

Kod:

#include <a_samp>
#include <utils>
#define PlayerInfo
#pragma tabsize 0
#pragma unused IsNumeric
#pragma unused ReturnUser
new ng;
public OnFilterScriptInit(){
print("----------------------------------------");
print(" Brama NG");
print("----------------------------------------");
return 1;}

public OnGameModeInit()
{
ng = CreateObject(980,2342.50000000,2723.50000000,11.50000000,0.00000000,0.00000000,0.00000000);//brama zamkni?ta
return 0;}
public OnPlayerCommandText(playerid , cmdtext[]){

if(strcmp(cmdtext, "/ngo", true) == 0) {
if (PlayerInfo[playerid];[pMember] == [4])
{
GameTextForPlayer(playerid, "~n~Otwieranie", 2500, 5);
MoveObject(ng, 2342.50000000, 2723.50000000, 11.50000000, 4); //pozycja otwartej bramy
}
else
{
SendClientMessage(playerid, COLOR_RED," **Tylko dla NG*");
}
return 1;
}

if(strcmp(cmdtext, "/ngz", true) == 0) {
if (PlayerInfo[playerid][pMember] == [4])
{
GameTextForPlayer(playerid, "~n~Zamykanie Bramy", 2500, 5);
MoveObject(ng, 2327.1999511719, 2723.5, 11.5, 4); //pozycja zamknietej bramy
}
else
{
SendClientMessage(playerid, COLOR_RED," **Tylko dla NG**");
}
return 1;
}
}


+ errory:
(21) : error 029: invalid expression, assumed zero
(21) : warning 215: expression has no effect
(21) : error 001: expected token: ";", but found "]"
(21) : error 029: invalid expression, assumed zero
(21) : fatal error 107: too many error messages on one line

Postaw piwo autorowi tego posta
 

 
Wysłany: 2011-08-31, 18:36


matrixsio







Wiek: 27
Na forum: 5634 dni
Posty: 1
Nick w MP: Tom_White



Respekt: 50

Witam!
Mam problem z komplikatorem (nie wiem czy to jest dobry temat)a chodzi o to ?e gdy Pawno mam spakowane w formacie .rar to wszystko ?miga a gdy wypakuje folder to od razu podczas komplikowania wyskakuje mi b??d "Unable to execute compiler"

Postaw piwo autorowi tego posta
 

 
Wysłany: 2011-08-31, 19:03


es2







Wiek: 29
Na forum: 5789 dni
Posty: 75
Nick w MP: eider

Piwa: 3406

Respekt: 76

Ostrzeżeń: 100%
matrixsio, Czy pliki rozmieszczone s? w ten spos?b:


Je?eli nie, pobierz paczk? serwera pod Windows z www.sa-mp.com , oraz wypakuj folder "pawno"

kubicus1, Prosz? bardzo, ma?a podpowied?: Uk?adaj kod +OnGameModeInit nie wykona si? w filterscripcie :)

Kod:


#include <a_samp>
#include <utils>

#define PlayerInfo

#pragma tabsize 0
#pragma unused IsNumeric
#pragma unused ReturnUser

new ng;

public OnFilterScriptInit()
{
print("----------------------------------------");
print(" Brama NG");
print("----------------------------------------");
ng = CreateObject(980,2342.50000000,2723.50000000,11.50000000,0.00000000,0.00000000,0.00000000);//brama zamkni?ta
return 1;
}

public OnPlayerCommandText(playerid , cmdtext[])
{
if(strcmp(cmdtext, "/ngo", true) == 0)
{
if (PlayerInfo[playerid][pMember] == 4)
{
GameTextForPlayer(playerid, "~n~Otwieranie", 2500, 5);
MoveObject(ng, 2342.50000000, 2723.50000000, 11.50000000, 4); //pozycja otwartej bramy
}
else
{
SendClientMessage(playerid, COLOR_RED," **Tylko dla NG*");
}
return 1;
}
if(strcmp(cmdtext, "/ngz", true) == 0)
{
if (PlayerInfo[playerid][pMember] == [4])
{
GameTextForPlayer(playerid, "~n~Zamykanie Bramy", 2500, 5);
MoveObject(ng, 2327.1999511719, 2723.5, 11.5, 4); //pozycja zamknietej bramy
}
else
{
SendClientMessage(playerid, COLOR_RED," **Tylko dla NG**");
}
return 1;
}
return 1;
}


Postaw piwo autorowi tego posta
 

 
Wysłany: 2011-09-01, 08:04


kubicus1







Wiek: 39
Na forum: 5396 dni
Posty: 2



Respekt: 50

(33) : error 010: invalid function or declaration
(35) : error 010: invalid function or declaration
(40) : error 010: invalid function or declaration
(44) : error 010: invalid function or declaration
(46) : error 010: invalid function or declaration

Linijki:
if(strcmp(cmdtext, "/ngz", true) == 0)
if ("PlayerInfo[playerid][pMember] == [4])
else
return 1;
return 0;


przepraszam ?e zadaje takie pytania :oops:

Postaw piwo autorowi tego posta
 

 
Tagi: błędy :: przy :: kompilacji :: rozwiązanie
Anonymous





Na forum: 245 dni
Posty: 1



Anonymous Koniecznie zajrzyj na:






Skocz do:  
Wyświetl posty z ostatnich:   
GTAONLINE.PL » JĘZYKI PROGRAMOWANIA » PAWN » BŁĘDY PRZY KOMPILACJI - ROZWIĄZANIE Odpowiedz do tematu

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