Jump to content

[REZOLVAT] Intrebare 2


CRISTIANN
 Share

Recommended Posts

Explica-mi ce trebuie sa faca acea comanda, ca din ce ai zis tu mai sus, inteleg sa deschida o cutie tuturor jucatorilor, ceea ce ar cauza crash server-ului.

sa dea tuturor playerilor o cutie din aia nush cum sa ii zic :) si playerii dupa sa poata da /openbox  

 

 

si la comanda ta de spinpointsforall imi da niste erori

 

C:\Users\GAME\Documents\gmm.pwn(14533) : error 017: undefined symbol "Player"
C:\Users\GAME\Documents\gmm.pwn(14533) : error 017: undefined symbol "Player"
C:\Users\GAME\Documents\gmm.pwn(14533) : warning 215: expression has no effect
C:\Users\GAME\Documents\gmm.pwn(14533) : error 001: expected token: ";", but found "]"
C:\Users\GAME\Documents\gmm.pwn(14533) : fatal error 107: too many error messages on one line
 
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
 
 
4 Errors.
Link to comment
Share on other sites

  • Administrator

 

sa dea tuturor playerilor o cutie din aia nush cum sa ii zic :) si playerii dupa sa poata da /openbox  

 

 

si la comanda ta de spinpointsforall imi da niste erori

 

C:\Users\GAME\Documents\gmm.pwn(14533) : error 017: undefined symbol "Player"
C:\Users\GAME\Documents\gmm.pwn(14533) : error 017: undefined symbol "Player"
C:\Users\GAME\Documents\gmm.pwn(14533) : warning 215: expression has no effect
C:\Users\GAME\Documents\gmm.pwn(14533) : error 001: expected token: ";", but found "]"
C:\Users\GAME\Documents\gmm.pwn(14533) : fatal error 107: too many error messages on one line
 
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
 
 
4 Errors.

 

Pai faci exact cum ti-am dat comanda anterioara, numai ca modifci datele.

 

Arata-mi 2-3 randuri din comanca in care ai erorile.

Link to comment
Share on other sites

YCMD:spinpointsforall( playerid, params[], help ) {

    if( !PlayerInfo[ playerid ][ pAdmin ] )

        return SCM( playerid, -1, "Nu ai admin" );

 

    new points;

    if( sscanf( params, "i", points ) )

        return SCM( playerid, -1, "/spinpointsforall <total points>" );

 

    new gQuery[ 128 ], string[ 128 ];

    foreach( new x : Player ) {

        if( IsPlayerConnected( x ) || x != INVALID_PLAYER_ID ) {

            format( string, sizeof string, "* Administratorul %s ti-a dat %d puncte de spin. (Total: %d)", getPlayerName( playerid ), points, PlayerInfo[ x ][ pSpinPoints ] );

            SCM( x, COLOR_YELLOW, string );

 

            PlayerInfo[ x ][ pSpinPoints ] = points;

 

            format( gQuery, sizeof gQuery, "UPDATE `users` SET `SpinPoints` = '%d' WHERE `id` = '%d'", PlayerInfo[ x ][ pSpinPoints ], PlayerInfo[ x ][ pSQLID ] );

            mysql_tquery( SQL, gQuery );

        }

    }

 

    format( string, sizeof string, "* Ai acordat %d puncte de spin tuturor jucatorilor online.", points );

    SCM( x, COLOR_YELLOW, string );

 

    return true;

}

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...