AgA
Membru-
Posts
13 -
Joined
-
Last visited
Never
AgA's Achievements
-
Am incercat dar tot nu merge.
-
Am incercat cu toate gradele de admin si imi zice aceelasi lucru.
-
Salut, Am niste probleme cu 2 comenzi dintr-un Gamemode. Problema este ca una din ele nu merge iar cealalta probabil ii buguita sau ceva. Prima comanda: [pawn]if(strcmp(cmd, "/addveh", true) == 0) { if(IsPlayerConnected(playerid)) { if(PlayerInfo[playerid][pAccesaddveh] >= 1 && PlayerInfo[playerid][pAdmin] >= 8) { if(!IsPlayerInAnyVehicle(playerid)) { SendClientMessage(playerid,COLOR_GREY,"Trebuie sa nu fii in nici un vehicul !"); return 1; } tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD2, "Command: /addveh [carid] [color1] [color2] [Price]"); return 1; } new car; car = strval(tmp); if(car < 400 || car > 611) { SendClientMessage(playerid, COLOR_GREY, "Id Intre 400 si 611!"); return 1; } tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD2, "Command: /addveh [carid] [color1] [color2] [Price]"); return 1; } new color1; color1 = strval(tmp); if(color1 < 0 || color1 > 300) { SendClientMessage(playerid, COLOR_GREY, "Culori intre 0 si 300!"); return 1; } tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD2, "Command: /addveh [carid] [color1] [color2] [Price]"); return 1; } new color2; color2 = strval(tmp); if(color2 < 0 || color2 > 300) { SendClientMessage(playerid, COLOR_GREY, "Culori intre 0 si 300!"); return 1; } tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD2, "Command: /addveh [carid] [color1] [color2] [Price]"); return 1; } new price; price = strval(tmp); if(price < 1 ) { SendClientMessage(playerid, COLOR_GREY, "Price Minim 1$"); return 1; } new Float:X,Float:Y,Float:Z,Float:Q; GetVehiclePos(GetPlayerVehicleID(playerid), X,Y,Z); GetVehicleZAngle(GetPlayerVehicleID(playerid),Q); CAR_PROD ++; AutoInfo[CAR_PROD][aStats]=0; AutoInfo[CAR_PROD][aModel]=car; AutoInfo[CAR_PROD][aAutoX]=X; AutoInfo[CAR_PROD][aAutoY]=Y; AutoInfo[CAR_PROD][aAutoZ]=Z; AutoInfo[CAR_PROD][aAutoAngle]=Q; AutoInfo[CAR_PROD][aColor1]=color1; AutoInfo[CAR_PROD][aColor2]=color2; AutoInfo[CAR_PROD][aPrice]=price; AutoInfo[CAR_PROD][aKey]=3; AutoInfo[CAR_PROD][a0]=0; AutoInfo[CAR_PROD][a1]=0; AutoInfo[CAR_PROD][a2]=0; AutoInfo[CAR_PROD][a3]=0; AutoInfo[CAR_PROD][a4]=0; AutoInfo[CAR_PROD][a5]=0; AutoInfo[CAR_PROD][a6]=0; AutoInfo[CAR_PROD][a7]=0; AutoInfo[CAR_PROD][a8]=0; AutoInfo[CAR_PROD][a9]=0; AutoInfo[CAR_PROD][a10]=0; AutoInfo[CAR_PROD][a11]=0; AutoInfo[CAR_PROD][a12]=0; AutoInfo[CAR_PROD][a13]=0; AutoInfo[CAR_PROD][aPaintJob]=0; strmid(AutoInfo[CAR_PROD][aOwner], "The State", 0, 9, 999); SaveStuff(); SaveAuto(); format(string, sizeof(string), "* Masina personala %d va fi bagata la urmatorul Restart !.", CAR_PROD); SendClientMessage(playerid, COLOR_GREY, string); } return 1; } return 1; }[/pawn] Cand o tastez nu imi zice nimic. Am incercat sa ma loghez cu RCON, tot nu merge. A doua comanda este cea de lider. [pawn]if(strcmp(cmd, "/makeleader", true) == 0) { if(IsPlayerConnected(playerid)) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_CMD, "[iNFO] {FFFFFF} /makeleader [playerid/PartOfName] [Number(1-21)]"); return 1; } new para1; new level; para1 = ReturnUser(tmp); tmp = strtok(cmdtext, idx); level = strval(tmp); if(level > 21 || level < 0) { SendClientMessage(playerid, COLOR_GREY, "*Intre 0 si 21!"); return 1; } if (PlayerInfo[playerid][pAccesLeader] >= 1 && PlayerInfo[playerid][pAdmin] >= 8) { if(IsPlayerConnected(para1)) { if(para1 != INVALID_PLAYER_ID) { if(PlayerInfo[para1][pMember] > 0 || PlayerInfo[para1][pFMember] < 255) { SendClientMessage(playerid, COLOR_GREY, " Este deja member/leader a unei factiuni !"); return 1; } GetPlayerName(para1, giveplayer, sizeof(giveplayer)); GetPlayerName(playerid, sendername, sizeof(sendername)); PlayerInfo[para1][pLeader] = level; format(string, sizeof(string), " L-ai promovat cu leader pe [%s]", sendername); SendClientMessage(para1, COLOR_LIGHTBLUE, string); format(string, sizeof(string), " Ai primit de la %s leaderul factiunii [%d]", giveplayer,level); SendClientMessage(playerid, COLOR_LIGHTBLUE, string); if(level == 0) { PlayerInfo[para1][pChar] = 0; gTeam[para1] = 3; PlayerInfo[para1][pTeam] = 3; PlayerInfo[para1][pMember] = 0; PlayerInfo[para1][pRank] = 0; PlayerInfo[para1][pChar] = 0; MedicBill[para1] = 0; new rand = random(sizeof(CIV)); SetSpawnInfo(para1, gTeam[para1], CIV[rand],0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[para1][pModel] = CIV[rand]; SpawnPlayer(para1); return 1; } else if(level == 1) { PlayerInfo[para1][pChar] = 288; } //Police Force else if(level == 2) { PlayerInfo[para1][pChar] = 165; } //FBI/ATF else if(level == 3) { PlayerInfo[para1][pChar] = 287; } //National Guard else if(level == 4) { PlayerInfo[para1][pChar] = 228; } //Fire/Ambulance else if(level == 5) { PlayerInfo[para1][pChar] = 46; } //Tattaglia else if(level == 6) { PlayerInfo[para1][pChar] = 120; } //Versace else if(level == 7) { PlayerInfo[para1][pChar] = 147; } //Mayor else if(level == 8) { PlayerInfo[para1][pChar] = 294; } //Hitmans else if(level == 9) { PlayerInfo[para1][pChar] = 227; } //News Reporters else if(level == 10) { PlayerInfo[para1][pChar] = 61; } //Taxi Cab Company else if(level == 11) { PlayerInfo[para1][pChar] = 171; } //Driving/Flying School else if(level == 12) { PlayerInfo[para1][pChar] = 100; } // Cuneo else if(level == 13) { PlayerInfo[para1][pChar] = 125; } else if(level == 14) { PlayerInfo[para1][pChar] = 270; } else if(level == 15) { PlayerInfo[para1][pChar] = 115; }//Varios Los Aztecas else if(level == 16) { PlayerInfo[para1][pChar] = 104; } else if(level == 17) { PlayerInfo[para1][pChar] = 173; } else if(level == 18) { PlayerInfo[para1][pChar] = 108; } else if(level == 19) { PlayerInfo[para1][pChar] = 29; }//StreetRace else if(level == 20) { PlayerInfo[para1][pChar] = 34; } else if(level == 21) { PlayerInfo[para1][pChar] = 288; }// BlueBerry Police Dept. else if(level == 22) { PlayerInfo[para1][pChar] = 179; }//C.I.A gTeam[para1] = 22; PlayerInfo[para1][pTeam] = 22; SetPlayerSkin(para1, PlayerInfo[para1][pChar]); } }//not connected } else { SendClientMessage(playerid, COLOR_GRAD1, " You are not autorized!"); } } return 1; }[/pawn] Cand incerc sa-mi dau lider imi zice " You are not autorized!" Care stie rezolvarea comenzilor il rog sa lase un reply mai jos. Multumesc
-
Mersi! Chiar cautam acest FS.
-
Spawn (cand intru pe server/respawn ma da in locul in care am murit/mam deconect
AgA replied to Cl4Ud1U's question in Arhivă probleme
Daca ai rezolvat poti sa pui solutia aici. -
Merge! Mersi Mult. Puteti da T/C.
-
Nu merge. Am primit mai multe warn-uri. C:\Users\Utlisateur\Desktop\RuleGame RPG\gamemodes\GM.pwn(4571) : warning 235: public function lacks forward declaration (symbol "SendFAMessage") C:\Users\Utlisateur\Desktop\RuleGame RPG\gamemodes\GM.pwn(4585) : warning 235: public function lacks forward declaration (symbol "SendFA2Message") C:\Users\Utlisateur\Desktop\RuleGame RPG\gamemodes\GM.pwn(6251) : warning 217: loose indentation C:\Users\Utlisateur\Desktop\RuleGame RPG\gamemodes\GM.pwn(9994) : warning 219: local variable "string" shadows a variable at a preceding level C:\Users\Utlisateur\Desktop\RuleGame RPG\gamemodes\GM.pwn(10002) : warning 219: local variable "string" shadows a variable at a preceding level C:\Users\Utlisateur\Desktop\RuleGame RPG\gamemodes\GM.pwn(10017) : warning 219: local variable "string" shadows a variable at a preceding level C:\Users\Utlisateur\Desktop\RuleGame RPG\gamemodes\GM.pwn(10033) : warning 219: local variable "string" shadows a variable at a preceding level C:\Users\Utlisateur\Desktop\RuleGame RPG\gamemodes\GM.pwn(11882) : warning 217: loose indentation C:\Users\Utlisateur\Desktop\RuleGame RPG\gamemodes\GM.pwn(18972) : warning 217: loose indentation C:\Users\Utlisateur\Desktop\RuleGame RPG\gamemodes\GM.pwn(19572) : warning 217: loose indentation C:\Users\Utlisateur\Desktop\RuleGame RPG\gamemodes\GM.pwn(24917) : warning 213: tag mismatch C:\Users\Utlisateur\Desktop\RuleGame RPG\gamemodes\GM.pwn(27426) : warning 202: number of arguments does not match definition C:\Users\Utlisateur\Desktop\RuleGame RPG\gamemodes\GM.pwn(27832) : warning 217: loose indentation C:\Users\Utlisateur\Desktop\RuleGame RPG\gamemodes\GM.pwn(27863) : warning 217: loose indentation C:\Users\Utlisateur\Desktop\RuleGame RPG\gamemodes\GM.pwn(28240) : warning 217: loose indentation C:\Users\Utlisateur\Desktop\RuleGame RPG\gamemodes\GM.pwn(28322) : warning 217: loose indentation C:\Users\Utlisateur\Desktop\RuleGame RPG\gamemodes\GM.pwn(30476) : warning 217: loose indentation C:\Users\Utlisateur\Desktop\RuleGame RPG\gamemodes\GM.pwn(30504) : warning 217: loose indentation C:\Users\Utlisateur\Desktop\RuleGame RPG\gamemodes\GM.pwn(31388) : warning 217: loose indentation C:\Users\Utlisateur\Desktop\RuleGame RPG\gamemodes\GM.pwn(31393) : warning 217: loose indentation C:\Users\Utlisateur\Desktop\RuleGame RPG\gamemodes\GM.pwn(31546) : warning 217: loose indentation C:\Users\Utlisateur\Desktop\RuleGame RPG\gamemodes\GM.pwn(33003) : warning 217: loose indentation C:\Users\Utlisateur\Desktop\RuleGame RPG\gamemodes\GM.pwn(33051) : warning 217: loose indentation C:\Users\Utlisateur\Desktop\RuleGame RPG\gamemodes\GM.pwn(41643) : warning 217: loose indentation C:\Users\Utlisateur\Desktop\RuleGame RPG\gamemodes\GM.pwn(41653) : warning 219: local variable "para1" shadows a variable at a preceding level C:\Users\Utlisateur\Desktop\RuleGame RPG\gamemodes\GM.pwn(41888) : warning 217: loose indentation C:\Users\Utlisateur\Desktop\RuleGame RPG\gamemodes\GM.pwn(43685) : warning 217: loose indentation C:\Users\Utlisateur\Desktop\RuleGame RPG\gamemodes\GM.pwn(43801) : warning 217: loose indentation C:\Users\Utlisateur\Desktop\RuleGame RPG\gamemodes\GM.pwn(44506) : warning 217: loose indentation C:\Users\Utlisateur\Desktop\RuleGame RPG\gamemodes\GM.pwn(50465) : warning 203: symbol is never used: "pricepills" C:\Users\Utlisateur\Desktop\RuleGame RPG\gamemodes\GM.pwn(50464) : warning 203: symbol is never used: "telpills" C:\Users\Utlisateur\Desktop\RuleGame RPG\gamemodes\GM.pwn(50464 -- 50485) : warning 217: loose indentation C:\Users\Utlisateur\Desktop\RuleGame RPG\gamemodes\GM.pwn(52914) : warning 217: loose indentation C:\Users\Utlisateur\Desktop\RuleGame RPG\gamemodes\GM.pwn(53620) : warning 213: tag mismatch C:\Users\Utlisateur\Desktop\RuleGame RPG\gamemodes\GM.pwn(53620) : warning 202: number of arguments does not match definition C:\Users\Utlisateur\Desktop\RuleGame RPG\gamemodes\GM.pwn(53620) : warning 202: number of arguments does not match definition C:\Users\Utlisateur\Desktop\RuleGame RPG\gamemodes\GM.pwn(26831) : warning 204: symbol is assigned a value that is never used: "tmp2" C:\Users\Utlisateur\Desktop\RuleGame RPG\gamemodes\GM.pwn(54627) : warning 219: local variable "PlayerName" shadows a variable at a preceding level C:\Users\Utlisateur\Desktop\RuleGame RPG\gamemodes\GM.pwn(56254) : warning 217: loose indentation C:\Users\Utlisateur\Desktop\RuleGame RPG\gamemodes\GM.pwn(56255) : warning 217: loose indentation C:\Users\Utlisateur\Desktop\RuleGame RPG\gamemodes\GM.pwn(58731) : warning 203: symbol is never used: "BIG_str" C:\Users\Utlisateur\Desktop\RuleGame RPG\gamemodes\GM.pwn(58731) : warning 203: symbol is never used: "motd" Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase Header size: 11444 bytes Code size: 3181168 bytes Data size: 2027344 bytes Stack/heap size: 16384 bytes; estimated max. usage=4186 cells (16744 bytes) Total requirements: 5236340 bytes 42 Warnings. Uite si Includes. Poate am gresit eu ceva. [pawn]//=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=Includes=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= //#include < Junkbuster > #include < A_SAMP > #include < MONEY > #include < CORE > #include < FLOAT > #include < TIME > #include < FILE > #include < UTILS > #include < MORPHINC > #include < STREAMER > #include < SEIF_WALK > #include < DINI > forward Kick_Ban ( playerid, bool: kickban ); public Kick_Ban ( playerid, bool: kickban ) return ( !kickban ) ? Kick ( playerid ) : Ban ( playerid ); #define Kick(%1) SetTimerEx ( "Kick_Ban", 500, false, "ii", %1, false ) #define Ban(%1) SetTimerEx ( "Kick_Ban", 500, false, "ii", %1, true ) #define MP_TIMER_INTERVAL 200 //set a time of 200ms for the money check #pragma tabsize 0[/pawn]
-
Spawn (cand intru pe server/respawn ma da in locul in care am murit/mam deconect
AgA replied to Cl4Ud1U's question in Arhivă probleme
Se refera sa te spawneze la spawn de fiecare data cand se conecteaza un jucator si pentru ce-i din factiuni ilegale sa-i spawneze la factiuni. -
L-am descarcat si la fel zice.
-
Cum pot rezolva asta? C:\Users\Utlisateur\Desktop\RuleGame RPG\gamemodes\GM.pwn(37) : fatal error 100: cannot read from file: "money" Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error. Multumesc.