Wysłany: 2011-12-27, 22:18
Stopro
Wiek: 50 Na forum: 5279 dni Posty: 8
Nick w MP: Stopro
Witam dzi? chcia?em zrobic server na hamachi i nie dzia?a mi cmd /unblock a /block dzia?a
O to kodzik
Kod: if(!strcmp(cmd, "/unblock", true))
{
new Namee[24];
GetPlayerName(playerid, Namee, 24);
if(PlayerInfo[playerid][pAdmin] >= 1)
{
new name[24], fileName[64];
tmp = strtok(cmdtext, idx);
format(name, 24, "%s", tmp);
// ----- wyswietlenie odpowiedniego komunikatu wraz z przerwaniem wykonywania dalszego kodu, jesli nazwa konta nie zostala podana
if(!strlen(name))
return SendClientMessage(playerid, 0xFFFFFFFF, "Uzyj: /unblock [dokladna nazwa konta]") & 1;
// ----- 'u?o?enie' nazwy pliku
format(fileName, 64, "SAGC/Accounts/%s.ini", name);
// ----- wyswietlenie odpowiedniego komunikatu wraz z przerwaniem wykonywania dalszego kodu, jesli konto nie istnieje
if(!FileExists(fileName))
return SendClientMessage(playerid, 0xFFFFFFFF, "Ten gracz nie zalozyl konta.") & 1;
// ----- wyswietlenie odpowiedniego komunikatu wraz z przerwaniem wykonywania dalszego kodu, jesli gracz nie jest zbanowany/zablokowany
if(GetIntFromFile(fileName, "Banned") == 1)
return SendClientMessage(playerid, 0xFFFFFFFF, "To konto nie jest zablokowane.") & 1;
// ----- jesli nic wczesniej nie przerwalo wykonywania kodu, odblokowujemy konto : )
format(string, sizeof(string), "* Odblokowano konto %s",tmp);
SendClientMessage(playerid,0xFFFFFFFF,string);
} else {
SendClientMessage(playerid, 0xffffffaa, "ssij, buhahahaha.");
}
return 1;
}
Prosze pomoc za POMOC daje zimne
Wysłany: 2011-12-28, 19:35
xqz
otaku desu!
Wiek: 32 Na forum: 6407 dni Posty: 723
Nick w MP: xqz
Piwa : 5465
Stopro , pokaz jeszcze komede block. Nie zasosowales w tej komendzie zadnej funkcji ktora miala by odblokowac, jedynie wyslales wiadomosc ze konto odblokowano.
Wysłany: 2011-12-29, 14:34
=MaD=
Wiek: 37 Na forum: 5304 dni Posty: 61
Nick w MP: FasoL
Piwa : 136
Kod: D:\PT-Polskie Trucki\gamemodes\pawno\include\dutils.inc(343) : warning 219: local variable "str1" shadows a variable at a preceding level
D:\PT-Polskie Trucki\gamemodes\pawno\include\dutils.inc(343) : warning 219: local variable "str2" shadows a variable at a preceding level
D:\PT-Polskie Trucki\gamemodes\pawno\include\dutils.inc(403) : warning 219: local variable "str2" shadows a variable at a preceding level
C:\DOCUME~1\DOM\Pulpit\POLSKI~1.PWN(8120) : error 010: invalid function or declaration
C:\DOCUME~1\DOM\Pulpit\POLSKI~1.PWN(8122) : error 010: invalid function or declaration
C:\DOCUME~1\DOM\Pulpit\POLSKI~1.PWN(8124) : error 010: invalid function or declaration
C:\DOCUME~1\DOM\Pulpit\POLSKI~1.PWN(8126) : error 010: invalid function or declaration
C:\DOCUME~1\DOM\Pulpit\POLSKI~1.PWN(8129) : error 010: invalid function or declaration
C:\DOCUME~1\DOM\Pulpit\POLSKI~1.PWN(8132) : error 010: invalid function or declaration
C:\DOCUME~1\DOM\Pulpit\POLSKI~1.PWN(8136) : error 010: invalid function or declaration
C:\DOCUME~1\DOM\Pulpit\POLSKI~1.PWN(8138) : error 010: invalid function or declaration
C:\DOCUME~1\DOM\Pulpit\POLSKI~1.PWN(8141) : error 010: invalid function or declaration
C:\DOCUME~1\DOM\Pulpit\POLSKI~1.PWN(8145) : error 010: invalid function or declaration
C:\DOCUME~1\DOM\Pulpit\POLSKI~1.PWN(8147) : error 010: invalid function or declaration
C:\DOCUME~1\DOM\Pulpit\POLSKI~1.PWN(8150) : error 010: invalid function or declaration
C:\DOCUME~1\DOM\Pulpit\POLSKI~1.PWN(8154) : error 010: invalid function or declaration
C:\DOCUME~1\DOM\Pulpit\POLSKI~1.PWN(8156) : error 010: invalid function or declaration
C:\DOCUME~1\DOM\Pulpit\POLSKI~1.PWN(8159) : error 010: invalid function or declaration
C:\DOCUME~1\DOM\Pulpit\POLSKI~1.PWN(8165) : error 010: invalid function or declaration
C:\DOCUME~1\DOM\Pulpit\POLSKI~1.PWN(8172) : error 010: invalid function or declaration
C:\DOCUME~1\DOM\Pulpit\POLSKI~1.PWN(8174) : error 010: invalid function or declaration
C:\DOCUME~1\DOM\Pulpit\POLSKI~1.PWN(8181) : error 010: invalid function or declaration
C:\DOCUME~1\DOM\Pulpit\POLSKI~1.PWN(8184) : error 010: invalid function or declaration
C:\DOCUME~1\DOM\Pulpit\POLSKI~1.PWN(8186) : error 010: invalid function or declaration
C:\DOCUME~1\DOM\Pulpit\POLSKI~1.PWN(8193) : error 010: invalid function or declaration
C:\DOCUME~1\DOM\Pulpit\POLSKI~1.PWN(8196) : error 010: invalid function or declaration
C:\DOCUME~1\DOM\Pulpit\POLSKI~1.PWN(8198) : error 010: invalid function or declaration
C:\DOCUME~1\DOM\Pulpit\POLSKI~1.PWN(8205) : error 010: invalid function or declaration
C:\DOCUME~1\DOM\Pulpit\POLSKI~1.PWN(8208) : error 010: invalid function or declaration
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
26 Errors.
Ja mam takie errory. Ka?d? klamr? mam wi?c mapka dzia?a. 1 dzie? temu kompilowa?em i wszystko posz?o a dzi? Nic nie zmienia?em w mapce i ten b??d wyskoczy?. Prosz? o pomoc
Wysłany: 2011-12-30, 11:20
BBBay
It's a Programmer
Wiek: 28 Na forum: 5428 dni Posty: 97
Nick w MP: xBBBay
Piwa : 340
Jak to zrobi? ?eby nie ustawia?o tyle score tylko dawa?o?
Kod: SetPlayerScore(playerid, minfo[playerid][Sc]);
Wysłany: 2011-12-30, 11:45
ePiTeK
Wiek: 32 Na forum: 6521 dni Posty: 5
Nick w MP: epitek
Piwa : 1049
Ma?y problem, mamy komende /pojazd w kt?rej mo?esz wybra? pojazd do spawnu, ale jako u?ytkownik sie nie da wsiasc odrazu wyrzuca z wozu, wszystko dzia?a po zalogowaniu na admina. Wie ktos jak to naprawi??
Wysłany: 2011-12-30, 12:16
BraYaN_
Wiek: 34 Na forum: 6602 dni Posty: 276
Nick w MP: BraYaN_
Piwa : 1614
BBBay , Kod: SetPlayerScore(playerid, GetPlayerScore(playerid)+minfo[playerid][Sc]);
ePiTeK , zobacz w OnPlayerEnterVehicle/OnPlayerStateChange, czy nie ma warunku if(IsPlayerAdmin(playerid))
Wysłany: 2012-01-02, 17:18
ePiTeK
Wiek: 32 Na forum: 6521 dni Posty: 5
Nick w MP: epitek
Piwa : 1049
Kod: if(GetPlayerVehicleID(playerid) == blokujv) //
{
if(PlayerInfo[playerid][pMember] == TEAM_POLICE || PlayerInfo[playerid][pLeader] == TEAM_POLICE){ //
}else{
SendClientMessage(playerid,COLOR_YELLOW, "Nie jestes w policji, nie mozesz porusza? si? tym pojazdem!"); //
RemovePlayerFromVehicle(playerid);
}
return 1;
}
To jest ta linijka:
Kod: if(PlayerInfo[playerid][pMember] == TEAM_POLICE || PlayerInfo[playerid][pLeader] == TEAM_POLICE){ //
Error:
Kod: error 029: invalid expression, assumed zero
[/code]
Ostatnio zmieniony przez ePiTeK 2012-01-02, 17:36, w całości zmieniany 2 razy
Wysłany: 2012-01-02, 17:25
krzyzan
Wiek: 30 Na forum: 5669 dni Posty: 387
Piwa : 2132
ePiTeK , Kt?ra linijka??
[ Dodano : 2012-01-02, 18:03 ]
Kod: if(GetPlayerVehicleID(playerid) == blokujv) //
{
if(GetPlayerTeamEx(playerid) == TEAM_POLICE)
{
}else{
SendClientMessage(playerid,COLOR_YELLOW, "Nie jestes w policji, nie mozesz porusza? si? tym pojazdem!"); //
RemovePlayerFromVehicle(playerid);
}
return 1;
}
Wysłany: 2012-01-02, 18:04
CRX
Wiek: 34 Na forum: 5671 dni Posty: 114
Piwa : 106
Pawn if( GetPlayerVehicleID ( playerid ) == blokujv ) //
{
if( PlayerInfo [ playerid ][ pMember ] == TEAM_POLICE && PlayerInfo [ playerid ][ pLeader ] == TEAM_POLICE ){ //
}else{
SendClientMessage ( playerid , COLOR_YELLOW , "Nie jestes w policji, nie mozesz porusza? si? tym pojazdem!" ); //
RemovePlayerFromVehicle ( playerid );
}
return 1 ;
}
Wysłany: 2012-01-05, 17:04
PlaceeK
Wiek: 30 Na forum: 5267 dni Posty: 28
Nick w MP: PlaceeK
Prosz? o pomoc mam takie b??dy :
Cytat: C:\Users\PlaceeK.Patryk-Komputer\Desktop\Polsih_Truck.pwn(271) : error 017: undefined symbol "SetPVarString"
C:\Users\PlaceeK.Patryk-Komputer\Desktop\Polsih_Truck.pwn(275) : error 035: argument type mismatch (argument 1)
C:\Users\PlaceeK.Patryk-Komputer\Desktop\Polsih_Truck.pwn(276) : error 035: argument type mismatch (argument 2)
C:\Users\PlaceeK.Patryk-Komputer\Desktop\Polsih_Truck.pwn(306) : error 017: undefined symbol "ShowPlayerDialog"
C:\Users\PlaceeK.Patryk-Komputer\Desktop\Polsih_Truck.pwn(308) : error 017: undefined symbol "ShowPlayerDialog"
C:\Users\PlaceeK.Patryk-Komputer\Desktop\Polsih_Truck.pwn(328) : error 035: argument type mismatch (argument 1)
C:\Users\PlaceeK.Patryk-Komputer\Desktop\Polsih_Truck.pwn(336) : error 035: argument type mismatch (argument 1)
C:\Users\PlaceeK.Patryk-Komputer\Desktop\Polsih_Truck.pwn(344) : error 035: argument type mismatch (argument 1)
C:\Users\PlaceeK.Patryk-Komputer\Desktop\Polsih_Truck.pwn(364) : error 017: undefined symbol "SetPVarInt"
C:\Users\PlaceeK.Patryk-Komputer\Desktop\Polsih_Truck.pwn(381) : error 035: argument type mismatch (argument 2)
C:\Users\PlaceeK.Patryk-Komputer\Desktop\Polsih_Truck.pwn(384) : error 017: undefined symbol "SetPVarInt"
C:\Users\PlaceeK.Patryk-Komputer\Desktop\Polsih_Truck.pwn(393) : error 035: argument type mismatch (argument 2)
C:\Users\PlaceeK.Patryk-Komputer\Desktop\Polsih_Truck.pwn(396) : error 017: undefined symbol "SetPVarInt"
C:\Users\PlaceeK.Patryk-Komputer\Desktop\Polsih_Truck.pwn(399) : error 035: argument type mismatch (argument 2)
C:\Users\PlaceeK.Patryk-Komputer\Desktop\Polsih_Truck.pwn(402) : error 017: undefined symbol "SetPVarInt"
C:\Users\PlaceeK.Patryk-Komputer\Desktop\Polsih_Truck.pwn(404) : error 035: argument type mismatch (argument 2)
C:\Users\PlaceeK.Patryk-Komputer\Desktop\Polsih_Truck.pwn(405) : error 035: argument type mismatch (argument 2)
C:\Users\PlaceeK.Patryk-Komputer\Desktop\Polsih_Truck.pwn(408) : error 017: undefined symbol "SetPVarInt"
C:\Users\PlaceeK.Patryk-Komputer\Desktop\Polsih_Truck.pwn(410) : error 035: argument type mismatch (argument 2)
C:\Users\PlaceeK.Patryk-Komputer\Desktop\Polsih_Truck.pwn(411) : error 035: argument type mismatch (argument 2)
C:\Users\PlaceeK.Patryk-Komputer\Desktop\Polsih_Truck.pwn(416) : error 035: argument type mismatch (argument 2)
C:\Users\PlaceeK.Patryk-Komputer\Desktop\Polsih_Truck.pwn(417) : error 035: argument type mismatch (argument 2)
C:\Users\PlaceeK.Patryk-Komputer\Desktop\Polsih_Truck.pwn(422) : error 035: argument type mismatch (argument 2)
C:\Users\PlaceeK.Patryk-Komputer\Desktop\Polsih_Truck.pwn(423) : error 035: argument type mismatch (argument 2)
C:\Users\PlaceeK.Patryk-Komputer\Desktop\Polsih_Truck.pwn(428) : error 035: argument type mismatch (argument 2)
C:\Users\PlaceeK.Patryk-Komputer\Desktop\Polsih_Truck.pwn(429) : error 035: argument type mismatch (argument 2)
Wysłany: 2012-01-06, 00:19
BraYaN_
Wiek: 34 Na forum: 6602 dni Posty: 276
Nick w MP: BraYaN_
Piwa : 1614
Wysłany: 2012-01-06, 11:20
PlaceeK
Wiek: 30 Na forum: 5267 dni Posty: 28
Nick w MP: PlaceeK
Teraz mam :
Cytat: C:\Users\PlaceeK.Patryk-Komputer\Desktop\moje\Polsih_Truck.pwn(18) : warning 201: redefinition of constant/macro (symbol "MAPICON_GLOBAL")
C:\Users\PlaceeK.Patryk-Komputer\Desktop\moje\Polsih_Truck.pwn(275) : error 035: argument type mismatch (argument 1)
C:\Users\PlaceeK.Patryk-Komputer\Desktop\moje\Polsih_Truck.pwn(276) : error 035: argument type mismatch (argument 2)
C:\Users\PlaceeK.Patryk-Komputer\Desktop\moje\Polsih_Truck.pwn(328) : error 035: argument type mismatch (argument 1)
C:\Users\PlaceeK.Patryk-Komputer\Desktop\moje\Polsih_Truck.pwn(336) : error 035: argument type mismatch (argument 1)
C:\Users\PlaceeK.Patryk-Komputer\Desktop\moje\Polsih_Truck.pwn(344) : error 035: argument type mismatch (argument 1)
C:\Users\PlaceeK.Patryk-Komputer\Desktop\moje\Polsih_Truck.pwn(381) : error 035: argument type mismatch (argument 2)
C:\Users\PlaceeK.Patryk-Komputer\Desktop\moje\Polsih_Truck.pwn(393) : error 035: argument type mismatch (argument 2)
C:\Users\PlaceeK.Patryk-Komputer\Desktop\moje\Polsih_Truck.pwn(399) : error 035: argument type mismatch (argument 2)
C:\Users\PlaceeK.Patryk-Komputer\Desktop\moje\Polsih_Truck.pwn(404) : error 035: argument type mismatch (argument 2)
C:\Users\PlaceeK.Patryk-Komputer\Desktop\moje\Polsih_Truck.pwn(405) : error 035: argument type mismatch (argument 2)
C:\Users\PlaceeK.Patryk-Komputer\Desktop\moje\Polsih_Truck.pwn(410) : error 035: argument type mismatch (argument 2)
C:\Users\PlaceeK.Patryk-Komputer\Desktop\moje\Polsih_Truck.pwn(411) : error 035: argument type mismatch (argument 2)
C:\Users\PlaceeK.Patryk-Komputer\Desktop\moje\Polsih_Truck.pwn(416) : error 035: argument type mismatch (argument 2)
C:\Users\PlaceeK.Patryk-Komputer\Desktop\moje\Polsih_Truck.pwn(417) : error 035: argument type mismatch (argument 2)
C:\Users\PlaceeK.Patryk-Komputer\Desktop\moje\Polsih_Truck.pwn(422) : error 035: argument type mismatch (argument 2)
C:\Users\PlaceeK.Patryk-Komputer\Desktop\moje\Polsih_Truck.pwn(423) : error 035: argument type mismatch (argument 2)
C:\Users\PlaceeK.Patryk-Komputer\Desktop\moje\Polsih_Truck.pwn(428) : error 035: argument type mismatch (argument 2)
C:\Users\PlaceeK.Patryk-Komputer\Desktop\moje\Polsih_Truck.pwn(429) : error 035: argument type mismatch (argument 2)
C:\Users\PlaceeK.Patryk-Komputer\Desktop\moje\Polsih_Truck.pwn(434) : error 035: argument type mismatch (argument 2)
C:\Users\PlaceeK.Patryk-Komputer\Desktop\moje\Polsih_Truck.pwn(435) : error 035: argument type mismatch (argument 2)
C:\Users\PlaceeK.Patryk-Komputer\Desktop\moje\Polsih_Truck.pwn(440) : error 035: argument type mismatch (argument 2)
C:\Users\PlaceeK.Patryk-Komputer\Desktop\moje\Polsih_Truck.pwn(479) : error 029: invalid expression, assumed zero
C:\Users\PlaceeK.Patryk-Komputer\Desktop\moje\Polsih_Truck.pwn(479) : error 035: argument type mismatch (argument 8)
C:\Users\PlaceeK.Patryk-Komputer\Desktop\moje\Polsih_Truck.pwn(480) : error 029: invalid expression, assumed zero
C:\Users\PlaceeK.Patryk-Komputer\Desktop\moje\Polsih_Truck.pwn(480) : error 035: argument type mismatch (argument 8)
C:\Users\PlaceeK.Patryk-Komputer\Desktop\moje\Polsih_Truck.pwn(481) : error 029: invalid expression, assumed zero
[ Dodano : 2012-01-06, 19:28 ]
Witam chcia?em zmieni? liczbe max domk?w i mam takie errory :
Cytat: C:\Users\PLACEE~1.PAT\AppData\Local\Temp\Rar$DI00.856\GarHouse.pwn(173) : error 001: expected token: "-identifier-", but found "-integer value-"
C:\Users\PLACEE~1.PAT\AppData\Local\Temp\Rar$DI00.856\GarHouse.pwn(501) : error 017: undefined symbol "YSI_gHousesS"
C:\Users\PLACEE~1.PAT\AppData\Local\Temp\Rar$DI00.856\GarHouse.pwn(501) : error 017: undefined symbol "YSI_gHousesA"
C:\Users\PLACEE~1.PAT\AppData\Local\Temp\Rar$DI00.856\GarHouse.pwn(501) : warning 215: expression has no effect
C:\Users\PLACEE~1.PAT\AppData\Local\Temp\Rar$DI00.856\GarHouse.pwn(501) : error 001: expected token: ";", but found "]"
C:\Users\PLACEE~1.PAT\AppData\Local\Temp\Rar$DI00.856\GarHouse.pwn(501) : fatal error 107: too many error messages on one line
Wysłany: 2012-01-06, 22:57
DaRkHaRdCoRoWy
Wiek: 30 Na forum: 5263 dni Posty: 1
Nick w MP: HaRd_CoRoWy
Witam Mam taki Ma?y problem z map? Truck ot?? nie zapisuje si? graczom score i kasa i wszystkie bramy nie dzia?aj? na 0.3d je?li kto? by m?g? to naprawi? to by?bym bardzo wdzi?czny i da?bym Piwek
Mape daje w PWN http://www.przeklej.pl/pl...wn-003ampc6996u
Wysłany: 2012-01-07, 18:36
Seboo
Wiek: 30 Na forum: 5516 dni Posty: 124
Nick w MP: Sebo
Piwa : 1228
Witam, zrobi?em sobie skrypt na s?u?b? Policyjn? i mam taki error.
(2854) : error 035: argument type mismatch (argument 2)
Kod: CMD:sluzba(playerid, params[])
{
if(GetPlayerTeamEx(playerid) == TEAM_POLICE)
{
new strmsg[256];
{
format(strmsg, 256, "Gracz {FFFFFF}%s{A9A9A9} rozpocz?? s?u?b? Policyjn?.",PlayerName(playerid));
SendClientMessage(playerid, COLOR_SZORY, strmsg); // Tutaj Linijka 2854
}
}
return 1;
}
Ostatnio zmieniony przez Seboo 2012-01-07, 18:38, w całości zmieniany 1 raz
Wysłany: 2012-01-07, 18:38
IgrexolonO
Wiek: 34 Na forum: 6809 dni Posty: 1386
Piwa : 1062
Kod: CMD:sluzba(playerid, params[])
{
if(GetPlayerTeamEx(playerid) == TEAM_POLICE)
{
new strmsg[256];
format(strmsg, 256, "Gracz {FFFFFF}%s{A9A9A9} rozpocz?? s?u?b? Policyjn?.",PlayerName(playerid));
SendClientMessage(playerid, COLOR_SZORY, strmsg);
}
return 1;
}
Tagi: błędy :: przy :: kompilacji :: rozwiązanie
Anonymous
Na forum: 245 dni
Posty: 1
Anonymous Koniecznie zajrzyj na: