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

Wysłany: 2008-07-30, 18:56


pauloso







Wiek: 35
Na forum: 6825 dni
Posty: 6

Piwa: 165

Respekt: 50

Cytat:

(1718) : error 029: invalid expression, assumed zero
(1718) : warning 215: expression has no effect
(1718) : error 001: expected token: ";", but found "if"
(1718) : error 004: function "PlayerToPoint" is not implemented
(1718) : fatal error 107: too many error messages on one line


Powie kto? o co chodzi?, Z G?ry Dzi?kuje

a to ta linijka

Cytat:

else if (PlayerToPoint(25.0,playerid,207.5627,-103.7291,1005.2578) || PlayerToPoint(25.0,playerid,203.9068,-41.0728,1001.8047))


Postaw piwo autorowi tego posta
 

 
Wysłany: 2008-07-31, 12:03


Diler

GtaO RLZ :)






Wiek: 30
Na forum: 6718 dni
Posty: 199

Piwa: 2579

Respekt: 49,8

Ostrzeżeń: 100%
na ko?cu linijki przed nie masz ;

Postaw piwo autorowi tego posta
 

 
Wysłany: 2008-07-31, 16:12


piotrkurp







Wiek: 30
Na forum: 6532 dni
Posty: 2



Respekt: 50

Pomu?cie mi mam taki b??d
C:\DOCUME~1\WINDOW~1\MOJEDO~1\stunt.pwn(238) : error 036: empty statement
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


1 Error.
Plis ;(

Postaw piwo autorowi tego posta
 

 
Wysłany: 2008-07-31, 16:25


Diler

GtaO RLZ :)






Wiek: 30
Na forum: 6718 dni
Posty: 199

Piwa: 2579

Respekt: 49,8

Ostrzeżeń: 100%
Moze tak linijje podaj :x
Wed?ug mnie czego? napchales ktore jest nie potrzebne

Postaw piwo autorowi tego posta
 

 
Wysłany: 2008-07-31, 16:37


piotrkurp







Wiek: 30
Na forum: 6532 dni
Posty: 2



Respekt: 50

[code]#include <a_samp>

public OnFilterScriptInit()
{
print("\n----------------------------------");
print("Filterscript stunt by damian sucessfully loaded");
print("----------------------------------\n");

CreateObject(1245, 1854.1165, -2513.1133, 14.0345, 0, 0, 0);
CreateObject(1503, 1849.0211, -2469.6868, 12.9488, 0, 0, 33.75);
CreateObject(1632, 1751.2637, -2516.9875, 13.847, 0, 0, 0);
i tak dalej


g?ra jest napewno dobra

CreateObject(2745, 1891.5676, -2452.0525, 27.1868, 0, 0, 90);
CreateObject(2745, 1891.0186, -2452.0652, 27.1863, 0, 0, 90);
CreateObject(1655, 1575.8523, -2529.6899, 13.847, 0, 0, 270);
CreateObject(1655, 1600.4116, -2546.5955, 13.847, 0, 0, 348.75);
}

public OnPlayerCommandText(playerid, cmdtext[])
if (strcmp("/stuntpsz", cmdtext, true, 10) == 0) tutaj gdzie? co? jest ?le
;
SetPlayerPos(1919.8, -2288.51, 26)
}
P.S dopiero si? ucze

Postaw piwo autorowi tego posta
 

 
Wysłany: 2008-07-31, 18:15


Diler

GtaO RLZ :)






Wiek: 30
Na forum: 6718 dni
Posty: 199

Piwa: 2579

Respekt: 49,8

Ostrzeżeń: 100%
Kod:

public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/stuntpsz", cmdtext, true, 10) == 0)
{
SetPlayerPos(playerid,1919.8, -2288.51, 26.88);
return 1;
}
return 0;
}

Prosze ;)

Ostatnio zmieniony przez Diler 2008-08-01, 19:39, w całości zmieniany 1 raz  
Postaw piwo autorowi tego posta
 

 
Wysłany: 2008-08-01, 19:25


Toples

Get High






Wiek: 32
Na forum: 6747 dni
Posty: 23

Piwa: 888

Respekt: 50

Kod:

(12549) : error 029: invalid expression, assumed zero
(12549) : error 004: function "esta" is not implemented


Linijka 12546
Kod:

public esta()


Obok tej lini:
Kod:

}
return 0;
}

public esta()
{
for(new i=0; i<MAX_PLAYERS; i++)
{
if(IsPlayerInAnyVehicle(i) == 1 && przebity[i]==0)
{


Postaw piwo autorowi tego posta
 

 
Wysłany: 2008-08-01, 19:40


Diler

GtaO RLZ :)






Wiek: 30
Na forum: 6718 dni
Posty: 199

Piwa: 2579

Respekt: 49,8

Ostrzeżeń: 100%
w nawiasach
Kod:

public esta()
powinno cos byc (a dokladnie to co dales w forawrd esta....

Postaw piwo autorowi tego posta
 

 
Wysłany: 2008-08-01, 19:53


Toples

Get High






Wiek: 32
Na forum: 6747 dni
Posty: 23

Piwa: 888

Respekt: 50

W forawdzie esta jest to samo co w publicu.
Tu jest timer:
Kod:

SetTimer("esta", 50, 1);


Postaw piwo autorowi tego posta
 

 
Wysłany: 2008-08-01, 19:53


Diler

GtaO RLZ :)






Wiek: 30
Na forum: 6718 dni
Posty: 199

Piwa: 2579

Respekt: 49,8

Ostrzeżeń: 100%
A po co pokazujesz timer ?? ;p
Tak powinien wygladac forward
Kod:

forward esta();


Postaw piwo autorowi tego posta
 

 
Wysłany: 2008-08-01, 20:01


Toples

Get High






Wiek: 32
Na forum: 6747 dni
Posty: 23

Piwa: 888

Respekt: 50

"Cop" napisał/a:

Tak powinien wygladac forward
Kod:

forward esta();


Tak w?asnie wygl?da...
A public jest bez ";". :|
Sory ale UP ?le powiedzia?em, my?la?em ?e sie domy?lisz.

Postaw piwo autorowi tego posta
 

 
Wysłany: 2008-08-01, 20:05


Diler

GtaO RLZ :)






Wiek: 30
Na forum: 6718 dni
Posty: 199

Piwa: 2579

Respekt: 49,8

Ostrzeżeń: 100%
domyslilem sie ze cos ci sie poplatalo :roll: a public nie moze byc z ;
A tamten kod popraw na ten
Kod:

public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/stuntpsz", cmdtext, true, 10) == 0)
{
SetPlayerPos(playerid,1919.8, -2288.51, 26.88);
}
return 1;
}
return 0;
}


Postaw piwo autorowi tego posta
 

 
Wysłany: 2008-08-01, 20:10


Toples

Get High






Wiek: 32
Na forum: 6747 dni
Posty: 23

Piwa: 888

Respekt: 50

"Cop" napisał/a:

domyslilem sie ze cos ci sie poplatalo a public nie moze byc z ;


Znowu ?le mnie zrozumiale?. :x
Mam forward esta(); oraz public esta() bez ";" i s? dwa errore, kt?re opisa?em wy?ej.

Postaw piwo autorowi tego posta
 

 
Wysłany: 2008-08-01, 20:15


Diler

GtaO RLZ :)






Wiek: 30
Na forum: 6718 dni
Posty: 199

Piwa: 2579

Respekt: 49,8

Ostrzeżeń: 100%
Ja wiem o co Ci chodzi spokojnie nie musisz sie denerwowac :->
Podaj caly public esta

Postaw piwo autorowi tego posta
 

 
Wysłany: 2008-08-01, 20:18


Toples

Get High






Wiek: 32
Na forum: 6747 dni
Posty: 23

Piwa: 888

Respekt: 50

Oto ca?a komenda /wyjdz, w kt?rej jest "public esta"

Kod:

if(strcmp(cmd, "/wyjdz", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(przebity[playerid] == 1)
{
TogglePlayerControllable(playerid, 1);
TogglePlayerControllable(playerid, 1);
for(new j=0; j<MAX_PLAYERS; j++)
{
SetVehicleParamsForPlayer(GetPlayerVehicleID(playerid),j,0,0);
SetVehicleParamsForPlayer(GetPlayerVehicleID(playerid),j,0,0);
SetVehicleParamsForPlayer(GetPlayerVehicleID(playerid),j,0,0);
}
SetVehicleToRespawn(GetPlayerVehicleID(playerid));
SetVehicleToRespawn(GetPlayerVehicleID(playerid));
SetVehicleToRespawn(GetPlayerVehicleID(playerid));
RemovePlayerFromVehicle(playerid);
TogglePlayerControllable(playerid, 1);
RemovePlayerFromVehicle(playerid);
TogglePlayerControllable(playerid, 1);

przebity[playerid] = 0;
}
}
return 1;
}
return 0;
}

public esta()
{
for(new i=0; i<MAX_PLAYERS; i++)
{
if(IsPlayerInAnyVehicle(i) == 1 && przebity[i]==0)
{
if(kolczon==1)
{
new Float:X, Float:Y, Float:Z;
GetVehiclePos(GetPlayerVehicleID(i), X, Y, Z);
if(X >= minX && X <= maxX && Y >= minY && Y <= maxY && Z >= minZ && Z <= maxZ)
{
TogglePlayerControllable(i,0);
przebity[i]=1;
GameTextForPlayer(i,"~w~~n~~n~~n~~n~~n~~n~~n~~n~Przebite opony~n~Wpisz /wyjdz by wyjsc",5000,3);
czek2[i]=1;
for(new j=0; j<MAX_PLAYERS; j++)
{
SetVehicleParamsForPlayer(GetPlayerVehicleID(i),j,0,0);
}
}
if(X >= minX1 && X <= maxX1 && Y >= minY1 && Y <= maxY1 && Z >= minZ1 && Z <= maxZ1)
{
TogglePlayerControllable(i,0);
przebity[i]=1;
GameTextForPlayer(i,"~w~~n~~n~~n~~n~~n~~n~~n~~n~Przebite opony~n~Wpisz /wyjdz by wyjsc",5000,3);
czek2[i]=1;
for(new j=0; j<MAX_PLAYERS; j++)
{
SetVehicleParamsForPlayer(GetPlayerVehicleID(i),j,0,0);
}
}
if(X >= minX2 && X <= maxX2 && Y >= minY2 && Y <= maxY2 && Z >= minZ2 && Z <= maxZ2)
{
TogglePlayerControllable(i,0);
przebity[i]=1;
GameTextForPlayer(i,"~w~~n~~n~~n~~n~~n~~n~~n~~n~Przebite opony~n~Wpisz /wyjdz by wyjsc",5000,3);
czek2[i]=1;
for(new j=0; j<MAX_PLAYERS; j++)
{
SetVehicleParamsForPlayer(GetPlayerVehicleID(i),j,0,0);
}
}
}
}
return 1;
}


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