Wysłany: 2014-01-05, 13:55
mrx3667
mrdrifter
Wiek: 29 Na forum: 4533 dni Posty: 143
Nick w MP: mrdrifter
Piwa : 359
Wysłany: 2014-01-06, 13:38
NoTa
Wiek: 31 Na forum: 5187 dni Posty: 121
Piwa : 2
Witam mam problem z compilacja tego skryptu, a i przy okazji wie kto? jak pobra? dok?adne kordy pojazd?w
Kod: #include <a_samp>
#include <zcmd>
#include <sscanf>
#define Max_Indicators 144
enum IndicatorsInfo
{
VID, //ID Modelu Pojazdu
Float:PXLP, //Lewy Przod X
Float:PYLP, //Lewy Przod Y
Float:PZLP,//Lewy Przod Z
Float:PXLT, //Lewy Ty? X
Float:PYLT, //Lewy Ty? Y
Float:PZLT,//Lewy Ty? Z
Float:PXPP, //Prawy Przod X
Float:PYPP, //Prawy Przod Y
Float:PZPP,//Prawy Przod Z
Float:PXPT, //Prawy Ty? X
Float:PYPT, //Prawy Ty? Y
Float:PZPT //Prawy Ty? Z
}
new IndicatorsObject[MAX_VEHICLES][6]; //Obiekty kierunkowskaz?w
new bool:IndiRightOn[MAX_VEHICLES]; //Kierunkowskaz prawy w??czony false/true
new bool:IndiLeftOn[MAX_VEHICLES]; //Kierunkowskaz lewy w??czony false/true
new bool:IndiEmerOn[MAX_VEHICLES]; //Awaryjne ?wiat?a w??czone false/true
new Indicators[Max_Indicators][IndicatorsInfo] =
{
{422, -0.8, 2.2, -0.3, -0.9, -2.499999, -0.2, 0.8, 2.2, -0.3, 0.9, -2.499999, -0.2},
{482,-0.9,2.399999,-0.3,-0.799999,-2.599999,0.0,0.9,2.399999,-0.3,0.799999,-2.599999,0.0},
}
CMD:awaryjne(playerid,params[])
{
new vehicleid = GetPlayerVehicleID(playerid);
if(IsPlayerInAnyVehicle(playerid) && GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
{
//----------------------?wiat?a Awaryjne
for(new i = 0; i < Max_Indicators; i++)
{
if(Indicators[i][VID] == GetVehicleModel(vehicleid))//Por?wnanie Modelu pojazdu z modelem w tablicy
{
if(IndiRightOn[vehicleid] == true || IndiLeftOn[vehicleid] == true) return 0;
if(IndiEmerOn[vehicleid] == false)
{
IndiEmerOn[vehicleid] = true;
//Kierunkowskaz Prawy Przedni
IndicatorsObject[vehicleid][0] = CreateObject( 19294,0,0,0,0,0,0,80 );
AttachObjectToVehicle(IndicatorsObject[vehicleid][0], vehicleid, Indicators[i][PXPP], Indicators[i][PYPP], Indicators[i][PZPP], 0, 0, 0);
//Kierunkowskaz Prawy Tylny
IndicatorsObject[vehicleid][1] = CreateObject( 19294,0,0,0,0,0,0,80 );
AttachObjectToVehicle(IndicatorsObject[vehicleid][1], vehicleid, Indicators[i][PXPT], Indicators[i][PYPT], Indicators[i][PZPT], 0, 0, 0);
//Kierunkowskaz Lewy Przedni
IndicatorsObject[vehicleid][2] = CreateObject( 19294,0,0,0,0,0,0,80 );
AttachObjectToVehicle(IndicatorsObject[vehicleid][2], vehicleid, Indicators[i][PXLP], Indicators[i][PYLP], Indicators[i][PZLP], 0, 0, 0);
//Kierunkowskaz Lewy Tylny
IndicatorsObject[vehicleid][3] = CreateObject( 19294,0,0,0,0,0,0,80 );
AttachObjectToVehicle(IndicatorsObject[vehicleid][3], vehicleid, Indicators[i][PXLT], Indicators[i][PYLT], Indicators[i][PZLT], 0, 0, 0);
}else
{
IndiEmerOn[vehicleid] = false;
DestroyObject(IndicatorsObject[vehicleid][0]);
DestroyObject(IndicatorsObject[vehicleid][1]);
DestroyObject(IndicatorsObject[vehicleid][2]);
DestroyObject(IndicatorsObject[vehicleid][3]);
}
}
}
}
return 1;
}
public OnVehicleDeath(vehicleid)
{
IndiEmerOn[vehicleid] = false;
IndiRightOn[vehicleid] = false;
IndiLeftOn[vehicleid] = false;
DestroyObject(IndicatorsObject[vehicleid][0]);
DestroyObject(IndicatorsObject[vehicleid][1]);
DestroyObject(IndicatorsObject[vehicleid][2]);
DestroyObject(IndicatorsObject[vehicleid][3]);
DestroyObject(IndicatorsObject[vehicleid][4]);
return 1;
}
public OnVehicleSpawn(vehicleid)
{
IndiEmerOn[vehicleid] = false;
IndiRightOn[vehicleid] = false;
IndiLeftOn[vehicleid] = false;
DestroyObject(IndicatorsObject[vehicleid][0]);
DestroyObject(IndicatorsObject[vehicleid][1]);
DestroyObject(IndicatorsObject[vehicleid][2]);
DestroyObject(IndicatorsObject[vehicleid][3]);
DestroyObject(IndicatorsObject[vehicleid][4]);
return 1;
}
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if(IsPlayerInAnyVehicle(playerid) && GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
{
new vehicleid = GetPlayerVehicleID(playerid);
new trailerid = GetVehicleTrailer(GetPlayerVehicleID(playerid));
//----------------------Kierunkowskaz Lewy
if(newkeys == 8192)
{
if(IsTrailerAttachedToVehicle(vehicleid))
{
if(IndiLeftOn[trailerid] == true) return 0;
for(new t = 0; t < Max_Indicators; t++)
{
if(Indicators[t][VID] == GetVehicleModel(GetVehicleTrailer(vehicleid)))
{
if(IndiLeftOn[trailerid] == false)
{
IndiLeftOn[trailerid] = true;
IndicatorsObject[trailerid][4] = CreateObject( 19294,0,0,0,0,0,0,80 );
AttachObjectToVehicle(IndicatorsObject[trailerid][4], trailerid, Indicators[t][PXLT], Indicators[t][PYLT], Indicators[t][PZLT], 0, 0, 0);
}else
{
IndiLeftOn[trailerid] = false;
DestroyObject(IndicatorsObject[trailerid][4]);
}
}
}
}
for(new i = 0; i < Max_Indicators; i++)
{
if(Indicators[i][VID] == GetVehicleModel(vehicleid))//Por?wnanie Modelu pojazdu z modelem w tablicy
{
if(IndiEmerOn[vehicleid] == true || IndiRightOn[vehicleid] == true) return 0;
if(IndiLeftOn[vehicleid] == false)
{
IndiLeftOn[vehicleid] = true;
//Kierunkowskaz Lewy Przedni
IndicatorsObject[vehicleid][0] = CreateObject( 19294,0,0,0,0,0,0,80 );
AttachObjectToVehicle(IndicatorsObject[vehicleid][0], vehicleid, Indicators[i][PXLP], Indicators[i][PYLP], Indicators[i][PZLP], 0, 0, 0);
//Kierunkowskaz Lewy Tylny
IndicatorsObject[vehicleid][1] = CreateObject( 19294,0,0,0,0,0,0,80 );
AttachObjectToVehicle(IndicatorsObject[vehicleid][1], vehicleid, Indicators[i][PXLT], Indicators[i][PYLT], Indicators[i][PZLT], 0, 0, 0);
}else
{
IndiLeftOn[vehicleid] = false;
DestroyObject(IndicatorsObject[vehicleid][0]);
DestroyObject(IndicatorsObject[vehicleid][1]);
}
}
}
}
//----------------------Kierunkowskaz Prawy
if(newkeys == 16384)
{
if(IsTrailerAttachedToVehicle(vehicleid))
{
if(IndiLeftOn[trailerid] == true) return 0;
for(new t = 0; t < Max_Indicators; t++)
{
if(Indicators[t][VID] == GetVehicleModel(GetVehicleTrailer(vehicleid)))
{
if(IndiRightOn[trailerid] == false)
{
IndiRightOn[trailerid] = true;
IndicatorsObject[trailerid][4] = CreateObject( 19294,0,0,0,0,0,0,80 );
AttachObjectToVehicle(IndicatorsObject[trailerid][4], trailerid, Indicators[t][PXPT], Indicators[t][PYPT], Indicators[t][PZPT], 0, 0, 0);
}else
{
IndiRightOn[trailerid] = false;
DestroyObject(IndicatorsObject[trailerid][4]);
}
}
}
}
for(new i = 0; i < Max_Indicators; i++)
{
if(Indicators[i][VID] == GetVehicleModel(vehicleid))//Por?wnanie Modelu pojazdu z modelem w tablicy
{
if(IndiEmerOn[vehicleid] == true || IndiLeftOn[vehicleid] == true) return 0;
if(IndiRightOn[vehicleid] == false)
{
IndiRightOn[vehicleid] = true;
//Kierunkowskaz Prawy Przedni
IndicatorsObject[vehicleid][0] = CreateObject( 19294,0,0,0,0,0,0,80 );
AttachObjectToVehicle(IndicatorsObject[vehicleid][0], vehicleid, Indicators[i][PXPP], Indicators[i][PYPP], Indicators[i][PZPP], 0, 0, 0);
//Kierunkowskaz Prawy Tylny
IndicatorsObject[vehicleid][1] = CreateObject( 19294,0,0,0,0,0,0,80 );
AttachObjectToVehicle(IndicatorsObject[vehicleid][1], vehicleid, Indicators[i][PXPT], Indicators[i][PYPT], Indicators[i][PZPT], 0, 0, 0);
}else
{
IndiRightOn[vehicleid] = false;
DestroyObject(IndicatorsObject[vehicleid][0]);
DestroyObject(IndicatorsObject[vehicleid][1]);
}
}
}
}
}
return 1;
}
public OnGameModeInit()
{
SetWeather(2);
return 1;
}
Errory
Kod: C:\Users\LaSeK\Desktop\SERVERo\pawno\kierunek.pwn(33) : error 029: invalid expression, assumed zero
C:\Users\LaSeK\Desktop\SERVERo\pawno\kierunek.pwn(33 -- 35) : error 008: must be a constant expression; assumed zero
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
2 Errors.
Wysłany: 2014-01-06, 14:00
ToxiC.
Wiek: 28 Na forum: 5246 dni Posty: 3792
Piwa : 8590
Kod: #include <a_samp>
#include <zcmd>
#include <sscanf>
#define Max_Indicators 144
enum IndicatorsInfo
{
VID, //ID Modelu Pojazdu
Float:PXLP, //Lewy Przod X
Float:PYLP, //Lewy Przod Y
Float:PZLP,//Lewy Przod Z
Float:PXLT, //Lewy Ty? X
Float:PYLT, //Lewy Ty? Y
Float:PZLT,//Lewy Ty? Z
Float:PXPP, //Prawy Przod X
Float:PYPP, //Prawy Przod Y
Float:PZPP,//Prawy Przod Z
Float:PXPT, //Prawy Ty? X
Float:PYPT, //Prawy Ty? Y
Float:PZPT //Prawy Ty? Z
}
new IndicatorsObject[MAX_VEHICLES][6]; //Obiekty kierunkowskaz?w
new bool:IndiRightOn[MAX_VEHICLES]; //Kierunkowskaz prawy w??czony false/true
new bool:IndiLeftOn[MAX_VEHICLES]; //Kierunkowskaz lewy w??czony false/true
new bool:IndiEmerOn[MAX_VEHICLES]; //Awaryjne ?wiat?a w??czone false/true
new Indicators[Max_Indicators][IndicatorsInfo] =
{
{422, -0.8, 2.2, -0.3, -0.9, -2.499999, -0.2, 0.8, 2.2, -0.3, 0.9, -2.499999, -0.2},
{482,-0.9,2.399999,-0.3,-0.799999,-2.599999,0.0,0.9,2.399999,-0.3,0.799999,-2.599999,0.0}
}
CMD:awaryjne(playerid,params[])
{
new vehicleid = GetPlayerVehicleID(playerid);
if(IsPlayerInAnyVehicle(playerid) && GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
{
//----------------------?wiat?a Awaryjne
for(new i = 0; i < Max_Indicators; i++)
{
if(Indicators[i][VID] == GetVehicleModel(vehicleid))//Por?wnanie Modelu pojazdu z modelem w tablicy
{
if(IndiRightOn[vehicleid] == true || IndiLeftOn[vehicleid] == true) return 0;
if(IndiEmerOn[vehicleid] == false)
{
IndiEmerOn[vehicleid] = true;
//Kierunkowskaz Prawy Przedni
IndicatorsObject[vehicleid][0] = CreateObject( 19294,0,0,0,0,0,0,80 );
AttachObjectToVehicle(IndicatorsObject[vehicleid][0], vehicleid, Indicators[i][PXPP], Indicators[i][PYPP], Indicators[i][PZPP], 0, 0, 0);
//Kierunkowskaz Prawy Tylny
IndicatorsObject[vehicleid][1] = CreateObject( 19294,0,0,0,0,0,0,80 );
AttachObjectToVehicle(IndicatorsObject[vehicleid][1], vehicleid, Indicators[i][PXPT], Indicators[i][PYPT], Indicators[i][PZPT], 0, 0, 0);
//Kierunkowskaz Lewy Przedni
IndicatorsObject[vehicleid][2] = CreateObject( 19294,0,0,0,0,0,0,80 );
AttachObjectToVehicle(IndicatorsObject[vehicleid][2], vehicleid, Indicators[i][PXLP], Indicators[i][PYLP], Indicators[i][PZLP], 0, 0, 0);
//Kierunkowskaz Lewy Tylny
IndicatorsObject[vehicleid][3] = CreateObject( 19294,0,0,0,0,0,0,80 );
AttachObjectToVehicle(IndicatorsObject[vehicleid][3], vehicleid, Indicators[i][PXLT], Indicators[i][PYLT], Indicators[i][PZLT], 0, 0, 0);
}else
{
IndiEmerOn[vehicleid] = false;
DestroyObject(IndicatorsObject[vehicleid][0]);
DestroyObject(IndicatorsObject[vehicleid][1]);
DestroyObject(IndicatorsObject[vehicleid][2]);
DestroyObject(IndicatorsObject[vehicleid][3]);
}
}
}
}
return 1;
}
public OnVehicleDeath(vehicleid)
{
IndiEmerOn[vehicleid] = false;
IndiRightOn[vehicleid] = false;
IndiLeftOn[vehicleid] = false;
DestroyObject(IndicatorsObject[vehicleid][0]);
DestroyObject(IndicatorsObject[vehicleid][1]);
DestroyObject(IndicatorsObject[vehicleid][2]);
DestroyObject(IndicatorsObject[vehicleid][3]);
DestroyObject(IndicatorsObject[vehicleid][4]);
return 1;
}
public OnVehicleSpawn(vehicleid)
{
IndiEmerOn[vehicleid] = false;
IndiRightOn[vehicleid] = false;
IndiLeftOn[vehicleid] = false;
DestroyObject(IndicatorsObject[vehicleid][0]);
DestroyObject(IndicatorsObject[vehicleid][1]);
DestroyObject(IndicatorsObject[vehicleid][2]);
DestroyObject(IndicatorsObject[vehicleid][3]);
DestroyObject(IndicatorsObject[vehicleid][4]);
return 1;
}
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if(IsPlayerInAnyVehicle(playerid) && GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
{
new vehicleid = GetPlayerVehicleID(playerid);
new trailerid = GetVehicleTrailer(GetPlayerVehicleID(playerid));
//----------------------Kierunkowskaz Lewy
if(newkeys == 8192)
{
if(IsTrailerAttachedToVehicle(vehicleid))
{
if(IndiLeftOn[trailerid] == true) return 0;
for(new t = 0; t < Max_Indicators; t++)
{
if(Indicators[t][VID] == GetVehicleModel(GetVehicleTrailer(vehicleid)))
{
if(IndiLeftOn[trailerid] == false)
{
IndiLeftOn[trailerid] = true;
IndicatorsObject[trailerid][4] = CreateObject( 19294,0,0,0,0,0,0,80 );
AttachObjectToVehicle(IndicatorsObject[trailerid][4], trailerid, Indicators[t][PXLT], Indicators[t][PYLT], Indicators[t][PZLT], 0, 0, 0);
}else
{
IndiLeftOn[trailerid] = false;
DestroyObject(IndicatorsObject[trailerid][4]);
}
}
}
}
for(new i = 0; i < Max_Indicators; i++)
{
if(Indicators[i][VID] == GetVehicleModel(vehicleid))//Por?wnanie Modelu pojazdu z modelem w tablicy
{
if(IndiEmerOn[vehicleid] == true || IndiRightOn[vehicleid] == true) return 0;
if(IndiLeftOn[vehicleid] == false)
{
IndiLeftOn[vehicleid] = true;
//Kierunkowskaz Lewy Przedni
IndicatorsObject[vehicleid][0] = CreateObject( 19294,0,0,0,0,0,0,80 );
AttachObjectToVehicle(IndicatorsObject[vehicleid][0], vehicleid, Indicators[i][PXLP], Indicators[i][PYLP], Indicators[i][PZLP], 0, 0, 0);
//Kierunkowskaz Lewy Tylny
IndicatorsObject[vehicleid][1] = CreateObject( 19294,0,0,0,0,0,0,80 );
AttachObjectToVehicle(IndicatorsObject[vehicleid][1], vehicleid, Indicators[i][PXLT], Indicators[i][PYLT], Indicators[i][PZLT], 0, 0, 0);
}else
{
IndiLeftOn[vehicleid] = false;
DestroyObject(IndicatorsObject[vehicleid][0]);
DestroyObject(IndicatorsObject[vehicleid][1]);
}
}
}
}
//----------------------Kierunkowskaz Prawy
if(newkeys == 16384)
{
if(IsTrailerAttachedToVehicle(vehicleid))
{
if(IndiLeftOn[trailerid] == true) return 0;
for(new t = 0; t < Max_Indicators; t++)
{
if(Indicators[t][VID] == GetVehicleModel(GetVehicleTrailer(vehicleid)))
{
if(IndiRightOn[trailerid] == false)
{
IndiRightOn[trailerid] = true;
IndicatorsObject[trailerid][4] = CreateObject( 19294,0,0,0,0,0,0,80 );
AttachObjectToVehicle(IndicatorsObject[trailerid][4], trailerid, Indicators[t][PXPT], Indicators[t][PYPT], Indicators[t][PZPT], 0, 0, 0);
}else
{
IndiRightOn[trailerid] = false;
DestroyObject(IndicatorsObject[trailerid][4]);
}
}
}
}
for(new i = 0; i < Max_Indicators; i++)
{
if(Indicators[i][VID] == GetVehicleModel(vehicleid))//Por?wnanie Modelu pojazdu z modelem w tablicy
{
if(IndiEmerOn[vehicleid] == true || IndiLeftOn[vehicleid] == true) return 0;
if(IndiRightOn[vehicleid] == false)
{
IndiRightOn[vehicleid] = true;
//Kierunkowskaz Prawy Przedni
IndicatorsObject[vehicleid][0] = CreateObject( 19294,0,0,0,0,0,0,80 );
AttachObjectToVehicle(IndicatorsObject[vehicleid][0], vehicleid, Indicators[i][PXPP], Indicators[i][PYPP], Indicators[i][PZPP], 0, 0, 0);
//Kierunkowskaz Prawy Tylny
IndicatorsObject[vehicleid][1] = CreateObject( 19294,0,0,0,0,0,0,80 );
AttachObjectToVehicle(IndicatorsObject[vehicleid][1], vehicleid, Indicators[i][PXPT], Indicators[i][PYPT], Indicators[i][PZPT], 0, 0, 0);
}else
{
IndiRightOn[vehicleid] = false;
DestroyObject(IndicatorsObject[vehicleid][0]);
DestroyObject(IndicatorsObject[vehicleid][1]);
}
}
}
}
}
return 1;
}
public OnGameModeInit()
{
SetWeather(2);
return 1;
}
Wysłany: 2014-01-06, 14:27
NoTa
Wiek: 31 Na forum: 5187 dni Posty: 121
Piwa : 2
teraz mam takie errory
Kod: C:\Users\LaSeK\Desktop\SERVERo\pawno\kierunek.pwn(33) : error 052: multi-dimensional arrays must be fully initialized
C:\Users\LaSeK\Desktop\SERVERo\pawno\kierunek.pwn(35) : error 001: expected token: ";", but found "forward"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
2 Errors.
Wysłany: 2014-01-13, 15:34
awfesa
Wiek: 29 Na forum: 4705 dni Posty: 563
Piwa : 223
Jak mozna zlikwidowa? te warningi
Kod: C:\Documents and Settings\Siema\Pulpit\pawno\include\FSR/Atraction_WG.inc(198) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Siema\Pulpit\pawno\include\FSR/Atraction_WG.inc(199) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Siema\Pulpit\pawno\include\FSR/Atraction_WG.inc(200) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Siema\Pulpit\pawno\include\FSR/Atraction_WG.inc(203) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Siema\Pulpit\pawno\include\FSR/Atraction_WG.inc(204) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Siema\Pulpit\pawno\include\FSR/Atraction_WG.inc(205) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Siema\Pulpit\pawno\include\FSR/Atraction_WG.inc(208) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Siema\Pulpit\pawno\include\FSR/Atraction_WG.inc(209) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Siema\Pulpit\pawno\include\FSR/Atraction_WG.inc(210) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Siema\Pulpit\pawno\include\FSR/Atraction_WG.inc(211) : warning 202: number of arguments does not match definition
to sa linijki z tymi warningami
Kod: Team1SpawnX = floatstr(strtok(tmp,e,','));
Team1SpawnY = floatstr(strtok(tmp,e,','));
Team1SpawnZ = floatstr(strtok(tmp,e,','));
tmp = dini_Get(string,"spawn2");
Team2SpawnX = floatstr(strtok(tmp,f,','));
Team2SpawnY = floatstr(strtok(tmp,f,','));
Team2SpawnZ = floatstr(strtok(tmp,f,','));
tmp = dini_Get(string,"area");
WGAreaX = floatstr(strtok(tmp,g,','));
WGAreaY = floatstr(strtok(tmp,g,','));
WGAreaZ = floatstr(strtok(tmp,g,','));
WGAreaA = floatstr(strtok(tmp,g,','));
Podpis
Cokolwiek robicie w swoim życiu, nie będzie to legendarne,
jeżeli wasi przyjaciele nie będą mogli tego zobaczyć.
Wysłany: 2014-01-13, 15:45
Quis
Wszechwiedzący
Wiek: 31 Na forum: 5146 dni Posty: 464
Nick w MP: Quis
Piwa : 1110
Tak wygl?da strtok: http://wiki.sa-mp.com/wiki/Strtok
W ka?dej z tych linijek masz jeden argument za du?o, usu? ",','" to zadzia?a kompilacja, ale wtedy prawdopodobnie skrypt nie b?dzie dzia?a? poprawnie.
Poka? swoj? definicj? strtoka, mo?e masz jakiego? przerobionego, albo masz dwa czy co?.
Pozdrawiam
Wysłany: 2014-01-15, 14:12
Maajk_El
PawnoMaster :)
Wiek: 29 Na forum: 4841 dni Posty: 162
Nick w MP: "Maajk_El"
Piwa : 2365
Witajcie, poszukuj? dzwi?ku PlayerPlaySound, odpalenia pojazdu, nie mog? go nigdzie znale??, daj?
Wysłany: 2014-01-15, 14:16
B!4CK
Never give UP!
Wiek: 32 Na forum: 5809 dni Posty: 1047
Nick w MP: John
Piwa : 1891
Maajk_El , Z tego co wiem to audio plugin posiada tak? rzecz tak samo z alarmem czy te? otwieraniem / zamykaniem pojazdu.
Podpis
Cześć
[you]
!
Projekt, który poruszy scenę platformy SA:MP!
Wysłany: 2014-01-15, 14:43
Maajk_El
PawnoMaster :)
Wiek: 29 Na forum: 4841 dni Posty: 162
Nick w MP: "Maajk_El"
Piwa : 2365
Ja mam w mapie odpalanie samochodu komend? /p (GUI), potem si? wybiera, odpal/zga?, i nie ma tego sygna?u.
Wysłany: 2014-01-15, 15:16
B!4CK
Never give UP!
Wiek: 32 Na forum: 5809 dni Posty: 1047
Nick w MP: John
Piwa : 1891
Podpis
Cześć
[you]
!
Projekt, który poruszy scenę platformy SA:MP!
Wysłany: 2014-01-17, 20:26
Morello12
Wiek: 34 Na forum: 4895 dni Posty: 99
Nick w MP: Mr.K
Piwa : 13
Witam. Posiadam gm ht 3.0 by inferno pod mysql. Podczas wej?cia na serwer pisze aby stworzy? konto. Tworze konto robi sie ono w mysql i pokazuje si? okienko logowania. Wpisuje haslo i gdy wpisze haslo to wywala mnie na srodek mapy sa i nastepnie wyrzuca mnie z serwera i jest napis Server closed the connection. Oto logi:
Kod:
----------
Loaded log file: "server_log.txt".
----------
SA-MP Dedicated Server
----------------------
v0.3x-R2, (C)2005-2013 SA-MP Team
[19] filterscripts = "" (string)
[19]
[19] Server Plugins
[19] --------------
[19] Loading plugin: audio.so
[19]
*** Audio Plugin v0.5 by Incognito loaded ***
[19] Loaded.
[19] Loading plugin: mysql.so
[19]
> MySQL plugin R3 successfully loaded.
[19] Loaded.
[19] Loading plugin: sscanf.so
[19]
[19] ===============================
[19] sscanf plugin loaded.
[19] Version: 2.8.1
[19] (c) 2012 Alex "Y_Less" Cole
[19] ===============================
[19] Loaded.
[19] Loading plugin: streamer.so
[19]
*** Streamer Plugin v2.6.1 by Incognito loaded ***
[19] Loaded.
[19] Loading plugin: y_files.so
[19]
[19] ===============================
[19] y_files loaded
[19] (c) 2010 Alex "Y_Less" Cole
[19] ===============================
[19] Loaded.
[19] Loaded 5 plugins.
[19]
[19] Ban list
[19] --------
[19] Loaded: samp.ban
[19]
[19]
[19] Filterscripts
[19] ---------------
[19] Loaded 0 filterscripts.
[19] [DataBase]: Pomy?lnie po??czono z baz? danych.
[19] truckrp.amx->LoadVehicles->Call
[19] truckrp.amx->LoadCargos->Call
[19] sscanf error: System not initialised.
[19] sscanf error: System not initialised.
[19] sscanf error: System not initialised.
[19] sscanf error: System not initialised.
[19] sscanf error: System not initialised.
[19] sscanf error: System not initialised.
[19] sscanf error: System not initialised.
[19] sscanf error: System not initialised.
[19] sscanf error: System not initialised.
[19] sscanf error: System not initialised.
[19] sscanf error: System not initialised.
[19] sscanf error: System not initialised.
[19] sscanf error: System not initialised.
[19] sscanf error: System not initialised.
[19] sscanf error: System not initialised.
[19] sscanf error: System not initialised.
[19] sscanf error: System not initialised.
[19] sscanf error: System not initialised.
[19] sscanf error: System not initialised.
[19] sscanf error: System not initialised.
[19] sscanf error: System not initialised.
[19] sscanf error: System not initialised.
[19] sscanf error: System not initialised.
[19] sscanf error: System not initialised.
[19] sscanf error: System not initialised.
[19] sscanf error: System not initialised.
[19] sscanf error: System not initialised.
[19] sscanf error: System not initialised.
[19] sscanf error: System not initialised.
[19] sscanf error: System not initialised.
[19] sscanf error: System not initialised.
[19] sscanf error: System not initialised.
[19] sscanf error: System not initialised.
[19] sscanf error: System not initialised.
[19] sscanf error: System not initialised.
[19] sscanf error: System not initialised.
[19] truckrp.amx->LoadFrakcje->Call
[19] sscanf error: System not initialised.
[19] sscanf error: System not initialised.
[19] za?adowano
[19] sscanf error: System not initialised.
[19] sscanf error: System not initialised.
[19] za?adowano
[19] sscanf error: System not initialised.
[19] sscanf error: System not initialised.
[19] za?adowano
[19] sscanf error: System not initialised.
[19] sscanf error: System not initialised.
[19] za?adowano
[19] sscanf error: System not initialised.
[19] sscanf error: System not initialised.
[19] za?adowano
[19] sscanf error: System not initialised.
[19] sscanf error: System not initialised.
[19] za?adowano
[19] sscanf error: System not initialised.
[19] sscanf error: System not initialised.
[19] za?adowano
[19] truckrp.amx->LoadLoadings->Call
[19] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[19] PTS v3.0 Beta (Inferno)
[19] Load Statistic:
[19] Load time 0.0000s
[19] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[19] Number of vehicle models: 1
[19] Incoming connection: 83.20.29.198:5068
[19] [join] Mr.K has joined the server (0:83.20.29.198)
[19] [Call]OnPlayerConnect ( )->Called
[19] sscanf error: System not initialised.
[19] [part] Mr.K has left the server (0:2
Prosze o szybk? pomoc.
Wysłany: 2014-01-18, 20:22
sirelton
Mlodszy paffner :D
Wiek: 39 Na forum: 5185 dni Posty: 42
Nick w MP: Adagio
Piwa : 180
Witaam mam taki problem z tym kodem co jest ?le zrobione
Kod:
Kod: public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == 0) //2, bo taka jest warto?? w drugim argumencie funkcji ShowPlayerDialog
{
if(response == 1) //Sprawdzamy, czy zosta? naci?ni?ty lewy przycisk
{
switch(listitem)//Switch'ujemy listitem (mo?emy robi? tez if'y, ale to jest szybsze i ?atwiejsze
{
case 0: //Je?li warto?? to 0...
{
ShowPlayerDialog(playerid, 0, DIALOG_STYLE_MSGBOX, "Komendy gracza", "{99CC32}/100hp{FFFF00}-daje graczowi pelne ?ycie\n{99CC32}/Armour{FFFF00}-daje graczowi pe?ny pancerz\n{99CC32}/Autor{FFFF00}-autorzy\n/{99CC32}Bronie{FFFF00}-kupujesz bron ", "Wyjdz", "Wyjdz");
}
case 1: //Je?li warto?? to 1...
{
ShowPlayerDialog(playerid, 0, DIALOG_STYLE_MSGBOX, "Komendy VIPA", "komenda\nKomenda\n", "Wyjdz", "Wyjdz");
}
case 2: //Je?li warto?? to 2...
{
ShowPlayerDialog(playerid, 0, DIALOG_STYLE_MSGBOX, "Komendy admina RCON", "komenda\nKomenda\n", "Wyjdz", "Wyjdz");
}
case 3: //Je?li warto?? to 2...
{
ShowPlayerDialog(playerid, 0, DIALOG_STYLE_MSGBOX, "Komendy admina", "komenda\nKomenda\n", "Wyjdz", "Wyjdz");
}
case 4: //Je?li warto?? to 2...
ShowPlayerDialog(playerid, 0, DIALOG_STYLE_MSGBOX, "Komendy zarz?du", "komenda\nKomenda\n", "Wyjdz", "Wyjdz");
}
}
else //Je?li zosta? naci?ni?ty drugi przycisk...
ShowPlayerDialog(playerid, 0, DIALOG_STYLE_LIST, "Elite-Game.pl Spis komend", "{70DB93}Komendy Gracza\n{87CEEB}Komendy VIPA\n{7FFFD4}Komendy Admina RCON \n{A62A2A}Komendy admina \n{FF7F24}Komendy zarz?d", "Wybierz", "Wyjdz");
}
if(dialogid == 2) //2, bo taka jest warto?? w drugim argumencie funkcji ShowPlayerDialog
{
if(response == 1) //Sprawdzamy, czy zosta? naci?ni?ty lewy przycisk
{
switch(listitem)//Switch'ujemy listitem (mo?emy robi? tez if'y, ale to jest szybsze i ?atwiejsze
{
case 0: //Je?li warto?? to 0...
{
}
case 1: //Je?li warto?? to 1...
{
}
case 2: //Je?li warto?? to 2...
{
}
case 3: //Je?li warto?? to 2...
{
}
case 4: //Je?li warto?? to 2...
}
}
else //Je?li zosta? naci?ni?ty drugi przycisk...
ShowPlayerDialog(playerid, 2, DIALOG_STYLE_LIST, "Elite-Game.pl Bronie", "/1bron\n/2 bron\n/3bron\n/4bron", "Wybierz", "Wyjdz");
}
return 1;
}
Komendy do tych 2 dialogow:
Kod:
Kod: CMD:komendy(playerid, params[]){
ShowPlayerDialog(playerid, 0, DIALOG_STYLE_LIST, "Elite-Game.pl Spis komend", "{70DB93}Komendy Gracza\n{87CEEB}Komendy VIPA\n{7FFFD4}Komendy Admina RCON \n{A62A2A}Komendy admina \n{FF7F24}Komendy zarz?d", "Wybierz", "Wyjdz");
return 1;
}
CMD:bronie(playerid, params[])
{
ShowPlayerDialog(playerid, 2, DIALOG_STYLE_LIST, "Elite-Game.pl Bronie", "/1bron\n/2 bron\n/3bron\n/4bron", "Wybierz", "Wyjdz");
return 1;
}
a tu errory :
Kod:
Kod:
C:\DOCUME~1\MATEUS~1\Pulpit\GM.pwn(383) : error 017: undefined symbol "ContainsIP"
C:\DOCUME~1\MATEUS~1\Pulpit\GM.pwn(591) : error 029: invalid expression, assumed zero
C:\DOCUME~1\MATEUS~1\Pulpit\GM.pwn(593) : warning 217: loose indentation
C:\DOCUME~1\MATEUS~1\Pulpit\GM.pwn(593) : error 029: invalid expression, assumed zero
C:\DOCUME~1\MATEUS~1\Pulpit\GM.pwn(594) : warning 217: loose indentation
C:\DOCUME~1\MATEUS~1\Pulpit\GM.pwn(596) : warning 217: loose indentation
C:\DOCUME~1\MATEUS~1\Pulpit\GM.pwn(598) : warning 217: loose indentation
C:\DOCUME~1\MATEUS~1\Pulpit\GM.pwn(598) : error 029: invalid expression, assumed zero
C:\DOCUME~1\MATEUS~1\Pulpit\GM.pwn(598) : error 004: function "OnPlayerClickPlayer" is not implemented
C:\DOCUME~1\MATEUS~1\Pulpit\GM.pwn(602) : warning 225: unreachable code
C:\DOCUME~1\MATEUS~1\Pulpit\GM.pwn(602) : error 029: invalid expression, assumed zero
C:\DOCUME~1\MATEUS~1\Pulpit\GM.pwn(602) : error 004: function "OnPlayerCommandPerformed" is not implemented
C:\DOCUME~1\MATEUS~1\Pulpit\GM.pwn(604) : error 017: undefined symbol "success"
C:\DOCUME~1\MATEUS~1\Pulpit\GM.pwn(607) : error 017: undefined symbol "cmdtext"
C:\DOCUME~1\MATEUS~1\Pulpit\GM.pwn(615) : warning 225: unreachable code
C:\DOCUME~1\MATEUS~1\Pulpit\GM.pwn(615) : error 029: invalid expression, assumed zero
C:\DOCUME~1\MATEUS~1\Pulpit\GM.pwn(615) : error 017: undefined symbol "cmd_autor"
C:\DOCUME~1\MATEUS~1\Pulpit\GM.pwn(615) : error 029: invalid expression, assumed zero
C:\DOCUME~1\MATEUS~1\Pulpit\GM.pwn(615) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
13 Errors.
JAKBY ktos mogl pomoc i mialby czas to mozecie na GG ? 38414145
Podpis
Witaj
[you]
zapraszam Cię na
Polish Full Party!
PFPServ.pl
Wysłany: 2014-01-21, 18:34
Rumun
Wiek: 30 Na forum: 5235 dni Posty: 316
Nick w MP: Rumun
Piwa : 25
Mam takie errory.
undefined symbol "PlayerTextDrawSetPreviewModel"
Kod:
PlayerTextDrawSetPreviewModel(playerid, X_ID_S_TEXTDRAW, GetPlayerSkin(playerid));
undefined symbol "TEXT_DRAW_FONT_MODEL_PREVIEW"
Kod: PlayerTextDrawFont(playerid, licznik, TEXT_DRAW_FONT_MODEL_PREVIEW);
undefined symbol "PlayerTextDrawSetPreviewRot"
Kod:
PlayerTextDrawSetPreviewRot(playerid, X_ID_S_TEXTDRAW, -19.000000, 0.000000, -55.000000, 1.000000);
Wysłany: 2014-01-21, 18:43
Sillence
Wiek: 26 Na forum: 5157 dni Posty: 1514
Nick w MP: Sillence
Piwa : 1517
Rumun , Zaktualizuj include na najnowsze
Wysłany: 2014-01-23, 22:29
Driftin33k
DrifteR
Wiek: 29 Na forum: 4580 dni Posty: 43
Nick w MP: _Driftin3K_
Piwa : 40
Tagi: błędy :: przy :: kompilacji :: rozwiązanie
Anonymous
Na forum: 245 dni
Posty: 1
Anonymous Koniecznie zajrzyj na: