Jump to content

Recommended Posts

Posted

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;

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

 

    __  ____      __           
   /  |/  (_)____/ /____  _____
  / /|_/ / / ___/ __/ _ \/ ___/
 / /  / / (__  ) /_/  __/ /    
/_/  /_/_/____/\__/\___/_/     
SERVICII SCRIPTING DE CALITATE
Pagina     Scripting     pawn
Posted
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.

Posted (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 by iRay
Posted

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
Posted (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 by iRay
Posted

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

Posted (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 by iRay
Posted

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • 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.