mitza505
Membru-
Posts
107 -
Joined
-
Last visited
Never
Content Type
Profiles
Forums
News
Documentation
Everything posted by mitza505
-
[pawn]C:\Users\Best-Life\Desktop\carownership.pwn(809) : error 017: undefined symbol "pLevel" C:\Users\Best-Life\Desktop\carownership.pwn(814) : error 017: undefined symbol "pPcarkey1" C:\Users\Best-Life\Desktop\carownership.pwn(824) : error 017: undefined symbol "pPcarkey1" C:\Users\Best-Life\Desktop\carownership.pwn(824) : error 017: undefined symbol "pPcarkey1" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors.[/pawn] 814 [pawn]if(PlayerInfo[playerid][pPcarkey1] == 999) { }[/pawn] 824 [pawn] if(PlayerInfo[playerid][pPcarkey1] == 999) { PlayerInfo[playerid][pPcarkey1] = idcar; }[/pawn]
-
deci cand ma duc sa dau /v buy imi zice ca am deja 3 masini (neavand nici o masina[pawn] else if(strcmp(x_nr,"buy",true) == 0) { if(IsAnOwnableCar(idcar)) { if(PlayerInfo[playerid][pPcarkey] != -1 && PlayerInfo[playerid][pPcarkey2] != -1 && PlayerInfo[playerid][pPcarkey3] != -1) { SendClientMessage(playerid, COLOR_GREY, " Ai deja 3 masini!!"); return 1; } if(CarInfo[idcar][cOwned]==1) { SendClientMessage(playerid, COLOR_GREY, "Someone already owns this car"); return 1; } if(GetPlayerMoney(playerid) >= CarInfo[idcar][cValue]) { if(PlayerInfo[playerid][pPcarkey] == -1) { PlayerInfo[playerid][pPcarkey] = idcar; } else if(PlayerInfo[playerid][pPcarkey2] == -1) { PlayerInfo[playerid][pPcarkey2] = idcar; } else if(PlayerInfo[playerid][pPcarkey3] == -1) { PlayerInfo[playerid][pPcarkey3] = idcar; } else { return 1; } CarInfo[idcar][cOwned] = 1; GetPlayerName(playerid, sendername, sizeof(sendername)); strmid(CarInfo[idcar][cOwner], sendername, 0, strlen(sendername), 999); GivePlayerMoney(playerid,-CarInfo[idcar][cValue]); PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0); GameTextForPlayer(playerid, "~w~Felicitari~n~Nu uita sa o parchezi cu /v park!", 5000, 3); SendClientMessage(playerid, COLOR_GRAD2, "Felicitari ti-ai cumparat o masina noua!"); TogglePlayerControllable(playerid, 1); OnPropUpdate(); SavePlayerData(playerid); return 1; } else { SendClientMessage(playerid, COLOR_GREY, " You don't have enough cash with you ! "); return 1; } } }[/pawn]
-
am gasit eo un bug cand dai /tigari 1,2,3 sau 4 nu merge
-
T.C. am rezolvat
-
am obesrvat ca am sters cv in plus si am ajuns la 3 warninguri [pawn]C:\Users\Best-Life\Desktop\carownership.pwn(638) : warning 204: symbol is assigned a value that is never used: "thiscar" C:\Users\Best-Life\Desktop\carownership.pwn(747) : warning 204: symbol is assigned a value that is never used: "thiscar" C:\Users\Best-Life\Desktop\carownership.pwn(850) : warning 225: unreachable code Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 3 Warnings. [/pawn] 638 [pawn] new thiscar = CreateVehicle(CarInfo[carid][cModel],CarInfo[carid][cLocationx],CarInfo[carid][cLocationy],CarInfo[carid][cLocationz]+1.0,CarInfo[carid][cAngle],CarInfo[carid][cColorOne],CarInfo[carid][cColorTwo],60000);[/pawn] 747 [pawn] new thiscar = CreateVehicle(CarInfo[vehid][cModel],CarInfo[vehid][cLocationx],CarInfo[vehid][cLocationy],CarInfo[vehid][cLocationz]+1.0,CarInfo[vehid][cAngle],CarInfo[vehid][cColorOne],CarInfo[vehid][cColorTwo],60000);[/pawn] 850 [pawn] if(CarInfo[idcar][cOwned]==1)[/pawn]
-
The Errors lines these don't are the Effect
-
The Errors lines aici sunt alea care nu au effect
-
da daca vrei sa ia doar cat e necesar .nu tot rp
-
Sa zicem ca am 40 rp.. si ptr buylevle imi trebuie 21 . dau /buylevel numai ca mi le ia pe toate (nu numai alea 21 ) Comanda /buylevel
-
am rezolvat .. nu am mai resetat am schimbat cfg. cu unu mia vechi ms oricum , scz de deranj
-
salut Un admin. a modificat pretu la aproape toate casele .. cum fac sa dau restart la system ??? (nu e GF)
-
AM vazut aici pe forum (nu mai s1tiu unde ) [dar am vazut] cum sa faci un meniu la bar .. cu dialog etc.. please help me (era cv cu wiki)
-
ptra multe filme cu OZN'ur incearca cu AttachObjectToPlayer
-
puteai sa dai un search pe gugal http://solidfiles.com/d/cMKx/
-
pot sa ma loghez cu orice pass asta e public [pawn]public OnPlayerLogin(playerid,password[]) { new tmp2[256]; new string2[64]; new playername2[MAX_PLAYER_NAME]; new playernamesplit[3][MAX_PLAYER_NAME]; GetPlayerName(playerid, playername2, sizeof(playername2)); split(playername2, playernamesplit, '_'); format(string2, sizeof(string2), "%s.ini", playername2); new File: UserFile = fopen(string2, io_read); if ( UserFile ) { new PassData[256]; new keytmp[256], valtmp[256]; fread( UserFile , PassData , sizeof( PassData ) ); keytmp = ini_GetKey( PassData ); if( strcmp( keytmp , "Key" , true ) == 0 ) { valtmp = ini_GetValue( PassData ); strmid(PlayerInfo[playerid][pKey], valtmp, 0, strlen(valtmp)-1, 255); } if(strcmp(PlayerInfo[playerid][pKey],password, true ) == 0 ) { new key[ 256 ] , val[ 256 ]; new Data[ 256 ]; while ( fread( UserFile , Data , sizeof( Data ) ) ) { key = ini_GetKey( Data ); if( strcmp( key , "Level" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pLevel] = strval( val ); } if( strcmp( key , "AdminLevel" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAdmin] = strval( val ); } if( strcmp( key , "HelperLevel" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pHelper] = strval( val ); } if( strcmp( key , "DonateRank" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pDonateRank] = strval( val ); } if( strcmp( key , "UpgradePoints" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][gPupgrade] = strval( val ); } if( strcmp( key , "ConnectedTime" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pConnectTime] = strval( val ); } if( strcmp( key , "NFS CLub" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pNfs] = strval( val ); } if( strcmp( key , "Registered" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pReg] = strval( val ); } if( strcmp( key , "Sex" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pSex] = strval( val ); } if( strcmp( key , "Age" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid] = strval( val ); } if( strcmp( key , "Origin" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pOrigin] = strval( val ); } if( strcmp( key , "CK" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCK] = strval( val ); } if( strcmp( key , "Muted" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMuted] = strval( val ); } if( strcmp( key , "Respect" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pExp] = strval( val ); } if( strcmp( key , "Money" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCash] = strval( val ); } if( strcmp( key , "Bank" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAccount] = strval( val ); } if( strcmp( key , "Crimes" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCrimes] = strval( val ); } if( strcmp( key , "Kills" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pKills] = strval( val ); } if( strcmp( key , "Deaths" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pDeaths] = strval( val ); } if( strcmp( key , "Arrested" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pArrested] = strval( val ); } if( strcmp( key , "WantedDeaths" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pWantedDeaths] = strval( val ); } if( strcmp( key , "Phonebook" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPhoneBook] = strval( val ); } if( strcmp( key , "LottoNr" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pLottoNr] = strval( val ); } if( strcmp( key , "Fishes" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pFishes] = strval( val ); } if( strcmp( key , "BiggestFish" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pBiggestFish] = strval( val ); } if( strcmp( key , "Job" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pJob] = strval( val ); } if( strcmp( key , "Paycheck" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPayCheck] = strval( val ); } if( strcmp( key , "HeadValue" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pHeadValue] = strval( val ); } if( strcmp( key , "Jailed" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pJailed] = strval( val ); } if( strcmp( key , "JailTime" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pJailTime] = strval( val ); } if( strcmp( key , "Materials" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMats] = strval( val ); } if( strcmp( key , "Drugs" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pDrugs] = strval( val ); } if( strcmp( key , "Leader" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pLeader] = strval( val ); } if( strcmp( key , "Member" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMember] = strval( val ); } if( strcmp( key , "FMember" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pFMember] = strval( val ); } if( strcmp( key , "Rank" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pRank] = strval( val ); } if( strcmp( key , "Char" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pChar] = strval( val ); } if( strcmp( key , "ContractTime" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pContractTime] = strval( val ); } if( strcmp( key , "DetSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pDetSkill] = strval( val ); } if( strcmp( key , "SexSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pSexSkill] = strval( val ); } if( strcmp( key , "BoxSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pBoxSkill] = strval( val ); } if( strcmp( key , "LawSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pLawSkill] = strval( val ); } if( strcmp( key , "MechSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMechSkill] = strval( val ); } if( strcmp( key , "JackSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pJackSkill] = strval( val ); } if( strcmp( key , "CarSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCarSkill] = strval( val ); } if( strcmp( key , "NewsSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pNewsSkill] = strval( val ); } if( strcmp( key , "DrugsSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pDrugsSkill] = strval( val ); } if( strcmp( key , "CookSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCookSkill] = strval( val ); } if( strcmp( key , "FishSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pFishSkill] = strval( val ); } if( strcmp( key , "pSHealth" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pSHealth] = floatstr( val ); } if( strcmp( key , "pHealth" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pHealth] = floatstr( val ); } if( strcmp( key , "Int" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pInt] = strval( val ); } if( strcmp( key , "Local" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pLocal] = strval( val ); } if( strcmp( key , "Team" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pTeam] = strval( val ); } if( strcmp( key , "Model" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pModel] = strval( val ); } if( strcmp( key , "PhoneNr" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPnumber] = strval( val ); } if( strcmp( key , "House" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPhousekey] = strval( val ); } if( strcmp( key , "Bizz" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPbiskey] = strval( val ); } if( strcmp( key , "Pos_x" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPos_x] = floatstr( val ); } if( strcmp( key , "Pos_y" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPos_y] = floatstr( val ); } if( strcmp( key , "Pos_z" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPos_z] = floatstr( val ); } if( strcmp( key , "CarLic" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCarLic] = strval( val ); } if( strcmp( key , "FlyLic" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pFlyLic] = strval( val ); } if( strcmp( key , "BoatLic" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pBoatLic] = strval( val ); } if( strcmp( key , "FishLic" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pFishLic] = strval( val ); } if( strcmp( key , "GunLic" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pGunLic] = strval( val ); } if( strcmp( key , "Gun1" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pGun1] = strval( val ); } if( strcmp( key , "Gun2" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pGun2] = strval( val ); } if( strcmp( key , "Gun3" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pGun3] = strval( val ); } if( strcmp( key , "Gun4" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pGun4] = strval( val ); } if( strcmp( key , "Ammo1" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAmmo1] = strval( val ); } if( strcmp( key , "Ammo2" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAmmo2] = strval( val ); } if( strcmp( key , "Ammo3" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAmmo3] = strval( val ); } if( strcmp( key , "Ammo4" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAmmo4] = strval( val ); } if( strcmp( key , "CarTime" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCarTime] = strval( val ); } if( strcmp( key , "PayDay" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPayDay] = strval( val ); } if( strcmp( key , "PayDayHad" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPayDayHad] = strval( val ); } if( strcmp( key , "CDPlayer" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCDPlayer] = strval( val ); } if( strcmp( key , "Wins" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pWins] = strval( val ); } if( strcmp( key , "Loses" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pLoses] = strval( val ); } if( strcmp( key , "AlcoholPerk" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAlcoholPerk] = strval( val ); } if( strcmp( key , "DrugPerk" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pDrugPerk] = strval( val ); } if( strcmp( key , "MiserPerk" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMiserPerk] = strval( val ); } if( strcmp( key , "PainPerk" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPainPerk] = strval( val ); } if( strcmp( key , "TraderPerk" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pTraderPerk] = strval( val ); } if( strcmp( key , "Warnings" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pWarns] = strval( val ); } if( strcmp( key , "Tutorial" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pTut] = strval( val ); } if( strcmp( key , "Mission" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMissionNr] = strval( val ); } if( strcmp( key , "Warnings" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pWarns] = strval( val ); } if( strcmp( key , "Adjustable" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAdjustable] = strval( val ); } if( strcmp( key , "Fuel" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pFuel] = strval( val ); } if( strcmp( key , "Married" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMarried] = strval( val ); } if( strcmp( key , "MarriedTo" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][pMarriedTo], val, 0, strlen(val)-1, 255); } if( strcmp( key , "Crack" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCrack] = strval( val ); } if( strcmp( key , "Passport" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPassport] = strvalEx( val ); } if( strcmp( key , "CabinetTime" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCabinetTime] = strval( val ); } }//end while fclose(UserFile);//close the file after everything has been read in the while } else { new loginstring[128]; new loginname[64]; GetPlayerName(playerid,loginname,sizeof(loginname)); format(loginstring,sizeof(loginstring),"Wrong Password\nPlease insert the correct password:",loginname); ShowPlayerDialog(playerid,12347,DIALOG_STYLE_INPUT,"Login",loginstring,"Login","Exit"); fclose(UserFile); gPlayerLogTries[playerid] += 1; if(gPlayerLogTries[playerid] == 4) { Ban(playerid); } return 1; } PlayerInfo[playerid][pAdjustable] = 0; ResetPlayerMoney(playerid); ConsumingMoney[playerid] = 1; GivePlayerMoney(playerid,PlayerInfo[playerid][pCash]); CurrentMoney[playerid] = PlayerInfo[playerid][pCash]; if(PlayerInfo[playerid][pReg] == 0) { PlayerInfo[playerid][pLevel] = 2; PlayerInfo[playerid][pSHealth] = 0.0; PlayerInfo[playerid][pHealth] = 50.0; PlayerInfo[playerid][pPos_x] = 2246.6; PlayerInfo[playerid][pPos_y] = -1161.9; PlayerInfo[playerid][pPos_z] = 1029.7; PlayerInfo[playerid][pInt] = 15; PlayerInfo[playerid][pLocal] = 255; PlayerInfo[playerid][pTeam] = 3; PlayerInfo[playerid][pModel] = 60; new randphone = 1000 + random(8999);//minimum 1000 max 9999 //giving one at the start PlayerInfo[playerid][pPnumber] = randphone; PlayerInfo[playerid][pPhousekey] = 255; PlayerInfo[playerid][pPbiskey] = 255; PlayerInfo[playerid][pAccount] = 200000; PlayerInfo[playerid][pReg] = 1; GivePlayerMoney(playerid, 200000); } if(PlayerInfo[playerid][pLevel] == -999) //autoban { Ban(playerid); } else if(PlayerInfo[playerid][pCK] > 0) { Kick(playerid); } format(string2, sizeof(string2), "* Welcome %s",playername2); SendClientMessage(playerid, COLOR_WHITE,string2); printf("%s has logged in.",playername2); if (PlayerInfo[playerid][pDonateRank] > 0) { SendClientMessage(playerid, COLOR_WHITE,"* You are a Premium Account user."); } if (PlayerInfo[playerid][pAdmin] > 0) { format(string2, sizeof(string2), "* You are logged in as a Level %d Admin.",PlayerInfo[playerid][pAdmin]); SendClientMessage(playerid, COLOR_WHITE,string2); } if (PlayerInfo[playerid][pHelper] > 0) { format(string2, sizeof(string2), "* You are logged in as a Level %d Helper.",PlayerInfo[playerid][pHelper]); SendClientMessage(playerid, COLOR_WHITE,string2); } SetSpawnInfo(playerid, PlayerInfo[playerid][pTeam], PlayerInfo[playerid][pModel], PlayerInfo[playerid][pPos_x], PlayerInfo[playerid][pPos_y], PlayerInfo[playerid][pPos_z], 1.0, -1, -1, -1, -1, -1, -1); if(gTeam[playerid] == 0) { gTeam[playerid] = 3; } else { gTeam[playerid] = PlayerInfo[playerid][pTeam]; } gPlayerLogged[playerid] = 1; SpawnPlayer(playerid); format(tmp2, sizeof(tmp2), "~w~Welcome ~n~~r~~h~ %s", playername2); DateProp(playerid); GameTextForPlayer(playerid, tmp2, 300, 1); SendClientMessage(playerid, COLOR_YELLOW, motd); if(PlayerInfo[playerid][pFMember] < 255) { format(tmp2, sizeof(tmp2), "Family MOTD: %s.", FamilyInfo[PlayerInfo[playerid][pFMember]][FamilyMOTD]); SendClientMessage(playerid, COLOR_YELLOW, tmp2); } } return 1; } stock ini_GetKey( line[] ) { new keyRes[256]; keyRes[0] = 0; if ( strfind( line , "=" , true ) == -1 ) return keyRes; strmid( keyRes , line , 0 , strfind( line , "=" , true ) , sizeof( keyRes) ); return keyRes; } stock IsVehicleOccupied(vehicleid) { for(new i=0;i<MAX_PLAYERS;i++) { if(IsPlayerInVehicle(i,vehicleid)) return 1; } return 0; } stock ini_GetValue( line[] ) { new valRes[256]; valRes[0]=0; if ( strfind( line , "=" , true ) == -1 ) return valRes; strmid( valRes , line , strfind( line , "=" , true )+1 , strlen( line ) , sizeof( valRes ) ); return valRes; }[/pawn]
-
#pragma tabsize 0
-
mie imi zice ca nu poate sa gaseasca fisieru background.txd .. cand dau load map. DC?
-
[pawn] if(strcmp(cmd, "/setstat", true) == 0) { if(IsPlayerConnected(playerid)) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD1, "USAGE: /setstat [playerid/PartOfName] [statcode] [amount]"); SendClientMessage(playerid, COLOR_GRAD4, "|1 Level |2 SpawnHealth |3 UpgradePoints |4 Model "); SendClientMessage(playerid, COLOR_GRAD3, "|5 BankAccount |6 PhoneNumber |7 RespectPoints "); SendClientMessage(playerid, COLOR_GRAD2, "|8 HouseKey |9 BizKey |10 DonateRank |11 FMember"); SendClientMessage(playerid, COLOR_GRAD2, "|12 Det |13 Lawyer |14 Fixer |15 News |16 Jack |17 Drug |18 Sex |19 Box |20 PassKey"); return 1; } /*new playa; GetPlayerName(playa, sendername, sizeof(sendername)); playa = ReturnUser(tmp);*/ giveplayerid = ReturnUser(tmp); new playur; playur = strval(tmp); if(IsPlayerConnected(giveplayerid)) { if(giveplayerid != INVALID_PLAYER_ID) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD1, "USAGE: /setstat [playerid/PartOfName] [statcode] [amount]"); SendClientMessage(playerid, COLOR_GRAD4, "|1 Level |2 SpawnHealth |3 UpgradePoints |4 Model "); SendClientMessage(playerid, COLOR_GRAD3, "|5 BankAccount |6 PhoneNumber |7 RespectPoints "); SendClientMessage(playerid, COLOR_GRAD2, "|8 HouseKey |9 BizKey |10 DonateRank"); SendClientMessage(playerid, COLOR_GRAD2, "|12 Det |13 Lawyer |14 Fixer |15 News |16 Jack |17 Drug |18 Sex |19 Box"); return 1; } new stat; stat = strval(tmp); tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD1, "USAGE: /setstat [playerid/PartOfName] [statcode] [amount]"); SendClientMessage(playerid, COLOR_GRAD4, "|1 Level |2 SpawnHealth |3 UpgradePoints |4 Model "); SendClientMessage(playerid, COLOR_GRAD3, "|5 BankAccount |6 PhoneNumber |7 RespectPoints "); SendClientMessage(playerid, COLOR_GRAD2, "|8 HouseKey |9 BizKey |10 DonateRank"); SendClientMessage(playerid, COLOR_GRAD2, "|12 Det |13 Lawyer |14 Fixer |15 News |16 Jack |17 Drug |18 Sex |19 Box"); return 1; } new amount; amount = strval(tmp); if (PlayerInfo[playerid][pAdmin] >= 1337) { switch (stat) { case 1: { PlayerInfo[giveplayerid][pLevel] = amount; format(string, sizeof(string), " The Player Was Set To %d Upgrade Points", amount); GetPlayerName(playur, giveplayer, sizeof(giveplayer)); GetPlayerName(playerid, sendername, sizeof(sendername)); format(string, 256, "News: %s has set %s's level to %d.", sendername,giveplayer,amount); ABroadCast(COLOR_YELLOW,string,1); } case 2: { PlayerInfo[giveplayerid][pSHealth] = amount; format(string, sizeof(string), " The Player Was Set To %d Spawn Health Points", amount); GetPlayerName(playur, giveplayer, sizeof(giveplayer)); GetPlayerName(playerid, sendername, sizeof(sendername)); format(string, 256, "News: %s has set %s's spawn health to %d.", sendername,giveplayer,amount); ABroadCast(COLOR_YELLOW,string,1); } case 3: { PlayerInfo[giveplayerid][gPupgrade] = amount; format(string, sizeof(string), " The Player Was Set To %d Upgrade Points", amount); GetPlayerName(playur, giveplayer, sizeof(giveplayer)); GetPlayerName(playerid, sendername, sizeof(sendername)); format(string, 256, "News: %s has set %s's upgrade points to %d.", sendername,giveplayer,amount); ABroadCast(COLOR_YELLOW,string,1); } case 4: { PlayerInfo[giveplayerid][pModel] = amount; format(string, sizeof(string), " The Player Was Set To Model %d", amount); GetPlayerName(playur, giveplayer, sizeof(giveplayer)); GetPlayerName(playerid, sendername, sizeof(sendername)); format(string, 256, "News: %s has set %s's model to %d.", sendername,giveplayer,amount); ABroadCast(COLOR_YELLOW,string,1); } case 5: { PlayerInfo[giveplayerid][pAccount] = amount; format(string, sizeof(string), " The Player Account Was Set To $%d", amount); GetPlayerName(playur, giveplayer, sizeof(giveplayer)); GetPlayerName(playerid, sendername, sizeof(sendername)); format(string, 256, "News: %s has set %s's account to %d.", sendername,giveplayer,amount); ABroadCast(COLOR_YELLOW,string,1); } case 6: { PlayerInfo[giveplayerid][pPnumber] = amount; format(string, sizeof(string), " The Player Phone Number Was Set To %d", amount); GetPlayerName(playur, giveplayer, sizeof(giveplayer)); GetPlayerName(playerid, sendername, sizeof(sendername)); format(string, 256, "News: %s has set %s's phone number to %d.", sendername,giveplayer,amount); ABroadCast(COLOR_YELLOW,string,1); } case 7: { PlayerInfo[giveplayerid][pExp] = amount; format(string, sizeof(string), " The Player Respect Points Were Set To %d", amount); GetPlayerName(playur, giveplayer, sizeof(giveplayer)); GetPlayerName(playerid, sendername, sizeof(sendername)); format(string, 256, "News: %s has set %s's respect points to %d.", sendername,giveplayer,amount); ABroadCast(COLOR_YELLOW,string,1); } case 8: { PlayerInfo[giveplayerid][pPhousekey] = amount; format(string, sizeof(string), " The Player House Key Was Set To %d", amount); GetPlayerName(playur, giveplayer, sizeof(giveplayer)); GetPlayerName(playerid, sendername, sizeof(sendername)); format(string, 256, "News: %s has set %s's house key to %d.", sendername,giveplayer,amount); ABroadCast(COLOR_YELLOW,string,1); } case 9: { PlayerInfo[giveplayerid][pPbiskey] = amount; format(string, sizeof(string), " The Player Business Key Was Set To %d", amount); GetPlayerName(playur, giveplayer, sizeof(giveplayer)); GetPlayerName(playerid, sendername, sizeof(sendername)); format(string, 256, "News: %s has set %s's business key to %d.", sendername,giveplayer,amount); ABroadCast(COLOR_YELLOW,string,1); } case 10: { PlayerInfo[giveplayerid][pDonateRank] = amount; format(string, sizeof(string), " The Player DonateRank Was Set To %d", amount); GetPlayerName(playur, giveplayer, sizeof(giveplayer)); GetPlayerName(playerid, sendername, sizeof(sendername)); format(string, 256, "News: %s has set %s's donation rank to %d.", sendername,giveplayer,amount); ABroadCast(COLOR_YELLOW,string,1); } case 11: { PlayerInfo[giveplayerid][pFMember] = amount; format(string, sizeof(string), " The Player Family Member Was Set To %d", amount); GetPlayerName(playur, giveplayer, sizeof(giveplayer)); GetPlayerName(playerid, sendername, sizeof(sendername)); format(string, 256, "News: %s has set %s's family member to %d.", sendername,giveplayer,amount); ABroadCast(COLOR_YELLOW,string,1); } /* case 12: { PlayerInfo[giveplayerid][pDetSkill] = amount; format(string, sizeof(string), " The Player Detective Skill Set To %d", amount); GetPlayerName(playur, giveplayer, sizeof(giveplayer)); GetPlayerName(playerid, sendername, sizeof(sendername)); format(string, 256, "News: %s has set %s's detective skill to %d.", sendername,giveplayer,amount); ABroadCast(COLOR_YELLOW,string,1); }*/ case 13: { PlayerInfo[giveplayerid][pLawSkill] = amount; format(string, sizeof(string), " The Player Lawyer Skill Set To %d", amount); GetPlayerName(playur, giveplayer, sizeof(giveplayer)); GetPlayerName(playerid, sendername, sizeof(sendername)); format(string, 256, "News: %s has set %s's lawyer job skill to %d.", sendername,giveplayer,amount); ABroadCast(COLOR_YELLOW,string,1); } case 14: { PlayerInfo[giveplayerid][pMechSkill] = amount; format(string, sizeof(string), " The Player Car Mechanic Skill Set To %d", amount); GetPlayerName(playur, giveplayer, sizeof(giveplayer)); GetPlayerName(playerid, sendername, sizeof(sendername)); format(string, 256, "News: %s has set %s's car mechanic job skill to %d.", sendername,giveplayer,amount); ABroadCast(COLOR_YELLOW,string,1); } case 15: { PlayerInfo[giveplayerid][pNewsSkill] = amount; format(string, sizeof(string), " The Player News Reporter Skill Set To %d", amount); GetPlayerName(playur, giveplayer, sizeof(giveplayer)); GetPlayerName(playerid, sendername, sizeof(sendername)); format(string, 256, "News: %s has set %s's NR job skill to %d.", sendername,giveplayer,amount); ABroadCast(COLOR_YELLOW,string,1); } case 16: { PlayerInfo[giveplayerid][pJackSkill] = amount; format(string, sizeof(string), " The Player Car Jacker Skill Set To %d", amount); GetPlayerName(playur, giveplayer, sizeof(giveplayer)); GetPlayerName(playerid, sendername, sizeof(sendername)); format(string, 256, "News: %s has set %s's car jacker job skill to %d.", sendername,giveplayer,amount); ABroadCast(COLOR_YELLOW,string,1); } case 17: { PlayerInfo[giveplayerid][pDrugsSkill] = amount; format(string, sizeof(string), " The Player Drug Dealer Skill Set To %d", amount); GetPlayerName(playur, giveplayer, sizeof(giveplayer)); GetPlayerName(playerid, sendername, sizeof(sendername)); format(string, 256, "News: %s has set %s's drug dealer job skill to %d.", sendername,giveplayer,amount); ABroadCast(COLOR_YELLOW,string,1); } case 18: { PlayerInfo[giveplayerid][pSexSkill] = amount; format(string, sizeof(string), " The Player Sex Skill Set To %d", amount); GetPlayerName(playur, giveplayer, sizeof(giveplayer)); GetPlayerName(playerid, sendername, sizeof(sendername)); format(string, 256, "News: %s has set %s's sex job skill to %d.", sendername,giveplayer,amount); ABroadCast(COLOR_YELLOW,string,1); } case 19: { PlayerInfo[giveplayerid][pBoxSkill] = amount; format(string, sizeof(string), " The Player Box Skill Set To %d", amount); GetPlayerName(playur, giveplayer, sizeof(giveplayer)); GetPlayerName(playerid, sendername, sizeof(sendername)); format(string, 256, "News: %s has set %s's boxing job skill to %d.", sendername,giveplayer,amount); ABroadCast(COLOR_YELLOW,string,1); } case 20: { PlayerInfo[giveplayerid][pBoxSkill] = amount; format(string, sizeof(string), " The Player Taxi Skill Set To %d", amount); GetPlayerName(playur, giveplayer, sizeof(giveplayer)); GetPlayerName(playerid, sendername, sizeof(sendername)); format(string, 256, "News: %s has set %s's Taxi job skill to %d.", sendername,giveplayer,amount); ABroadCast(COLOR_YELLOW,string,1); } case 77: { PlayerInfo[giveplayerid][pJob] = amount; format(string, sizeof(string), " The Player Job Set To %d", amount); GetPlayerName(playur, giveplayer, sizeof(giveplayer)); GetPlayerName(playerid, sendername, sizeof(sendername)); format(string, 256, "News: %s has set %s's job to %d.", sendername,giveplayer,amount); ABroadCast(COLOR_YELLOW,string,1); } case 88: { PlayerInfo[giveplayerid][pContractTime] = amount; format(string, sizeof(string), " The Player Job Contract Time Set To %d", amount); GetPlayerName(playur, giveplayer, sizeof(giveplayer)); GetPlayerName(playerid, sendername, sizeof(sendername)); format(string, 256, "News: %s has set %s's contract time to %d.", sendername,giveplayer,amount); ABroadCast(COLOR_YELLOW,string,1); } case 99: { PlayerInfo[giveplayerid][pConnectTime] = amount; format(string, sizeof(string), " The Player playing hours Set To %d", amount); GetPlayerName(playur, giveplayer, sizeof(giveplayer)); GetPlayerName(playerid, sendername, sizeof(sendername)); format(string, 256, "News: %s has set %s's playing hours to %d.", sendername,giveplayer,amount); ABroadCast(COLOR_YELLOW,string,1); } default: { format(string, sizeof(string), " Invalid Stat Code", amount); } } } else { SendClientMessage(playerid, COLOR_GRAD1, " you are not authorized to use that command!"); } }//not valid id }//not connected } return 1; }[/pawn] pune aceasta comanda.
-
la mn zice amandoua da il gasesc undeva pe un camp ca nu stiu cum sa fac ca am GF
-
[pawn]C:\Users\Cbu-Samp\Desktop\CarOnwerShip\filterscripts\carownership.pwn(272) : error 072: "sizeof" operator is invalid on "function" symbols C:\Users\Cbu-Samp\Desktop\CarOnwerShip\filterscripts\carownership.pwn(274) : error 028: invalid subscript (not an array or too many subscripts): "CarInfo" C:\Users\Cbu-Samp\Desktop\CarOnwerShip\filterscripts\carownership.pwn(274) : warning 215: expression has no effect C:\Users\Cbu-Samp\Desktop\CarOnwerShip\filterscripts\carownership.pwn(274) : error 001: expected token: ";", but found "]" C:\Users\Cbu-Samp\Desktop\CarOnwerShip\filterscripts\carownership.pwn(274) : error 029: invalid expression, assumed zero C:\Users\Cbu-Samp\Desktop\CarOnwerShip\filterscripts\carownership.pwn(274) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 5 Errors. [/pawn] for(new h = carsonserver; h < sizeof(CarInfo); h++) [pawn] AddStaticVehicleEx(CarInfo[h][cModel],CarInfo[h][cLocationx],CarInfo[h][cLocationy],CarInfo[h][cLocationz]+1.0,CarInfo[h][cAngle],CarInfo[h][cColorOne],CarInfo[h][cColorTwo],60000);[/pawn]
-
folosesti luxspeedometer???daca da scoateal acceasi problema am avuto si eo . nu mi se vedea ora