Rikie
-
Posts
7 -
Joined
-
Last visited
-
Days Won
1
Content Type
Profiles
Forums
News
Documentation
Posts posted by Rikie
-
-
Salutare tuturor ! Am o mica problema la login si register, si nu pot sa imi dau seama de loc.
Erorile sunt acestea:
C:\Users\aurel\Desktop\0.3.7\pawno\include\YSI\..\YSI_Storage\..\YSI_Core\y_utils.inc(430) : warning 201: redefinition of constant/macro (symbol "isnull(%1)") C:\Users\aurel\Desktop\0.3.7\gamemodes\0.3.7GM.pwn(137) : error 001: expected token: "-string end-", but found "-identifier-" C:\Users\aurel\Desktop\0.3.7\gamemodes\0.3.7GM.pwn(137) : warning 215: expression has no effect C:\Users\aurel\Desktop\0.3.7\gamemodes\0.3.7GM.pwn(137) : error 001: expected token: ";", but found ")" C:\Users\aurel\Desktop\0.3.7\gamemodes\0.3.7GM.pwn(137) : error 029: invalid expression, assumed zero C:\Users\aurel\Desktop\0.3.7\gamemodes\0.3.7GM.pwn(137) : 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.
Iar riga 137 este aceasta:
if(fexist(UserPath(playerid)))
Va las mai jos toata partea unde este adaugata acea linie.
public OnPlayerConnect(playerid) { if(fexist(UserPath(playerid))) { INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid) ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT,""COL_WHITE"Login",""COL_WHITE"Scrie parola pentru a te loga.","Intra","Iesi"); } else { ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_INPUT,""COL_WHITE"Inregistrare",""COL_WHITE"Scrie o parola pentru a crea un cont.","Inregistrare","Iesi"); } return 1; }
Ma puteti ajuta va rog ?
-
Retrag, am rezolvat !
-
Salut ! Am luat gamemode de la edison, acela facut de la 0 care nu are cam nimic inauntru, dar intampin o problema, daca am admin si imi dau respawn, imi dispare admin-ul, si nu pot sa inteleg de ce, daca dau /sethp 0 idem, dispare admin-ul, nu pot sa inteleg de ce, am cautat in gamemode dar nu gasesc nimic, la compilat nu are nici o eroare sau avertizare ! Ma puteti ajuta? Va las aici comanda de la /respawn si /sethp
CMD:respawn(playerid, params[]) { new userID, string[256]; if(PlayerInfo[playerid][pAdmin] == 0) return NotAdmin(playerid); if(sscanf(params, "u", userID)) return SCM(playerid, COLOR_SERVER, "Syntax: {FFFFFF}/respawn <playerid>"); if(!IsPlayerConnected(userID)) return NotConnected(playerid); if(userID == playerid && (1 <= PlayerInfo[playerid][pAdmin] <= 4)) return NotAcces(playerid); if(PlayerInfo[userID][pAdmin] >= 1 && (1 <= PlayerInfo[playerid][pAdmin] <= 4)) return NotAdministrator(playerid); if(userID != INVALID_PLAYER_ID) { SpawnPlayer(userID); foreach(Player,i) { if(PlayerInfo[i][pLanguage] == 1 && PlayerInfo[i][pAdmin] >= 5 && Logs[i] == 1) { PlayerPlaySound(i, 1056, 0.0, 0.0, 0.0); format(string, sizeof(string), "<Staff>: %s l-a respawnat pe %s[ID: %d].", GetName(playerid), GetName(userID), userID); SCM(i, COLOR_LOGS, string); } } if(PlayerInfo[playerid][pLanguage] == 1) format(string, sizeof(string), "L-ai respawnat pe %s[ID: %d].", GetName(userID), userID); SCM(playerid, COLOR_WHITE, string); if(PlayerInfo[userID][pLanguage] == 1) format(string, sizeof(string), "Admin %s te-a respawnat.", GetName(playerid)); SCM(userID, COLOR_WHITE, string); } return 1; }
si aici /sethp
CMD:sethp(playerid, params[]) { new userID, hp, string[256]; if(PlayerInfo[playerid][pAdmin] == 0) return NotAdmin(playerid); if(sscanf(params, "ui", userID, hp)) return SCM(playerid, COLOR_SERVER, "Syntax: {FFFFFF}/sethp <playerid> <hp>"); if(!IsPlayerConnected(userID)) return NotConnected(playerid); if(userID == playerid && (1 <= PlayerInfo[playerid][pAdmin] <= 4)) return NotAcces(playerid); if(PlayerInfo[userID][pAdmin] >= 1 && (1 <= PlayerInfo[playerid][pAdmin] <= 4)) return NotAdministrator(playerid); if(userID != INVALID_PLAYER_ID) { SetPlayerHealth(userID, hp); foreach(Player,i) { if(PlayerInfo[i][pLanguage] == 1 && PlayerInfo[i][pAdmin] >= 5 && Logs[i] == 1) { PlayerPlaySound(i, 1056, 0.0, 0.0, 0.0); format(string, sizeof(string), "<Staff>: %s i-a setat viata la %d hp lui %s[ID: %d].", GetName(playerid), hp, GetName(userID), userID); SCM(i, COLOR_LOGS, string); } else if(PlayerInfo[i][pLanguage] == 2 && PlayerInfo[i][pAdmin] >= 5 && Logs[i] == 1) { PlayerPlaySound(i, 1056, 0.0, 0.0, 0.0); format(string, sizeof(string), "<Staff>: %s has set %d hp of %s[ID: %d].", GetName(playerid), hp, GetName(userID), userID); SCM(i, COLOR_LOGS, string); } } if(PlayerInfo[playerid][pLanguage] == 1) format(string, sizeof(string), "I-ai setat lui %s[ID: %d] viata la %d hp.", GetName(userID), userID, hp); else if(PlayerInfo[playerid][pLanguage] == 2) format(string, sizeof(string), "You set the %d hp of %s[ID: %d].", hp, GetName(userID), userID); SCM(playerid, COLOR_WHITE, string); } return 1; }
Tin sa precizez ca sunt la inceput cu script si pawno ! Sper sa ma puteti ajuta !! Multumesc mult !
-
Stiti de comunitatea ProUnion? Daca nu ati auzit de ea, cautati pe YouTube si va vor da sute de video-uri !
-
Acum 14 ore, Mister a spus:
salut, daca te referi la cel care avea ownerii aleck si bogdan, parerea mea e ca nu se merita era prea old school si playerii nu ar juca
Da, exact acel GM. Eu cred ca se merita, daca ar fi cineva care se pricepe in Pawno.
Acum 10 ore, _Valy_ a spus:Adevarat.
Fiecare are idea personala, eu doar cer ajutor unui scripter (contra cost normal !!)
-
Salut!
Am sa fiu direct la subiect, nu stiu cati dintre voi au cunoscut sv de SaMP ProUnion. Cine nu il cunoaste poate sa caute pe YT video-uri.
Pentru cine il cunoaste si are cunostinte de script, cam cat doriti sa luati ($) pentru a crea un GM cam cum era ProUnion de la 0 ?
- 1
Problema Login si register
in Ajutor Scripting
Posted
Salut, din pacate nimic, am rescris in acest mod dar tot aceleasi erori