Jump to content

Question

Posted (edited)

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

3 answers to this question

Recommended Posts

  • 0
Posted

1. Codul este irelevant iar in fapt, nu vei primi ajutor.

2. Poti folosi gettime, e mult mai rapid. Avand in vedere ca daca iti vei umple serverul cu Timere create aiurea, va fi un lag imens.

Poti incerca asa: http://pastebin.com/vMytk22T

  • 0
Posted

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

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • 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.