Jump to content
Autentificarea cu Google și Facebook nu mai este disponibilă. ×

Question

Posted

salutare,am si eu urmatoarea problema,primesc urmatoarea eroare in pawno si nu stiu cu ce sa inlocuiesc sau ce sa fac,va rog daca puteti sa ma ajutati

E:\DEPEFI~1\......\GAMEMO~1\.....pwn(181) : error 017: undefined symbol "reason"

Multumesc

4 answers to this question

Recommended Posts

Posted

Posteaza tot callback-ul adica de unde scrie public ...

logo.png

ATENTIE!!! Nu imi trimiteti mesaje private care au legatura cu scriptingul. NU mai scriptez.

Posted
public OnPlayerDisconnect(playerid)
{
new pName[24];
    new string[128];
    GetPlayerName(playerid, pName, 24);
    switch(reason)
    {
    	case 0: format(string, 128, "~y~%s has left the server ~w~(Timeout)", pName);
     	case 1: format(string, 128, "~y~%s has left the server ~w~(Leaving)", pName);
      	case 2: format(string, 128, "~y~%s has left the server ~w~(Kicked/Banned)", pName);
    }

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.