SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Thread Tools Display Modes
Old 22/12/2013, 04:08 PM   #1
Huge Clucker
Acres's Avatar
Join Date: Dec 2013
Location: Estonia
Posts: 283
Reputation: 24
Default Help me with 1 more thing please :)

guys if you dont mind i would like to know how to fix this last thing.

if your taking guns from guns list then it tells you that you have Registred in the server and everygun you take it tells you that i dont know whats the problem(NOTE: i got the reg system fixed that it wont kick me anymore)


    if (dialogid ==	DIALOGREG)
        new name[MAX_PLAYER_NAME], file[256]; //string[128];
        GetPlayerName(playerid, name, sizeof(name));
        format(file, sizeof(file), SERVER_USER_FILE, name);
        if(!response) return Kick(playerid);
        if (!strlen(inputtext)) return
        ShowPlayerDialog(playerid, 1, DIALOG_STYLE_INPUT, "You Havent been Registred", "Welcome, your not registered mate, input your registration pw below", "Register", "Leave");
        dini_IntSet(file, "Password", udb_hash(inputtext));
        dini_IntSet(file, "AdminLevel",PlayerInfo[playerid][pAdminLevel] = 0);
        dini_IntSet(file, "Money",PlayerInfo[playerid][pCash] = 500);
        dini_IntSet(file, "Score",PlayerInfo[playerid][pScore] = 0);
		SendClientMessage(playerid,COLOR_YELLOW,"[SYSTEM]: You have Registerd in World of Stunting Server! Welcome !");
        gPlayerLogged[playerid] = 1;
Please help me if you can
Acres is offline   Reply With Quote
Old 22/12/2013, 04:11 PM   #2
Spam Machine
Konstantinos's Avatar
Join Date: Dec 2011
Posts: 11,827
Reputation: 1401
Default Re: Help me with 1 more thing please :)

I used to have some strange problems such as yours with the dialogs too. After using easydialog include by Emmet_, everything works great!

You can find the include here:
Life is like riding a bicycle. To keep your balance, you must keep moving.

[Tutorial] How to use SQLite
[FilterScript] Tune System
Konstantinos is offline   Reply With Quote
Old 22/12/2013, 04:41 PM   #3
Nero_3D's Avatar
Join Date: Jun 2007
Location: Germany
Posts: 2,856
Reputation: 692
Default AW: Help me with 1 more thing please :)

Switching to another system wont fix the problem... it will move it to somewhere else
In most cases it just seems that it is fixed due some circumstances, wont argue on that

Also this include isn't optimsed at all, additionally you can't beat a switch with CallLocalFunction, no offense
Nero_3D is offline   Reply With Quote

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Please i need this thing pls help me ProShooter22 Server Support 10 09/04/2013 01:30 AM
some help with this thing fordawinzz Scripting Help 0 15/01/2012 12:40 PM
Help with this thing xLowrider Help Archive 3 06/12/2009 05:03 AM
Vehicle respawn thing thing velkarumpali Help Archive 5 28/07/2009 07:29 PM

All times are GMT. The time now is 09:17 AM.

Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.