Wysłany: 2012-04-22, 00:01
eras800
Wiek: 31 Na forum: 5767 dni Posty: 30
Nick w MP: Jobas
Piwa : 1049
Witam tak bawi?em si? map? i mam takie errory.
Kod:
Kod: C:\Users\Komputer\Desktop\tr\HT\pawno\truck2.pwn(1064) : error 012: invalid function call, not a valid address
C:\Users\Komputer\Desktop\tr\HT\pawno\truck2.pwn(1064) : warning 215: expression has no effect
C:\Users\Komputer\Desktop\tr\HT\pawno\truck2.pwn(1064) : error 001: expected token: ";", but found ")"
C:\Users\Komputer\Desktop\tr\HT\pawno\truck2.pwn(1064) : error 029: invalid expression, assumed zero
C:\Users\Komputer\Desktop\tr\HT\pawno\truck2.pwn(1064) : fatal error 107: too many error messages on one line
Compilation gtaonline compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
4 Errors.
Oto ten kod
Kod:
Kod:
Daje za pomoc
Wysłany: 2012-04-23, 07:06
Kaw3rGames
Wiek: 30 Na forum: 5200 dni Posty: 25
Nick w MP: Kaw3rGames
Piwa : 14
Wysłany: 2012-04-24, 19:27
Sillence
Wiek: 26 Na forum: 5157 dni Posty: 1514
Nick w MP: Sillence
Piwa : 1517
Kaw3rGames ,
Zr?b tak :
Pawn Create3DTextLabel ( "moj text haha" , COLOR_CZERW , - 345.0672 , 1117.3196 , 19.5938 , 30 , 0 , 0 );
return 1 ;
}
Wysłany: 2012-04-26, 08:23
Logitech12
Wiek: 31 Na forum: 5346 dni Posty: 5
Nick w MP: [_Logitech_]
C:\Users\Home\Desktop\PolskiFreeroamek2.0.pwn(21263) : error 017: undefined symbol "strrest"
C:\Users\Home\Desktop\PolskiFreeroamek2.0.pwn(21263) : error 033: array must be indexed (variable "BReason")
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
2 Errors.
Pom??cie dam
Wysłany: 2012-04-27, 14:17
HunterS
Pff..
Wiek: 29 Na forum: 5164 dni Posty: 11
Nick w MP: _Sonix[HA]
Piwa : 4
C:\Users\Home\Desktop\PolskiFreeroamek2.0.pwn(21263) : error 017: undefined symbol "strrest"
daj zmienn? new strrest; a jak j? ju? masz to j? usu?
ps. drugi b??d to ta sama linijka to powinien ju? znikn??
Wysłany: 2012-04-27, 22:45
staleczka12
Wiek: 29 Na forum: 6296 dni Posty: 29
Piwa : 287
Chc? doda? pasek do liczniku Destroy'a ale mam b??d kod:
Kod:
#include <a_samp>
#include <colors>
#include <progress>
new Bar:paliwo[MAX_PLAYERS] = {INVALID_BAR_ID, ...};
forward ProgressBar();
#if defined FILTERSCRIPT
#endif
new Text:pojazd[200];
new BrakPaliwa[MAX_PLAYERS];
forward NaStacjiPaliw(playerid);
#define ILOSC_AUT 1000
#define GasZwykly 120
#define MinusGas 1500
new Gas[ILOSC_AUT];
enum SavePlayerPosEnum{
Float:LastX,
Float:LastY,
Float:LastZ}
new SavePlayerPos[MAX_PLAYERS][SavePlayerPosEnum];
#define COLOR_LIGHTRED 0xFF0000FF//jasny czerwony
new nazwypojazdow[212][32] = {
"Landstalker","Bravura","Buffalo","Linerunner","Pereniel","Sentinel","Dumper","Firetruck","Trashmaster","Stretch","Manana",
"Infernus","Voodoo","Pony","Mule","Cheetah","Ambulance","Leviathan","Moonbeam","Esperanto","Taxi","Washington","Bobcat",
"Mr Whoopee","BF Injection","Hunter","Premier","Enforcer","Securicar","Banshee","Predator","Bus","Rhino","Barracks",
"Hotknife","Trailer","Previon","Coach","Cabbie","Stallion","Rumpo","RC Bandit","Romero","Packer","Monster","Admiral",
"Squalo","Seasparrow","Pizzaboy","Tram","Trailer","Turismo","Speeder","Reefer","Tropic","Flatbed","Yankee","Caddy",
"Solair","Berkley's RC Van","Skimmer","PCJ-600","Faggio","Harley","RC Baron","RC Raider","Glendale","Oceanic",
"Sanchez","Sparrow","Patriot","Quad","Coastguard","Dinghy","Hermes","Sabre","Rustler","ZR3 50","Walton","Regina",
"Comet","BMX","Burrito","Camper","Marquis","Baggage","Dozer","Maverick","News Chopper","Rancher","FBI Rancher",
"Virgo","Greenwood","Jetmax","Hotring","Sandking","Blista Compact","Police Maverick","Boxville","Benson","Mesa",
"RC Goblin","Hotring Racer","Hotring Racer","Bloodring Banger","Rancher","Super GT","Elegant","Journey","Bike",
"Mountain Bike","Beagle","Cropdust","Stunt","Tanker","RoadTrain","Nebula","Majestic","Buccaneer","Shamal","Hydra",
"FCR-900","NRG-500","HPV1000","Cement Truck","Tow Truck","Fortune","Cadrona","FBI Truck","Willard","Forklift","Traktor",
"Combine","Feltzer","Remington","Slamvan","Blade","Freight","Streak","Vortex","Vincent","Bullet","Clover","Sadler",
"Firetruck","Hustler","Intruder","Primo","Cargobob","Tampa","Sunrise","Merit","Utility","Nevada","Yosemite","Windsor",
"Monster","Monster","Uranus","Jester","Sultan","Stratum","Elegy","Raindance","RC Tiger","Flash","Tahoma","Savanna",
"Bandito","Freight","Trailer","Kart","Mower","Duneride","Sweeper","Broadway","Tornado","AT-400","DFT-30","Huntley",
"Stafford","BF-400","Newsvan","Tug","Trailer","Emperor","Wayfarer","Euros","Hotdog","Club","Trailer","Trailer",
"Andromeda","Dodo","RC Cam","Launch","Radiowoz","Radiowoz","Radiowoz","Radiowoz","Picador","S.W.A.T. Van",
"Alpha","Phoenix","Glendale","Sadler","Luggage Trailer","Luggage Trailer","Stair Trailer","Boxville","Farm Plow","Utility Trailer"
};
public OnFilterScriptInit()
{
print(" ");
print("Licznik by Destroyer Uruchomiony.");
print(" ");
SetTimer("odpojazdu", 1000, true);
SetTimer("OdejmnijPaliwo", MinusGas, 1);
for(new g=0;g<200;g++){
pojazd[g] = TextDrawCreate(266, 382," ");
TextDrawAlignment(pojazd[g],0);
//-------box--------
TextDrawUseBox(pojazd[g], 1);
TextDrawSetShadow(pojazd[g], 2);
TextDrawSetOutline(pojazd[g], 2);
TextDrawTextSize(pojazd[g], 420.0, 600.0);
TextDrawBoxColor(pojazd[g], 0x00000044);
//------------koniec boxu--------------------
TextDrawBackgroundColor(pojazd[g], 0x295921FF);
TextDrawBackgroundColor(pojazd[g],0x000000ff);
TextDrawFont(pojazd[g],1);
TextDrawLetterSize(pojazd[g],0.399999,1.300000);
TextDrawColor(pojazd[g],0xffffffff);
TextDrawSetOutline(pojazd[g],1);
TextDrawSetProportional(pojazd[g],1);
TextDrawSetShadow(pojazd[g],1);
}
for(new c=0;c<ILOSC_AUT;c++){
Gas[c] = GasZwykly; }
return 1;
}
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
TextDrawShowForPlayer(playerid,pojazd[playerid]);
return 1;
}
public OnPlayerExitVehicle(playerid, vehicleid){
TextDrawHideForPlayer(playerid,pojazd[playerid]);
return 1;
}
forward OdejmnijPaliwo();
public OdejmnijPaliwo(){
for(new g=0;g<200;g++){
new vehid = GetPlayerVehicleID(g);
Gas[vehid]--;
}
return true;
}
public NaStacjiPaliw(playerid)
{
if(IsPlayerConnected(playerid))
{
if(PlayerToPoint(5.0, playerid, 1547.065185,23.461799,23.817667))
{
return 1;
}
else if(PlayerToPoint(6.0,playerid,1004.0070,-939.3102,42.1797) || PlayerToPoint(6.0,playerid,1944.3260,-1772.9254,13.3906))
{//LS
return 1;
}
else if(PlayerToPoint(6.0,playerid,-90.5515,-1169.4578,2.4079) || PlayerToPoint(6.0,playerid,-1609.7958,-2718.2048,48.5391))
{//LS
return 1;
}
else if(PlayerToPoint(6.0,playerid,-2029.4968,156.4366,28.9498) || PlayerToPoint(8.0,playerid,-2408.7590,976.0934,45.4175))
{//SF
return 1;
}
else if(PlayerToPoint(5.0,playerid,-2243.9629,-2560.6477,31.8841) || PlayerToPoint(8.0,playerid,-1676.6323,414.0262,6.9484))
{//Between LS and SF
return 1;
}
else if(PlayerToPoint(6.0,playerid,2202.2349,2474.3494,10.5258) || PlayerToPoint(10.0,playerid,614.9333,1689.7418,6.6968))
{//LV
return 1;
}
else if(PlayerToPoint(8.0,playerid,-1328.8250,2677.2173,49.7665) || PlayerToPoint(6.0,playerid,70.3882,1218.6783,18.5165))
{//LV
return 1;
}
else if(PlayerToPoint(8.0,playerid,2113.7390,920.1079,10.5255) || PlayerToPoint(6.0,playerid,-1327.7218,2678.8723,50.0625))
{//LV
return 1;
}
}
return 0;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmdtext, "/tankuj", true) == 0)
{
if(GetPlayerMoney(playerid) <= 519){
SendClientMessage(playerid,COLOR_LIGHTRED,"Nie masz tyle kasy!");
return 1;
}
if(IsPlayerConnected(playerid))
{
if(NaStacjiPaliw(playerid))
{
new VID;
new FillUpz;
new string[256];
VID = GetPlayerVehicleID(playerid);
FillUpz = GasZwykly - Gas[VID];
if(GetPlayerMoney(playerid) >= FillUpz+4)
{
Gas[VID] += FillUpz;
FillUpz = FillUpz * 1;
format(string,sizeof(string),"Zatankowa?e? do pe?nego baku (%d Litry) za %d $ ",FillUpz,FillUpz*3);
SendClientMessage(playerid,ZOLTY,string);
GivePlayerMoney(playerid,-FillUpz*3);
}
}
else
{
SendClientMessage(playerid,SZARY,"Nie jeste? na stacji paliw!!");
}
}
return 1;
}
if(strcmp(cmdtext, "/tankujall",true)==0 && IsPlayerAdmin(playerid)) {
if(IsPlayerConnected(playerid)){
for(new i=0;i<200;i++){
new VID;
new FillUpz;
new string[256];
VID = GetPlayerVehicleID(i);
FillUpz = GasZwykly - Gas[VID];
Gas[VID] += FillUpz;
FillUpz = FillUpz * 1;
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid,name, sizeof(name));
format(string, sizeof(string), "Administrator: %s zatankowa? wszystkim pojazdy!",name, playerid);
SendClientMessage(i,ZOLTY,string);
}
}
return 1;
}
if(strcmp(cmdtext, "/wysiadz", true) == 0){
RemovePlayerFromVehicle(playerid);
TogglePlayerControllable(playerid, 1);
SetCameraBehindPlayer(playerid);
return 1;
}
return 0;
}
forward odpojazdu();
public odpojazdu(){
new string[256];
for(new i=0;i<MAX_PLAYERS;i++){
if(IsPlayerConnected(i) && IsPlayerInAnyVehicle(i)){
new Float:x,Float:y,Float:z;
new Float: distance,value;
GetPlayerPos(i, x, y, z);
distance = floatsqroot(floatpower(floatabs(floatsub(x,SavePlayerPos[i][LastX])),2)+floatpower(floatabs(floatsub(y,SavePlayerPos[i][LastY])),2)+floatpower(floatabs(floatsub(z,SavePlayerPos[i][LastZ])),2));
value = floatround(distance * 11000);
new vehid = GetPlayerVehicleID(i);
new Float:HealthV;
GetVehicleHealth(GetPlayerVehicleID(i), HealthV);
format(string, sizeof(string), "~w~Pojazd:~r~ %s ~n~~w~HP Pojazdu:~r~ %.0f ~n~~w~Predkosc:~r~ %d Km/h~n~~w~Paliwo:~r~ %d% L",GetVehicleName(vehid),HealthV-250, floatround(value/1400),Gas[vehid]);
TextDrawSetString(pojazd[i], string);
SavePlayerPos[i][LastX] = x;
SavePlayerPos[i][LastY] = y;
SavePlayerPos[i][LastZ] = z;
if(Gas[vehid] < 1)
{
BrakPaliwa[i] = 1;
TogglePlayerControllable(i, 0);
GameTextForPlayer(i,"~w~~n~~n~~n~Koniec Paliwa~n~Wpisz /wysiadz ,aby wyjsc z pojazdu",3000,3);
}
}
}
return true;
}
stock PlayerToPoint(Float:radi, playerid, Float:x, Float:y, Float:z)
{
new Float:oldposx, Float:oldposy, Float:oldposz;
new Float:tempposx, Float:tempposy, Float:tempposz;
GetPlayerPos(playerid, oldposx, oldposy, oldposz);
tempposx = (oldposx -x);
tempposy = (oldposy -y);
tempposz = (oldposz -z);
if (((tempposx < radi) && (tempposx > -radi)) && ((tempposy < radi) && (tempposy > -radi)) && ((tempposz < radi) && (tempposz > -radi)))
{
return 1;
}
return 0;
}
GetVehicleName(vehicleid){
new tmp = GetVehicleModel(vehicleid) - 400;
return nazwypojazdow[tmp];}
public ProgressBar() //I prefer not to use OnPlayerUpdate with textdraws
{
for(new playerid; playerid < MAX_PLAYERS; playerid++) //I recommend foreach(Player, playerid)
{
new vehicleid;
if((vehicleid = GetPlayerVehicleID(playerid)) && paliwo[playerid] != INVALID_BAR_ID)
{
GetVehicleHealth(vehicleid, Gas[vehid]);
SetProgressBarValue(paliwo[playerid], Gas[vehid]);
UpdateProgressBar(paliwo[playerid], playerid);
}
}
}
public OnPlayerStateChange(playerid, newstate, oldstate)
{
if(oldstate == PLAYER_STATE_DRIVER)
{
DestroyProgressBar(paliwo[playerid]);
paliwo[playerid] = INVALID_BAR_ID;
}
if(newstate == PLAYER_STATE_DRIVER)
{
paliwo[playerid] = CreateProgressBar(535.00, 110.00, 69.50, 3.20, -8388438, 100.0);
ShowProgressBarForPlayer(playerid, paliwo[playerid]);
}
return 1;
}
b??dy:
Kod:
I:\Documents and Settings\Grzesiu\Pulpit\licznik.pwn(284) : error 017: undefined symbol "vehid"
I:\Documents and Settings\Grzesiu\Pulpit\licznik.pwn(285) : error 017: undefined symbol "vehid"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
2 Errors.
Ostatnio zmieniony przez MG303 2012-04-27, 22:54, w całości zmieniany 1 raz
Wysłany: 2012-04-27, 22:55
MG303
Wiek: 30 Na forum: 6418 dni Posty: 654
Piwa : 2990
Kod: public ProgressBar() //I prefer not to use OnPlayerUpdate with textdraws
{
for(new playerid; playerid < MAX_PLAYERS; playerid++) //I recommend foreach(Player, playerid)
{
new vehicleid;
if((vehicleid = GetPlayerVehicleID(playerid)) && paliwo[playerid] != INVALID_BAR_ID)
{
GetVehicleHealth(vehicleid, Gas[vehicleid]);
SetProgressBarValue(paliwo[playerid], Gas[vehicleid]);
UpdateProgressBar(paliwo[playerid], playerid);
}
}
}
Wysłany: 2012-04-27, 23:12
staleczka12
Wiek: 29 Na forum: 6296 dni Posty: 29
Piwa : 287
Mam takie co?:
Kod: I:\Documents and Settings\Grzesiu\Pulpit\licznik.pwn(284) : warning 213: tag mismatch
Wysłany: 2012-04-27, 23:18
MG303
Wiek: 30 Na forum: 6418 dni Posty: 654
Piwa : 2990
Wysłany: 2012-04-27, 23:33
staleczka12
Wiek: 29 Na forum: 6296 dni Posty: 29
Piwa : 287
GetVehicleHealth(vehicleid, Gas[vehicleid]);
Wysłany: 2012-04-30, 20:16
Elegancik
Wiek: 36 Na forum: 5308 dni Posty: 8
Nick w MP: Tofik
Czesc. Sklejam map?, i wyskakuje mi error :
C:\Users\samsung\Desktop\Stance\SA2.pwn(1016) : error 010: invalid function or declaration
C:\Users\samsung\Desktop\Stance\SA2.pwn(1020) : error 010: invalid function or declaration
C:\Users\samsung\Desktop\Stance\SA2.pwn(2971) : error 012: invalid function call, not a valid address
C:\Users\samsung\Desktop\Stance\SA2.pwn(2972) : error 012: invalid function call, not a valid address
C:\Users\samsung\Desktop\Stance\SA2.pwn(2972) : error 001: expected token: ";", but found ")"
C:\Users\samsung\Desktop\Stance\SA2.pwn(2972) : error 029: invalid expression, assumed zero
C:\Users\samsung\Desktop\Stance\SA2.pwn(2972) : fatal error 107: too many error messages on one line
Compilation gtaonline compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
7 Errors.
Kod z Pierwszych 2 error?w :
FormatFilesString(playerid);
SetPlayerSkin(playerid, dini_Int(strfiles, "Skin"));
new strmsg[64];
switch(reason)
{
case 0: format(strmsg, 64, "# Gracz %s (ID: %d) opu?ci? serwer (Crash).", PlayerName(playerid), playerid);
case 1:
{
SaveData(playerid);
format(strmsg, 64, "# Gracz %s (ID: %d) opu?ci? serwer (Wyszed?).", PlayerName(playerid), playerid);
}
case 2: format(strmsg, 64, "# Gracz %s (ID: %d) opu?ci? serwer (Kick/Ban).", PlayerName(playerid), playerid);
}
DestroyDynamic3DTextLabel(PlayerInfo[playerid][pPlayer3DText]);
KillTimer(PlayerInfo[playerid][UseLoadTimer]);
SendClientMessageToAll(COLOR_GREY, strmsg);
TextDrawHideForPlayer(playerid, PhotoradarTD[playerid]);
KillTimer(PlayerInfo[playerid][pPhotoradarTimer]);
DestroyVehicle(PlayerInfo[playerid][pCar]);
return 1;
}
Reszta :
if(dialogid == 1)
{
if(response)
{
new string[256];
if(strlen(inputtext) <= 3 || strlen(inputtext) >= 32)
return ShowPlayerDialog(playerid, 1, DIALOG_STYLE_PASSWORD, "Rejestracja", "Has?o nie mo?e zawiera? mniej ni? 3 i wi?cej ni? 32 znaki.", "Ponownie", "Zamknij");
djCreateFile(PlayerFile(PlayerName(playerid);
djSetInt(PlayerFile(PlayerName(playerid)), "Konto/Haslo", PlayerPassword(inputtext));
djSetInt(PlayerFile(PlayerName(playerid)), "Postac/Pieniadze", 0);
djSetInt(PlayerFile(PlayerName(playerid)), "Postac/Score", 0);
djSetInt(PlayerFile(PlayerName(playerid)), "Postac/StanVia", 200);
SetPVarInt(playerid, "StanVia", 200);
format(string, sizeof string, "Konto utworzone. Login: {d6bd8b}%s{00aeff}, Has?o: {d6bd8b}%s{00aeff}.", PlayerName(playerid),inputtext);
SendClientMessage(playerid, JasnyNiebieski, string);
SetPVarInt(playerid, "Zalogowany", 1);
}
}
Wysłany: 2012-05-01, 10:26
Cukier
Wiek: 34 Na forum: 5189 dni Posty: 1
Nick w MP: xDDd
Siemka Mam troche error?w i nie wiem co robi? prosz? o POMOC!
Kod: D:\KRYSTI~1\WSZYST~1\SAMP0_~1\GAMEMO~1\pcSdM.pwn(1432) : error 017: undefined symbol "Read"
D:\KRYSTI~1\WSZYST~1\SAMP0_~1\GAMEMO~1\pcSdM.pwn(1436) : warning 217: loose indentation
D:\KRYSTI~1\WSZYST~1\SAMP0_~1\GAMEMO~1\pcSdM.pwn(1436) : error 017: undefined symbol "rGetInt"
D:\KRYSTI~1\WSZYST~1\SAMP0_~1\GAMEMO~1\pcSdM.pwn(1440) : warning 217: loose indentation
D:\KRYSTI~1\WSZYST~1\SAMP0_~1\GAMEMO~1\pcSdM.pwn(1444) : warning 217: loose indentation
D:\KRYSTI~1\WSZYST~1\SAMP0_~1\GAMEMO~1\pcSdM.pwn(1527) : error 017: undefined symbol "rSetInt"
D:\KRYSTI~1\WSZYST~1\SAMP0_~1\GAMEMO~1\pcSdM.pwn(1528) : error 017: undefined symbol "rSetInt"
D:\KRYSTI~1\WSZYST~1\SAMP0_~1\GAMEMO~1\pcSdM.pwn(1529) : error 017: undefined symbol "Save"
D:\KRYSTI~1\WSZYST~1\SAMP0_~1\GAMEMO~1\pcSdM.pwn(5631) : error 017: undefined symbol "rGetStr"
D:\KRYSTI~1\WSZYST~1\SAMP0_~1\GAMEMO~1\pcSdM.pwn(5633) : error 017: undefined symbol "rGetInt"
D:\KRYSTI~1\WSZYST~1\SAMP0_~1\GAMEMO~1\pcSdM.pwn(5634) : error 017: undefined symbol "rGetInt"
D:\KRYSTI~1\WSZYST~1\SAMP0_~1\GAMEMO~1\pcSdM.pwn(5662) : error 017: undefined symbol "rSetStr"
D:\KRYSTI~1\WSZYST~1\SAMP0_~1\GAMEMO~1\pcSdM.pwn(5666) : error 017: undefined symbol "rSetInt"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
10 Errors.
A tutaj te linijki z tymi b?edami:
1432 tu jest linijkia:
Kod: public OnPlayerConnect(playerid)
{
new playername[MAX_PLAYER_NAME];
new tmp[256];
new idx;
new string[128];
GetPlayerName(playerid, playername, MAX_PLAYER_NAME);
format(string, 128, "*** %s (id: %d) do??czy? do serwera.", playername,playerid);
SendClientMessageToAll(COLOR_GREY, string);
Read(playerid);
{
}
if(rGetInt(playerid, "Zarejestrowany"))
{
ShowPlayerDialog(playerid, 1, DIALOG_STYLE_INPUT, "Logowanie", "Witaj.\n\nWpisz swoje has?o, aby si? zalogowa?.", "Zaloguj", "Wyjd?");
}
else
{
ShowPlayerDialog(playerid, 2, DIALOG_STYLE_INPUT, "Rejestracja", "Witaj.\n\nWpisz swoje has?o zabezpieczaj?ce dost?p do twojego konta.\nHas?o musi zawiera? od 5 znak?w do 20.", "Rejestruj", "Wyjd?");
}
proby[playerid] = 0;
A tu te ko?cowe linijki:
Kod: public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
new string[128],
pName[MAX_PLAYER_NAME];
if(dialogid == 1) //LOGOWANIE
{
if(response == 0)
{
Kick(playerid);
} else {
if(strcmp(inputtext, rGetStr(playerid, "HASLO"), false) == 0)
{
SetPlayerScore(playerid, rGetInt(playerid, "Score"));
GivePlayerMoney(playerid, rGetInt(playerid, "Kasa"));
SetPVarInt(playerid, "Zalogowany", 1);
}
else
{
proby[playerid] = 5;
GetPlayerName(playerid, pName, sizeof pName);
format(string, sizeof string, "Nieprawid?owe has?o! Pozosta?a ilo?? pr?b: %d/5", proby[playerid]);
ShowPlayerDialog(playerid, 1, DIALOG_STYLE_INPUT, "Logowanie", string, "Loguj", "Wyjd?");
proby[playerid]--;
if(proby[playerid] == 0)
{
Kick(playerid);
format(string, sizeof string, "Gracz %s zosta? zkickowany, pow?d: b??dne has?o", pName);
SendClientMessageToAll(COLOR_LIGHTRED, string);
}
}
}
}
if(dialogid == 2) //REJESTRACJA
{
if(response == 0)
{
Kick(playerid);
} else {
if(strlen(inputtext) >= 5 && strlen(inputtext) <= 20)
{
rSetStr(playerid, "HASLO", inputtext);
format(string, sizeof(string), "Zarejestrowano!\n\nTwoje has?o: %s", inputtext);
ShowPlayerDialog(playerid, 4, DIALOG_STYLE_MSGBOX, "Rejestracja", string, "Ok", "");
SetPVarInt(playerid, "Zalogowny", 1);
rSetInt(playerid, "Zarejestrowany", 1);
}
else
{
ShowPlayerDialog(playerid, 2, DIALOG_STYLE_INPUT, "Rejestracja", "Twoje has?o musi mi?c przynajmniej 5 znak?w!\nSpr?buj ponownie.", "Rejestruj", "Wyjd?");
}
}
}
return 1;
}
I co tu mo?e by? ?le?:d
Wysłany: 2012-05-01, 11:20
DumpeR
Wiek: 30 Na forum: 5330 dni Posty: 171
Nick w MP: dumpeer
Piwa : 1026
Nie masz takich funkcji:
- Read ,
- GetInt ,
- Save ,
- SetStr ,
- SetInt
Oraz ?le u?o?ony kod. Musisz go u?o?y? lub doda? na g?r? Skryptu/Gamemoda #pragma tabsize 0 . Jednak lepiej uk?ada? kod.
Pozdrawiam.
Wysłany: 2012-05-02, 18:39
B!4CK
Never give UP!
Wiek: 32 Na forum: 5809 dni Posty: 1047
Nick w MP: John
Piwa : 1891
B??dy :
Kod: C:\Documents and Settings\1\Pulpit\honest.pwn.pwn(1689) : error 017: undefined symbol "NICK"
C:\Documents and Settings\1\Pulpit\honest.pwn.pwn(1689) : warning 215: expression has no effect
C:\Documents and Settings\1\Pulpit\honest.pwn.pwn(1689) : error 001: expected token: ";", but found "]"
C:\Documents and Settings\1\Pulpit\honest.pwn.pwn(1689) : error 029: invalid expression, assumed zero
C:\Documents and Settings\1\Pulpit\honest.pwn.pwn(1689) : 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.
Linijka :
Kod: Update3DTextLabelText(NICK[playerid], KOLOR_CZERWONY, NickWys(playerid));
Podpis
Cześć
[you]
!
Projekt, który poruszy scenę platformy SA:MP!
Wysłany: 2012-05-02, 18:50
Quis
Wszechwiedzący
Wiek: 31 Na forum: 5146 dni Posty: 464
Nick w MP: Quis
Piwa : 1110
Kompilator nie wie co to "NICK".
Co do reszty, poka? dwie linijki nad t? co poda?e?.
Tagi: błędy :: przy :: kompilacji :: rozwiązanie
Anonymous
Na forum: 245 dni
Posty: 1
Anonymous Koniecznie zajrzyj na: