Jump to content
  • 0

Chat newbie


Pitbul97

Question

Daca nu are cineva chat newbie pe zcmd ?

 

Problema intalnita (descriere):  Am incercat sa bag comanda /n  adica newbie chat si imi da erori am facut ca la carte va arat mai jos cum am procedat imi poate spune cineva unde am gresit  va rog frumos ?
Ero(area / rile) / warning-(ul / urile):

(33909) : error 028: invalid subscript (not an array or too many subscripts): "NewbTimer"
(33909) : warning 215: expression has no effect
(33909) : error 001: expected token: ";", but found "]"
(33909) : error 029: invalid expression, assumed zero
(33909) : fatal error 107: too many error messages on one line


Liniile de cod / sursa / script-ul(obligatoriu): http://pastebin.com/m5xehz6A
Imagini / Video (optional): nu e necesar 
Ati incercat sa rezolvati singur?:  da dar daca incerc sa modific imi da alte erori 

Alte detalii: am adaugat urmatoarele de jos.

new NewbieTimer[MAX_PLAYERS];

forward NewbTimer(playerid);


OnPlayerConnect:

NewbieTimer[playerid] = 0;


public NewbTimer(playerid)
{
    NewbieTimer[playerid] = 0;
    return 1;
}

Edited by Pitbul97
Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

Asa cum a zis si HONNOR mai sus incearca sa scoti din timere daca vrei sa faci ceva ok...Poti incerca cu gettime() sau simplu faci un timer general in care folosesti ceva de genul:

if( playerVariables[ i ][ pNMuted ] != 0 )
{
playerVariables[ i ][ pNMuted ]--;
if( playerVariables[ i ][ pNMuted ] == 0 )
SendClientMessage( i, ~1, "Your mute for /n has been removed by Server!" );
}

 

Sinner.png

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • 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.