-
Posts
113 -
Joined
-
Last visited
Content Type
Profiles
Forums
News
Documentation
Posts posted by OscarJoaca
-
-
-
Posteaza OnPlayerConnect.
public OnPlayerConnect(playerid)
{
PlayerAFK[playerid] = 0; AFKLoggin[playerid] = 40; ByPASS[playerid] = 0; Mats[playerid] = 0; Allowed[playerid] = 0; Authorised[playerid] = 0; Sleeping[playerid] = 0; SleepXP[playerid] = 0;
//new PlayerBar:bar1 = CreatePlayerProgressBar(playerid,501.00, 103.00, 103.50, 2.50, , 100.0); -16776961
//War: new Bar:bar = CreateProgressBar(240.00, 395.00, 257.50, 12.20, -16776961, 100.0); 499.00, 103.00, 105.50 | 498.00, 162.00, 107.50, 7.50
barxp = CreatePlayerProgressBar(playerid,498.00, 146.00, 107.50, 9.19, -16776961, 100.0);
SetPlayerColor(playerid,COLOR_SPEC);
MysqlRaceCheck[playerid]++;for(new pData:e; e < pData; ++e)
{//Reseting all player's variables
PlayerData[playerid][e] = 0;
}
for(new i = 0; i < 128; i++)
{
Suspects[playerid] = -1;
}
DealerID[playerid] = 0; VehicleDealer[playerid] = -1; InDealer[playerid] = 0; DSAngle[playerid] = 0.0;
PlayerData[playerid][InBizz] = -1;
PlayerData[playerid][InHouse] = -1;
PlayerData[playerid][InHQ] = -1;
PlayerData[playerid][SpectateP] = -1;
PlayerData[playerid][Spectate] = -1;
PlayerData[playerid][PlayerToFind] = -1;
PlayerData[playerid][WarOffer] = -1;
PlayerData[playerid][WarOffered] = -1;
MedicAns[playerid] = -1; MedicCall[playerid] = -1; LiveOffer[playerid] = -1; LiveReporter[playerid] = -1; TalkingLive[playerid] = -1; PaperOffer[playerid] = -1;
PaperReporter[playerid] = -1, WritingPaper[playerid] = 0, WritingPaperNumber[playerid] = 999, WritingLine[playerid] = 0, BringingPaper[playerid] = 0;
GotPaper[playerid] = 0, DestinationSet[playerid] = 0, RadioSet[playerid] = 0, PlayerTied[playerid] = 0, VSpecial[playerid] = 0, ExamPoint[playerid] = 0;
EStep[playerid] = 0, VHits[playerid] = 0, PPizzaCP[playerid] = -1, VJob[playerid] = -1, PSweeperCP[playerid] = -1, Dice[playerid] = 0, PTruckerCP[playerid] = -1, PFarmerCP[playerid] = -1;
Mobile[playerid] = -1, PBusCP[playerid] = -1, Key[playerid] = 0, KeyC[playerid] = 0, SwitchKey[playerid] = 1, OnExp[playerid] = 0, JoinedCS[playerid] = 0, JoinedKart[playerid] = 0;
KeyReset[playerid] = 0, GunOffer[playerid] = -1, GunOffered[playerid] = -1, GunPrice[playerid] = -1, GunModel[playerid] = -1, DrugOffer[playerid] = -1, DrugOffered[playerid] = -1, DrugPrice[playerid] = -1, DrugAmount[playerid] = -1, PlayerStoned[playerid] = 0;
MaterialsOffer[playerid] = -1, MaterialsOffered[playerid] = -1, MaterialsPrice[playerid] = -1, MaterialsAmount[playerid] = -1, PGarbageCP[playerid] = -1, PKartCP[playerid] = -1;
TicketOffer[playerid] = -1, TicketMoney[playerid] = 0, OwnableCarOffer[playerid] = -1, OwnableCarOffered[playerid] = -1, OwnableCarID[playerid] = 0, OwnableCarPrice[playerid] = 0, OwnableCarSlot[playerid] = 0;
OwnableHouseOffer[playerid] = -1, OwnableHouseOffered[playerid] = -1, OwnableHouseID[playerid] = 0, OwnableHousePrice[playerid] = 0, PMTo[playerid] = -1, NeedAns[playerid] = 0;
new query[128];
GetPlayerName(playerid, PlayerData[playerid][Name], MAX_PLAYER_NAME);
//Thread query to select player's info
mysql_format(SQL, query, sizeof(query), "SELECT `Password`, `KeyReset` FROM `users` WHERE `username` = '%e' LIMIT 1", PlayerData[playerid][Name]);
mysql_tquery(SQL, query, "OnPlayerDataLoaded", "dd", playerid, MysqlRaceCheck[playerid]); -
-
Problema intalnita (descriere): De cand am bagat ultima versiune de SAMP (0.3.7) pe server imi tot da aceasta eroare, si nu il lasa pe X sa intre pe server...
Ero(area / rile) / warning-(ul / urile): Gamemode-ul lui Maurice (rG3)
Liniile de cod / sursa / script-ul(obligatoriu): Kicking "ip" because they didn't logon to the game.
Imagini / Video (optional): -
Ati incercat sa rezolvati singur?: Am cautat pe internet, dar nu am gasit nimic folositor... -
Si imi mai da Kicking because they didn't logon to the game.
-
Hmm, am bagat gamemode-ul pe host, si dupa un timp in care se aduna jucatori pe server, iti da ban... Dece?
-
Problema intalnita (descriere): Am luat un sistem de case de pe net, si nu pot sa-l setez cu gamemode-ul la comanda /spawnchange
Ero(area / rile) / warning-(ul / urile): -
Liniile de cod / sursa / script-ul(obligatoriu): http://pastebin.com/Nm86HZn7
Imagini / Video (optional): -
Ati incercat sa rezolvati singur?: Da! -
La job-ul de Dealer Droguri cum iau droguri? Sau cum functioneaza?
-
Cum pot adauga case sau masini la DS?
-
N-am crezut ca va fii nevoie sa dau up pe sa-mp.ro ca sa ma ajute cineva, dar ma rog. UP!
-
Ai recompilat gm-ul si filterscripturile dupa ce ai facut update la versiuni?
Da, dar oricum deja nu ma mai intereseaza....
Puteti sa inchideti topic-ul!
-
Foarte frumos! Dabia astept sa finalizezi gamemode-ul tau ;)
-
Ma mai ajuta cineva?
-
strcat nu suporta formatarea, doar lipirea a doua stringuri. Foloseste format.
\\psf\Home\Desktop\AG RPG\gamemodes\gamemode.pwn(11880) : error 035: argument type mismatch (argument 2)
\\psf\Home\Desktop\AG RPG\gamemodes\gamemode.pwn(11881) : error 035: argument type mismatch (argument 2)
\\psf\Home\Desktop\AG RPG\gamemodes\gamemode.pwn(11882) : error 035: argument type mismatch (argument 2)
\\psf\Home\Desktop\AG RPG\gamemodes\gamemode.pwn(11883) : error 035: argument type mismatch (argument 2)
\\psf\Home\Desktop\AG RPG\gamemodes\gamemode.pwn(11884) : error 035: argument type mismatch (argument 2)
\\psf\Home\Desktop\AG RPG\gamemodes\gamemode.pwn(11885) : error 035: argument type mismatch (argument 2)
\\psf\Home\Desktop\AG RPG\gamemodes\gamemode.pwn(11886) : error 035: argument type mismatch (argument 2)
\\psf\Home\Desktop\AG RPG\gamemodes\gamemode.pwn(11887) : error 035: argument type mismatch (argument 2)
\\psf\Home\Desktop\AG RPG\gamemodes\gamemode.pwn(11888) : error 035: argument type mismatch (argument 2)
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
9 Errors. -
nu stiu ce e asa greu...dar...fie...
CMD:factions (playerid, params [ ] ) { if ( IsPlayerConnected ( playerid ) ) { new factions[200]; strcat(factions, ""ColorF1"1. %s - %d / %d | Level intrare : 4" , FactionInfo [ 1 ] [ fName ] , FactionInfo [ 1 ] [ fMembers ] , MAX_FMEMBERSNONDM ) ; strcat(factions, ""ColorF2"2. %s - %d / %d | Level intrare : 4" , FactionInfo [ 2 ] [ fName ] , FactionInfo [ 2 ] [ fMembers ] , MAX_FMEMBERSNONDM ) ; strcat(factions, ""ColorF3"3. %s - %d / %d | Level intrare : 2" , FactionInfo [ 3 ] [ fName ] , FactionInfo [ 3 ] [ fMembers ] , MAX_FMEMBERSNONDM ) ; strcat(factions, ""ColorF4"4. %s - %d / %d | Level intrare : 2" , FactionInfo [ 4 ] [ fName ] , FactionInfo [ 4 ] [ fMembers ] , MAX_FMEMBERSNONDM ) ; strcat(factions, ""ColorF5"5. %s - %d / %d | Level intrare : 4" , FactionInfo [ 5 ] [ fName ] , FactionInfo [ 5 ] [ fMembers ] , MAX_FMEMBERSNONDM ) ; strcat(factions, ""ColorF6"6. %s - %d / %d | Level intrare : 3" , FactionInfo [ 6 ] [ fName ] , FactionInfo [ 6 ] [ fMembers ] , MAX_FMEMBERSDM ) ; strcat(factions, ""ColorF7"7. %s - %d / %d | Level intrare : 3" , FactionInfo [ 7 ] [ fName ] , FactionInfo [ 7 ] [ fMembers ] , MAX_FMEMBERSDM ) ; strcat(factions, ""ColorF8"8. %s - %d / %d | Level intrare : 3" , FactionInfo [ 8 ] [ fName ] , FactionInfo [ 8 ] [ fMembers ] , MAX_FMEMBERSDM ) ; strcat(factions, ""ColorF9"9. %s - %d / %d | Level intrare : 3" , FactionInfo [ 9 ] [ fName ] , FactionInfo [ 9 ] [ fMembers ] , MAX_FMEMBERSDM ) ; } return 1; }
\\psf\Home\Desktop\AG RPG\gamemodes\gamemode.pwn(11880) : warning 202: number of arguments does not match definition
\\psf\Home\Desktop\AG RPG\gamemodes\gamemode.pwn(11880) : warning 202: number of arguments does not match definition
\\psf\Home\Desktop\AG RPG\gamemodes\gamemode.pwn(11881) : warning 202: number of arguments does not match definition
\\psf\Home\Desktop\AG RPG\gamemodes\gamemode.pwn(11881) : warning 202: number of arguments does not match definition
\\psf\Home\Desktop\AG RPG\gamemodes\gamemode.pwn(11882) : warning 202: number of arguments does not match definition
\\psf\Home\Desktop\AG RPG\gamemodes\gamemode.pwn(11882) : warning 202: number of arguments does not match definition
\\psf\Home\Desktop\AG RPG\gamemodes\gamemode.pwn(11883) : warning 202: number of arguments does not match definition
\\psf\Home\Desktop\AG RPG\gamemodes\gamemode.pwn(11883) : warning 202: number of arguments does not match definition
\\psf\Home\Desktop\AG RPG\gamemodes\gamemode.pwn(11884) : warning 202: number of arguments does not match definition
\\psf\Home\Desktop\AG RPG\gamemodes\gamemode.pwn(11884) : warning 202: number of arguments does not match definition
\\psf\Home\Desktop\AG RPG\gamemodes\gamemode.pwn(11885) : warning 202: number of arguments does not match definition
\\psf\Home\Desktop\AG RPG\gamemodes\gamemode.pwn(11885) : warning 202: number of arguments does not match definition
\\psf\Home\Desktop\AG RPG\gamemodes\gamemode.pwn(11886) : warning 202: number of arguments does not match definition
\\psf\Home\Desktop\AG RPG\gamemodes\gamemode.pwn(11886) : warning 202: number of arguments does not match definition
\\psf\Home\Desktop\AG RPG\gamemodes\gamemode.pwn(11887) : warning 202: number of arguments does not match definition
\\psf\Home\Desktop\AG RPG\gamemodes\gamemode.pwn(11887) : warning 202: number of arguments does not match definition
\\psf\Home\Desktop\AG RPG\gamemodes\gamemode.pwn(11888) : warning 202: number of arguments does not match definition
\\psf\Home\Desktop\AG RPG\gamemodes\gamemode.pwn(11888) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
18 Warnings.Ca tare stiam, dar am crezut ca fac eu ceva gresit...
-
Problema intalnita (descriere): As vrea sa pun pe dialog comanda /factions
Ero(area / rile) / warning-(ul / urile): -
Liniile de cod / sursa / script-ul(obligatoriu): http://pastebin.com/sZgNyfj5
Imagini / Video (optional): -
Ati incercat sa rezolvati singur?: Da... -
Problema intalnita (descriere): Imi poate da cineva un panel pentru gamemode-ul Saints.
Ero(area / rile) / warning-(ul / urile): -
Liniile de cod / sursa / script-ul(obligatoriu): -
Imagini / Video (optional): -
Ati incercat sa rezolvati singur?: Da, am cautat pe google... -
Ma mai ajutati?
-
Ai libmysql.dll? -_-
Da.
-
Sincer, nu.
Nici nu știu ce face plugin-ul respectiv, nu știu pentru ce este.
Ma rog, este pentru editatrea TextDraw-urilor dar nu o sa am nevoie de el... Dece imi asta? http://pastebin.com/egfy0357
-
Uită-te mai atent în server_log, serverul nu pornește câteva pluginuri..
- [15:28:58] Loading plugin: iTd.so
- [15:28:58] Failed (plugins/iTd.so: cannot open shared object file: No such file or directory)
- [15:28:58] Loading plugin: FileManager.so
- [15:28:58] Failed (plugins/FileManager.so: cannot open shared object file: No such file or directory)
- [15:28:58] Loading plugin: libRegEx.so
- [15:28:58] Failed (plugins/libRegEx.so: cannot open shared object file: No such file or directory)
- [15:28:58] Loading plugin: cTime.so
- [15:28:58] Failed (plugins/cTime.so: cannot open shared object file: No such file or directory)
Am rezolvat cu plugin-urile... Dar dece imi tot da asa? http://pastebin.com/egfy0357
-
Sunt mai multe variante aici..
1. Nu ai configurat cum trebuie conexiunea dintre server și baza de date.
2. Atunci când pui pe host un gamemode, pluginurile trebuie definite cu .so la final (exemplu: streamer.so, mysql.so, etc)
3. Nu sunt bune plugin-urile, trebuie să le faci update la ultima versiune.
1. Este conectat bine, am testat local.
2. http://pastebin.com/Vrqwv1cM
3. Am facut, am spus si mai sus!
Idea este ca pe local, unde am Windows merge perfect...
-
Problema intalnita (descriere): Imi da unknow, si imi apare unele erori la plugin-uri
Ero(area / rile) / warning-(ul / urile): http://pastebin.com/pq4UTqvF
Liniile de cod / sursa / script-ul(obligatoriu): -
Imagini / Video (optional): -
Ati incercat sa rezolvati singur?: Da, am incercat sa schimb plugin-urile la o versiune mai noua... -
Ai rezolvat?
Pot sa inchid topicul?
Da.
Kicking "ip" because they didn't logon to the game.
in Arhivă probleme
Posted
UP!