iRay Posted February 10, 2016 Posted February 10, 2016 Salut, cand compilez GM-ul imi da 4 erori: Spoiler C:\Documents and Settings\Administrator\Desktop\GM\pawno\include\OnPlayerPause.inc(238) : error 017: undefined symbol "PlayerInfo" C:\Documents and Settings\Administrator\Desktop\GM\pawno\include\OnPlayerPause.inc(238) : warning 215: expression has no effect C:\Documents and Settings\Administrator\Desktop\GM\pawno\include\OnPlayerPause.inc(238) : error 001: expected token: ";", but found "]" C:\Documents and Settings\Administrator\Desktop\GM\pawno\include\OnPlayerPause.inc(238) : error 029: invalid expression, assumed zero C:\Documents and Settings\Administrator\Desktop\GM\pawno\include\OnPlayerPause.inc(238) : 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. Linia 238: PlayerInfo[playerid][pOnline] = 1;
Mister Posted February 10, 2016 Posted February 10, 2016 (edited) Aveai un model de respectat in mijlocul forumului de ajutor scripting e modelul pentru ca acolo trebuia sa postezi si de unde ai luat includeul onplayerpause? Edited February 10, 2016 by Mister __ ____ __ / |/ (_)____/ /____ _____ / /|_/ / / ___/ __/ _ \/ ___/ / / / / (__ ) /_/ __/ / /_/ /_/_/____/\__/\___/_/ SERVICII SCRIPTING DE CALITATE Pagina Scripting pawn
iRay Posted February 10, 2016 Author Posted February 10, 2016 1 minute ago, Mister said: Aveai un model de respectat in mijlocul forumului de ajutor scripting e modelul pentru ca acolo trebuia sa postezi si de unde ai luat includeul onplayerpause? Scuze, o sa dau edit cu modelul. Am cumparat un GM si asa avea include-ul.
Mister Posted February 10, 2016 Posted February 10, 2016 Cauta in folderul pawno/includes/onplayerpause.inc si deschide l cu notepad apoi cauta linia 238 si arata aici de la linia 230 pana la 240 __ ____ __ / |/ (_)____/ /____ _____ / /|_/ / / ___/ __/ _ \/ ___/ / / / / (__ ) /_/ __/ / /_/ /_/_/____/\__/\___/_/ SERVICII SCRIPTING DE CALITATE Pagina Scripting pawn
iRay Posted February 10, 2016 Author Posted February 10, 2016 (edited) Poftim #endif #define OnPlayerPause OnPlPa_OnPlayerPause forward OnPlPa_OnPlayerPause(playerid); public OnPlayerUnpause(playerid) { // Delete3DTextLabel(afklabel[playerid]); //afktime[playerid] = 0; PlayerInfo[playerid][pOnline] = 1; Update(playerid,pOnlinex); Paused[playerid] = false; EDIT: include-ul are 256 de linii Edited February 10, 2016 by iRay
Mister Posted February 10, 2016 Posted February 10, 2016 Sterge astea PlayerInfo[playerid][pOnline] = 1; Update(playerid,pOnlinex); si adauga in gamemode la OnPlayerUpdate if(Paused[playerid] == false && PlayerInfo[playerid][pOnline] != 1) { PlayerInfo[playerid][pOnline] = 1; Update(playerid,pOnlinex); } __ ____ __ / |/ (_)____/ /____ _____ / /|_/ / / ___/ __/ _ \/ ___/ / / / / (__ ) /_/ __/ / /_/ /_/_/____/\__/\___/_/ SERVICII SCRIPTING DE CALITATE Pagina Scripting pawn
iRay Posted February 10, 2016 Author Posted February 10, 2016 (edited) Acum imi da asta in GM : C:\Documents and Settings\Administrator\Desktop\GM\gamemodes\gm.pwn(10732) : error 017: undefined symbol "MAX_COUNTRY_NAME" C:\Documents and Settings\Administrator\Desktop\GM\gamemodes\gm.pwn(10732) : error 009: invalid array size (negative, zero or out of bounds) C:\Documents and Settings\Administrator\Desktop\GM\gamemodes\gm.pwn(10732) : error 036: empty statement C:\Documents and Settings\Administrator\Desktop\GM\gamemodes\gm.pwn(10732) : 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. EDIT: Linia 10732-10735 new Float:HAFloats, country[MAX_COUNTRY_NAME]; GetPlayerHealth(userID,HAFloats); format(szMessage, sizeof(szMessage), "(%i) %s | Level: %i | Health: %.1f | Status: %d | Country: %s | Ping: %i",userID, GetName(userID),playerVariables[userID][pLevel], HAFloats,playerVariables[userID][pStatus],country, GetPlayerPing(userID)); SCM(playerid,COLOR_IN2, szMessage); Edited February 10, 2016 by iRay
Mister Posted February 10, 2016 Posted February 10, 2016 pai si daca iti da arata ne codul din jurul liniei 10732 1 __ ____ __ / |/ (_)____/ /____ _____ / /|_/ / / ___/ __/ _ \/ ___/ / / / / (__ ) /_/ __/ / /_/ /_/_/____/\__/\___/_/ SERVICII SCRIPTING DE CALITATE Pagina Scripting pawn
iRay Posted February 10, 2016 Author Posted February 10, 2016 Am dat edit la postul de mai sus... uite iti zic inca odata aici: new Float:HAFloats, country[MAX_COUNTRY_NAME]; GetPlayerHealth(userID,HAFloats); format(szMessage, sizeof(szMessage), "(%i) %s | Level: %i | Health: %.1f | Status: %d | Country: %s | Ping: %i",userID, GetName(userID),playerVariables[userID][pLevel], HAFloats,playerVariables[userID][pStatus],country, GetPlayerPing(userID)); SCM(playerid,COLOR_IN2, szMessage); LINIA 10732-10735
Mister Posted February 10, 2016 Posted February 10, 2016 scrie inloc de MAX_COUNTRY_NAME 200 si gata 1 __ ____ __ / |/ (_)____/ /____ _____ / /|_/ / / ___/ __/ _ \/ ___/ / / / / (__ ) /_/ __/ / /_/ /_/_/____/\__/\___/_/ SERVICII SCRIPTING DE CALITATE Pagina Scripting pawn
iRay Posted February 10, 2016 Author Posted February 10, 2016 (edited) Nu am pus eu bine oare? new Float:HAFloats, country[200]; Acum imi da astea: C:\Documents and Settings\Administrator\Desktop\GM\gamemodes\gm.pwn(14064) : error 010: invalid function or declaration C:\Documents and Settings\Administrator\Desktop\GM\gamemodes\gm.pwn(14066) : error 055: start of function body without function header C:\Documents and Settings\Administrator\Desktop\GM\gamemodes\gm.pwn(14069) : error 010: invalid function or declaration C:\Documents and Settings\Administrator\Desktop\GM\gamemodes\gm.pwn(14072) : error 054: unmatched closing brace ("}") C:\Documents and Settings\Administrator\Desktop\GM\gamemodes\gm.pwn(26618) : error 017: undefined symbol "MAX_COUNTRY_NAME" C:\Documents and Settings\Administrator\Desktop\GM\gamemodes\gm.pwn(26618) : error 009: invalid array size (negative, zero or out of bounds) C:\Documents and Settings\Administrator\Desktop\GM\gamemodes\gm.pwn(26618) : error 036: empty statement C:\Documents and Settings\Administrator\Desktop\GM\gamemodes\gm.pwn(26618) : fatal error 107: too many error messages on one line Edited February 10, 2016 by iRay
Mister Posted February 10, 2016 Posted February 10, 2016 Ba ai pus bine, dar e gmul plin de buguri nu observi?, rezolvi ceva dai peste altceva 1 __ ____ __ / |/ (_)____/ /____ _____ / /|_/ / / ___/ __/ _ \/ ___/ / / / / (__ ) /_/ __/ / /_/ /_/_/____/\__/\___/_/ SERVICII SCRIPTING DE CALITATE Pagina Scripting pawn
iRay Posted February 10, 2016 Author Posted February 10, 2016 Pf... stii vreun gm pe care as putea sa-l cumpar sau unul de la care as putea incepe??
Mister Posted February 10, 2016 Posted February 10, 2016 Daca nu iti place sunt foarte multe gamemodeuri la categorie __ ____ __ / |/ (_)____/ /____ _____ / /|_/ / / ___/ __/ _ \/ ___/ / / / / (__ ) /_/ __/ / /_/ /_/_/____/\__/\___/_/ SERVICII SCRIPTING DE CALITATE Pagina Scripting pawn
iRay Posted February 10, 2016 Author Posted February 10, 2016 Ok, mersi o sa vad ce o sa fac... totusi o sa dureze mult sa fac un gm de la 0 plus ca nu sunt foarte bun in PAWN. Moderatorii puteti da T/C
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now