Jump to content

Eroare OnPlayerPause.inc


iRay

Recommended Posts

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;

Link to comment
Share on other sites

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 by Mister

 

    __  ____      __           
   /  |/  (_)____/ /____  _____
  / /|_/ / / ___/ __/ _ \/ ___/
 / /  / / (__  ) /_/  __/ /    
/_/  /_/_/____/\__/\___/_/     
SERVICII SCRIPTING DE CALITATE
Pagina     Scripting     pawn
Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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
Link to comment
Share on other sites

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 by iRay
Link to comment
Share on other sites

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
Link to comment
Share on other sites

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 by iRay
Link to comment
Share on other sites

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

Link to comment
Share on other sites

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 by iRay
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.