Wysłany: 2008-12-11, 15:51
Diler
GtaO RLZ :)
Wiek: 30 Na forum: 6804 dni Posty: 199
Piwa : 2579
Qunir38 , to jest warning mowi o tym ze nie uzyles tego symbolu nigdzie
Wysłany: 2008-12-11, 16:00
Qunir38
Qunir
Wiek: 34 Na forum: 6620 dni Posty: 18
Piwa : 220
No to co mam zrobi? aby go nie by?o bo przez niego nie mog? mapki skopilowa??
Wysłany: 2008-12-11, 16:14
Jimmy J
suy shatan!
Wiek: 32 Na forum: 6699 dni Posty: 265
Piwa : 3264
Qunir38 , Usu?
Kod:
albo co? podobnego to nie b?dzie warninga. warning nie przeszkadza w kompilacji
Wysłany: 2008-12-11, 16:18
Qunir38
Qunir
Wiek: 34 Na forum: 6620 dni Posty: 18
Piwa : 220
Dobra zrobimy inaczej poka?e ca?o?? kodu i zaznacz? na czerwono linie b??du
Cytat: if (strcmp(cmd, "/cd", true) == 0 && IsPlayerAdmin(playerid))
{
if (!IsPlayerAdmin(playerid))
{
SendClientMessage(playerid,CZERWONY,"Musisz byc adminem by uzyc tej komendy.");
return 1;
}
if(odliczanie==1)
{
SendClientMessage(playerid, 0xFF0000FF, "Poczekaj a? skonczy sie to odliczanie");
return 1;
}
cd_seconds = strval(strtok(cmdtext,idx));
tmp = strtok(cmdtext,idx);
if(cd_seconds <= 0 || cd_seconds > 240 || !strlen(tmp))
{
SendClientMessage(playerid,ZIELONY,"U?yj: /cd [sekund:1-240] [zamrozenie:1-0]");
return 1;
}
cd_freeze = strval(tmp);
if(cd_freeze > 1)
{
SendClientMessage(playerid,ZIELONY,"U?yj: /cd [sekund:1-240] [zamrozenie:1-0]");
return 1;
}
if(cd_freeze == 1)
{
for(new i=0; i<MAX_PLAYERS; i++)
{
if (IsPlayerConnected(i))
{
TogglePlayerControllable(i,0);
}
}
}
new string[256];
cd = 1;
format(string, sizeof(string),"Odliczanie rozpocz?te : %d sekund, zamrozenie =%d",cd_seconds,cd_freeze);
format(string, sizeof(string),"Odliczanie rozpocz?te : %d sekund, zamrozenie =%d",cd_seconds,cd_freeze);
SendClientMessage(playerid,BIALY,string);
odliczanie=1;
cd_timer = SetTimer("admin_cd",1000,1);
return 1;
}
kubba11111 , usun??em t? linijke i wyst?pi?y takie b??dy:
Kod: C:\Documents and Settings\Marek\Pulpit\Pawno i Serwer GTASA\Serwer GTASA\gamemodes\SDC_Drift.pwn(942) : error 017: undefined symbol "cd"
C:\Documents and Settings\Marek\Pulpit\Pawno i Serwer GTASA\Serwer GTASA\gamemodes\SDC_Drift.pwn(942) : warning 215: expression has no effect
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Error.
Wysłany: 2008-12-11, 16:41
Jimmy J
suy shatan!
Wiek: 32 Na forum: 6699 dni Posty: 265
Piwa : 3264
to nie usuwaj
Kod:
tylko usu? to
Kod:
Wysłany: 2008-12-11, 16:53
Qunir38
Qunir
Wiek: 34 Na forum: 6620 dni Posty: 18
Piwa : 220
"kubba11111" napisał/a :to nie usuwaj
Kod:
tylko usu? to
Kod:
Po tym pokazyje mi b??d:
Kod: C:\Documents and Settings\Marek\Pulpit\Pawno i Serwer GTASA\Serwer GTASA\gamemodes\SDC_Drift.pwn(1956) : warning 203: symbol is never used: "cd"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Warning.
Ale w ten linijce (1956) ju? nic niema. Jest tylko pusty wierz [/b]
Wysłany: 2008-12-11, 17:15
Fire Dragon
c=(b/n)%10+48,n/=10;
Wiek: 32 Na forum: 7103 dni Posty: 63
Piwa : 1046
Wysłany: 2008-12-11, 17:19
Qunir38
Qunir
Wiek: 34 Na forum: 6620 dni Posty: 18
Piwa : 220
"Fire Dragon" napisał/a :Usu? to Kod: , a tam gdzie mia?e? Kod: daj Kod:
Dzi?ki Pomog?o
Wysłany: 2008-12-15, 18:37
BrendY
Stalker.
Wiek: 33 Na forum: 6490 dni Posty: 48
Piwa : 2482
Kod: H:\Documents and Settings\****\Pulpit\bbpl.pwn(788) : error 029: invalid expression, assumed zero
H:\Documents and Settings\****\Pulpit\bbpl.pwn(788) : warning 215: expression has no effect
H:\Documents and Settings\****\Pulpit\bbpl.pwn(788) : error 001: expected token: ";", but found ")"
H:\Documents and Settings\****\Pulpit\bbpl.pwn(788) : error 029: invalid expression, assumed zero
H:\Documents and Settings\****\Pulpit\bbpl.pwn(788) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
4 Errors.
Kod:
SendClientMessage(gangMembers[gangnum], COLOR_ORANGE, string);
Niewiem dokladnie jaki b??d pope?niam bo z tego co zrobi?em powinno byc ok .
Wysłany: 2008-12-15, 18:50
Jimmy J
suy shatan!
Wiek: 32 Na forum: 6699 dni Posty: 265
Piwa : 3264
spr?buj tak:
Kod: SendClientMessage(gangMembers[gangnum][j], COLOR_ORANGE, string);
j - litera z p?tli, je?li masz inn? to zamie?
Wysłany: 2008-12-20, 21:21
sebek95
<[P|A|W|N]>
Wiek: 37 Na forum: 6724 dni Posty: 18
Piwa : 8
Problem z komplikacj?:
Kod: C:\Documents and Settings\Sebebastian\Moje dokumenty\Freediving.pwn(10) : error 021: symbol already defined: "CreateVehicle"
C:\Documents and Settings\Sebebastian\Moje dokumenty\Freediving.pwn(14) : error 021: symbol already defined: "CreateVehicle"
C:\Documents and Settings\Sebebastian\Moje dokumenty\Freediving.pwn(19) : error 021: symbol already defined: "CreateObject"
C:\Documents and Settings\Sebebastian\Moje dokumenty\Freediving.pwn(20) : error 029: invalid expression, assumed zero
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
4 Errors.
A tu kod:
Kod:
#include <a_samp>
#include <a_objects>
// This is a comment
// uncomment the line below if you want to write a filterscript
//#define FILTERSCRIPT
#define FILTERSCRIPT
#pragma tabsize 0
//Pojazdy - ?odzie przy latarni
CreateVehicle(595, 166.5553, -1917.2205, 0.0187, 0, 0, 0);
(595, 166.52, -1922.187, 0.002, 0, 0, 0);
(595, 166.4858, -1927.1455, -0.0146, 0, 0, 0);
//Pojazdy - ?odzie przy bazie
CreateVehicle(472, 98.5059, -2689.0859, -0.1054, 0, 0, 0);
(472, 98.505, -2694.8291, -0.1007, 0, 0, 0);
(472, 98.4879, -2700.0576, -0.2103, 0, 0, 0);
//Obiekty:
new CreateObject
CreateObject(9907, 68.9188, -2704.1365, -49.1062, 0, 0, 180);
CreateObject(3861, 73.2175, -2708.1118, 1.3437, 0, 0, 180);
CreateObject(942, 69.1067, -2706.3596, 6.1574, 0, 0, 0);
CreateObject(942, 64.0224, -2706.3599, 6.1574, 0, 0, 0);
CreateObject(939, 69.1381, -2711.5022, 6.1574, 0, 0, 0);
CreateObject(939, 64.0762, -2711.5149, 6.1574, 0, 0, 0);
CreateObject(922, 66.8306, -2706.0447, 8.4669, 0, 0, 0);
CreateObject(1338, 70.4864, -2706.2944, 8.2927, 0, 0, 0);
CreateObject(1345, 75.8399, -2685.7952, 4.4843, 0, 0, 180);
CreateObject(956, 75.2434, -2684.1689, 4.3165, 0, 0, 90);
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/freediving.club", cmdtext, true, 10) == 0)
{
SendClientMessage(playerid, 0xCCCCCCAA, "----Freediving Info----");
SendClientMessage(playerid, 0xCCCCCCAA, "|Za?o?yciel: Ryu_Lee Numer:4190|");
SendClientMessage(playerid, 0xCCCCCCAA, "|Je?li chcesz zosta? cz?onkiem |");
SendClientMessage(playerid, 0xCCCCCCAA, "|Zg?o? si? do Ryu lub wpisz sie|");
SendClientMessage(playerid, 0xCCCCCCAA, "|Na forum ~Ryu Lee|");
SendClientMessage(playerid, 0xCCCCCCAA, "|______________________________|");
return 1;
}
return 0;
}
Dawno sie PAWNO nie bawi?em xD Co zrobi?em ?le??
Wysłany: 2008-12-20, 21:55
Diler
GtaO RLZ :)
Wiek: 30 Na forum: 6804 dni Posty: 199
Piwa : 2579
Kod:
A jak to usuniesz to co sie stanie xD ?
O kurde nie zauwazylem ze nie ma w OnFilerScriptInit
Ostatnio zmieniony przez Diler 2008-12-20, 22:15, w całości zmieniany 1 raz
Wysłany: 2008-12-20, 22:00
XFawkes
Programista LUA
Wiek: 33 Na forum: 6603 dni Posty: 12
Nick w MP: ~[EPG]~Puma
Piwa : 762
Auta i Obiekty dodaj w OnGameModeInit
Wysłany: 2008-12-20, 22:06
Max_Towar
Wiek: 33 Na forum: 6538 dni Posty: 2
Kod: C:\Documents and Settings\professional\Pulpit\Pawno i mapki\X2\Praca!\Nowy folder (2)\gamemodes\gf.pwn(7339) : warning 217: loose indentation
C:\Documents and Settings\professional\Pulpit\Pawno i mapki\X2\Praca!\Nowy folder (2)\gamemodes\gf.pwn(7392) : warning 217: loose indentation
C:\Documents and Settings\professional\Pulpit\Pawno i mapki\X2\Praca!\Nowy folder (2)\gamemodes\gf.pwn(7416) : warning 217: loose indentation
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
Header size: 7008 bytes
Code size: 1288536 bytes
Data size: 2500736 bytes
Stack/heap size: 16384 bytes; estimated max. usage=4646 cells (18584 bytes)
Total requirements: 3812664 bytes
3 Warnings
A ja mam taki problem. Bardzo bym prosil o pomoc. Czekam z niecierpliwoscia!!!
Wysłany: 2008-12-20, 22:14
Diler
GtaO RLZ :)
Wiek: 30 Na forum: 6804 dni Posty: 199
Piwa : 2579
Max_Towar , dodaj na gorze
#pragma tabsize 0
Tagi: błędy :: przy :: kompilacji :: rozwiązanie
Anonymous
Na forum: 245 dni
Posty: 1
Anonymous Koniecznie zajrzyj na: