[Install guide] Moderntopia + mySQL
#21

You've have been fucked in sql removing, ask in Moderntopia topic, not here.
Reply
#22

Dude, it's looking really good.

I suggest you people also use Navicat, it would be a lot more easy and faster on editing the database values.

Keep it up!
Reply
#23

Quote:
Originally Posted by Luisinho
Dude, it's looking really good.

I suggest you people also use Navicat, it would be a lot more easy and faster on editing the database values.

Keep it up!
I like it Wamp :P Used 2 years.
But thanks.
Reply
#24

Topic up, to any1 can see.
Reply
#25

VERY NICE
Reply
#26

Quote:
Originally Posted by C0NNecT
VERY NICE
Thnx :P
Reply
#27

Vдga hea! ( Very good! )
Reply
#28

nice guide
Reply
#29

Quote:
Originally Posted by ► James_Alex
nice guide
Thanks :P

500 views :P
Reply
#30

Okey i got a problem . when i am trying to run the Wamp server i get a Error:
Reply
#31

Ill rather user mysql & navada
Reply
#32

Removed, sorry.
Reply
#33

Hey i sorted the whole script thing out but i still get this error when going in game, and when in game nothing works, it just stays at the bit where it says

Connected to Samp0.3aServer

This is what the console says 'Script[gamemodes/mtrp-final.amx]: Run time error 19: " File or function is not found "
Don't know what's going on
Reply
#34

How to become an "Admin = 1338" and find the users ?
Reply
#35

Hello Guys well the tutorial is very nice but i got more then three to 4 error's but i fixed them all but now Check out this one :



Код:
C:\DOCUME~1\ADMINI~1\MYDOCU~1\DOWNLO~1\COMPRE~1\NEWSER~1\GAMEMO~1\MTRP-F~1.PWN(9844) : error 017: undefined symbol "SetDisabledWeapons"
C:\DOCUME~1\ADMINI~1\MYDOCU~1\DOWNLO~1\COMPRE~1\NEWSER~1\GAMEMO~1\MTRP-F~1.PWN(10776) : error 021: symbol already defined: "strtok"
C:\DOCUME~1\ADMINI~1\MYDOCU~1\DOWNLO~1\COMPRE~1\NEWSER~1\GAMEMO~1\MTRP-F~1.PWN(10791) : error 047: array sizes do not match, or destination array is too small
C:\DOCUME~1\ADMINI~1\MYDOCU~1\DOWNLO~1\COMPRE~1\NEWSER~1\GAMEMO~1\MTRP-F~1.PWN(11720) : error 017: undefined symbol "ReturnUser"
C:\DOCUME~1\ADMINI~1\MYDOCU~1\DOWNLO~1\COMPRE~1\NEWSER~1\GAMEMO~1\MTRP-F~1.PWN(11788) : error 017: undefined symbol "ReturnUser"
C:\DOCUME~1\ADMINI~1\MYDOCU~1\DOWNLO~1\COMPRE~1\NEWSER~1\GAMEMO~1\MTRP-F~1.PWN(11797) : error 017: undefined symbol "ReturnUser"
C:\DOCUME~1\ADMINI~1\MYDOCU~1\DOWNLO~1\COMPRE~1\NEWSER~1\GAMEMO~1\MTRP-F~1.PWN(11821) : error 017: undefined symbol "ReturnUser"
C:\DOCUME~1\ADMINI~1\MYDOCU~1\DOWNLO~1\COMPRE~1\NEWSER~1\GAMEMO~1\MTRP-F~1.PWN(11830) : error 017: undefined symbol "ReturnUser"
C:\DOCUME~1\ADMINI~1\MYDOCU~1\DOWNLO~1\COMPRE~1\NEWSER~1\GAMEMO~1\MTRP-F~1.PWN(11856) : error 017: undefined symbol "ReturnUser"
C:\DOCUME~1\ADMINI~1\MYDOCU~1\DOWNLO~1\COMPRE~1\NEWSER~1\GAMEMO~1\MTRP-F~1.PWN(11892) : error 017: undefined symbol "ReturnUser"
C:\DOCUME~1\ADMINI~1\MYDOCU~1\DOWNLO~1\COMPRE~1\NEWSER~1\GAMEMO~1\MTRP-F~1.PWN(12585) : error 017: undefined symbol "ReturnUser"
C:\DOCUME~1\ADMINI~1\MYDOCU~1\DOWNLO~1\COMPRE~1\NEWSER~1\GAMEMO~1\MTRP-F~1.PWN(12858) : error 017: undefined symbol "ReturnUser"
C:\DOCUME~1\ADMINI~1\MYDOCU~1\DOWNLO~1\COMPRE~1\NEWSER~1\GAMEMO~1\MTRP-F~1.PWN(12891) : error 017: undefined symbol "ReturnUser"
C:\DOCUME~1\ADMINI~1\MYDOCU~1\DOWNLO~1\COMPRE~1\NEWSER~1\GAMEMO~1\MTRP-F~1.PWN(13456) : warning 219: local variable "mod" shadows a variable at a preceding level
C:\DOCUME~1\ADMINI~1\MYDOCU~1\DOWNLO~1\COMPRE~1\NEWSER~1\GAMEMO~1\MTRP-F~1.PWN(14622) : error 017: undefined symbol "ReturnUser"
C:\DOCUME~1\ADMINI~1\MYDOCU~1\DOWNLO~1\COMPRE~1\NEWSER~1\GAMEMO~1\MTRP-F~1.PWN(14673) : error 017: undefined symbol "ReturnUser"
C:\DOCUME~1\ADMINI~1\MYDOCU~1\DOWNLO~1\COMPRE~1\NEWSER~1\GAMEMO~1\MTRP-F~1.PWN(14730) : error 017: undefined symbol "ReturnUser"
C:\DOCUME~1\ADMINI~1\MYDOCU~1\DOWNLO~1\COMPRE~1\NEWSER~1\GAMEMO~1\MTRP-F~1.PWN(14782) : error 017: undefined symbol "ReturnUser"
C:\DOCUME~1\ADMINI~1\MYDOCU~1\DOWNLO~1\COMPRE~1\NEWSER~1\GAMEMO~1\MTRP-F~1.PWN(15174) : error 017: undefined symbol "ReturnUser"
C:\DOCUME~1\ADMINI~1\MYDOCU~1\DOWNLO~1\COMPRE~1\NEWSER~1\GAMEMO~1\MTRP-F~1.PWN(15373) : error 017: undefined symbol "ReturnUser"
C:\DOCUME~1\ADMINI~1\MYDOCU~1\DOWNLO~1\COMPRE~1\NEWSER~1\GAMEMO~1\MTRP-F~1.PWN(16673) : error 017: undefined symbol "ReturnUser"
C:\DOCUME~1\ADMINI~1\MYDOCU~1\DOWNLO~1\COMPRE~1\NEWSER~1\GAMEMO~1\MTRP-F~1.PWN(17179) : error 017: undefined symbol "ReturnUser"
C:\DOCUME~1\ADMINI~1\MYDOCU~1\DOWNLO~1\COMPRE~1\NEWSER~1\GAMEMO~1\MTRP-F~1.PWN(17251) : error 017: undefined symbol "ReturnUser"
C:\DOCUME~1\ADMINI~1\MYDOCU~1\DOWNLO~1\COMPRE~1\NEWSER~1\GAMEMO~1\MTRP-F~1.PWN(18746) : error 017: undefined symbol "ReturnUser"
C:\DOCUME~1\ADMINI~1\MYDOCU~1\DOWNLO~1\COMPRE~1\NEWSER~1\GAMEMO~1\MTRP-F~1.PWN(19098) : error 017: undefined symbol "ReturnUser"
C:\DOCUME~1\ADMINI~1\MYDOCU~1\DOWNLO~1\COMPRE~1\NEWSER~1\GAMEMO~1\MTRP-F~1.PWN(19279) : error 017: undefined symbol "ReturnUser"
C:\DOCUME~1\ADMINI~1\MYDOCU~1\DOWNLO~1\COMPRE~1\NEWSER~1\GAMEMO~1\MTRP-F~1.PWN(19348) : error 017: undefined symbol "ReturnUser"

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


26 Errors.
Now please can some one tell me here or on a forum pm here about how to fix this thing out ?
Reply
#36

Quote:
Originally Posted by Claudio_Manccini
Hello Guys well the tutorial is very nice but i got more then three to 4 error's but i fixed them all but now Check out this one :



Код:
C:\DOCUME~1\ADMINI~1\MYDOCU~1\DOWNLO~1\COMPRE~1\NEWSER~1\GAMEMO~1\MTRP-F~1.PWN(9844) : error 017: undefined symbol "SetDisabledWeapons"
C:\DOCUME~1\ADMINI~1\MYDOCU~1\DOWNLO~1\COMPRE~1\NEWSER~1\GAMEMO~1\MTRP-F~1.PWN(10776) : error 021: symbol already defined: "strtok"
C:\DOCUME~1\ADMINI~1\MYDOCU~1\DOWNLO~1\COMPRE~1\NEWSER~1\GAMEMO~1\MTRP-F~1.PWN(10791) : error 047: array sizes do not match, or destination array is too small
C:\DOCUME~1\ADMINI~1\MYDOCU~1\DOWNLO~1\COMPRE~1\NEWSER~1\GAMEMO~1\MTRP-F~1.PWN(11720) : error 017: undefined symbol "ReturnUser"
C:\DOCUME~1\ADMINI~1\MYDOCU~1\DOWNLO~1\COMPRE~1\NEWSER~1\GAMEMO~1\MTRP-F~1.PWN(11788) : error 017: undefined symbol "ReturnUser"
C:\DOCUME~1\ADMINI~1\MYDOCU~1\DOWNLO~1\COMPRE~1\NEWSER~1\GAMEMO~1\MTRP-F~1.PWN(11797) : error 017: undefined symbol "ReturnUser"
C:\DOCUME~1\ADMINI~1\MYDOCU~1\DOWNLO~1\COMPRE~1\NEWSER~1\GAMEMO~1\MTRP-F~1.PWN(11821) : error 017: undefined symbol "ReturnUser"
C:\DOCUME~1\ADMINI~1\MYDOCU~1\DOWNLO~1\COMPRE~1\NEWSER~1\GAMEMO~1\MTRP-F~1.PWN(11830) : error 017: undefined symbol "ReturnUser"
C:\DOCUME~1\ADMINI~1\MYDOCU~1\DOWNLO~1\COMPRE~1\NEWSER~1\GAMEMO~1\MTRP-F~1.PWN(11856) : error 017: undefined symbol "ReturnUser"
C:\DOCUME~1\ADMINI~1\MYDOCU~1\DOWNLO~1\COMPRE~1\NEWSER~1\GAMEMO~1\MTRP-F~1.PWN(11892) : error 017: undefined symbol "ReturnUser"
C:\DOCUME~1\ADMINI~1\MYDOCU~1\DOWNLO~1\COMPRE~1\NEWSER~1\GAMEMO~1\MTRP-F~1.PWN(12585) : error 017: undefined symbol "ReturnUser"
C:\DOCUME~1\ADMINI~1\MYDOCU~1\DOWNLO~1\COMPRE~1\NEWSER~1\GAMEMO~1\MTRP-F~1.PWN(12858) : error 017: undefined symbol "ReturnUser"
C:\DOCUME~1\ADMINI~1\MYDOCU~1\DOWNLO~1\COMPRE~1\NEWSER~1\GAMEMO~1\MTRP-F~1.PWN(12891) : error 017: undefined symbol "ReturnUser"
C:\DOCUME~1\ADMINI~1\MYDOCU~1\DOWNLO~1\COMPRE~1\NEWSER~1\GAMEMO~1\MTRP-F~1.PWN(13456) : warning 219: local variable "mod" shadows a variable at a preceding level
C:\DOCUME~1\ADMINI~1\MYDOCU~1\DOWNLO~1\COMPRE~1\NEWSER~1\GAMEMO~1\MTRP-F~1.PWN(14622) : error 017: undefined symbol "ReturnUser"
C:\DOCUME~1\ADMINI~1\MYDOCU~1\DOWNLO~1\COMPRE~1\NEWSER~1\GAMEMO~1\MTRP-F~1.PWN(14673) : error 017: undefined symbol "ReturnUser"
C:\DOCUME~1\ADMINI~1\MYDOCU~1\DOWNLO~1\COMPRE~1\NEWSER~1\GAMEMO~1\MTRP-F~1.PWN(14730) : error 017: undefined symbol "ReturnUser"
C:\DOCUME~1\ADMINI~1\MYDOCU~1\DOWNLO~1\COMPRE~1\NEWSER~1\GAMEMO~1\MTRP-F~1.PWN(14782) : error 017: undefined symbol "ReturnUser"
C:\DOCUME~1\ADMINI~1\MYDOCU~1\DOWNLO~1\COMPRE~1\NEWSER~1\GAMEMO~1\MTRP-F~1.PWN(15174) : error 017: undefined symbol "ReturnUser"
C:\DOCUME~1\ADMINI~1\MYDOCU~1\DOWNLO~1\COMPRE~1\NEWSER~1\GAMEMO~1\MTRP-F~1.PWN(15373) : error 017: undefined symbol "ReturnUser"
C:\DOCUME~1\ADMINI~1\MYDOCU~1\DOWNLO~1\COMPRE~1\NEWSER~1\GAMEMO~1\MTRP-F~1.PWN(16673) : error 017: undefined symbol "ReturnUser"
C:\DOCUME~1\ADMINI~1\MYDOCU~1\DOWNLO~1\COMPRE~1\NEWSER~1\GAMEMO~1\MTRP-F~1.PWN(17179) : error 017: undefined symbol "ReturnUser"
C:\DOCUME~1\ADMINI~1\MYDOCU~1\DOWNLO~1\COMPRE~1\NEWSER~1\GAMEMO~1\MTRP-F~1.PWN(17251) : error 017: undefined symbol "ReturnUser"
C:\DOCUME~1\ADMINI~1\MYDOCU~1\DOWNLO~1\COMPRE~1\NEWSER~1\GAMEMO~1\MTRP-F~1.PWN(18746) : error 017: undefined symbol "ReturnUser"
C:\DOCUME~1\ADMINI~1\MYDOCU~1\DOWNLO~1\COMPRE~1\NEWSER~1\GAMEMO~1\MTRP-F~1.PWN(19098) : error 017: undefined symbol "ReturnUser"
C:\DOCUME~1\ADMINI~1\MYDOCU~1\DOWNLO~1\COMPRE~1\NEWSER~1\GAMEMO~1\MTRP-F~1.PWN(19279) : error 017: undefined symbol "ReturnUser"
C:\DOCUME~1\ADMINI~1\MYDOCU~1\DOWNLO~1\COMPRE~1\NEWSER~1\GAMEMO~1\MTRP-F~1.PWN(19348) : error 017: undefined symbol "ReturnUser"

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


26 Errors.
Now please can some one tell me here or on a forum pm here about how to fix this thing out ?
Go into the Pawno Script, and find where it says #define *defined Thing* and type #define ReturnUser and if that hasn't worked, try and find forward and in a new spot type forward ReturnUser + delete #define ReturnUser, if neither of this worked then I am not too sure

Also SetDisabledWeapons is easy to fix, find SetDisabledWeapons and simply delete that line.
Reply
#37

pawn Код:
ReturnUser(text[], playerid = INVALID_PLAYER_ID)
{
    new pos = 0;
    while (text[pos] < 0x21) // Strip out leading spaces
    {
        if (text[pos] == 0) return INVALID_PLAYER_ID; // No passed text
        pos++;
    }
    new userid = INVALID_PLAYER_ID;
    if (IsNumeric(text[pos])) // Check whole passed string
    {
        // If they have a numeric name you have a problem (although names are checked on id failure)
        userid = strval(text[pos]);
        if (userid >=0 && userid < MAX_PLAYERS)
        {
            if(!IsPlayerConnected(userid))
            {
                /*if (playerid != INVALID_PLAYER_ID)
                {
                    SendClientMessage(playerid, 0xFF0000AA, "User not connected");
                }*/

                userid = INVALID_PLAYER_ID;
            }
            else
            {
                return userid; // A player was found
            }
        }
        /*else
        {
            if (playerid != INVALID_PLAYER_ID)
            {
                SendClientMessage(playerid, 0xFF0000AA, "Invalid user ID");
            }
            userid = INVALID_PLAYER_ID;
        }
        return userid;*/

        // Removed for fallthrough code
    }
    // They entered [part of] a name or the id search failed (check names just incase)
    new len = strlen(text[pos]);
    new count = 0;
    new name[MAX_PLAYER_NAME];
    for (new i = 0; i < MAX_PLAYERS; i++)
    {
        if (IsPlayerConnected(i))
        {
            GetPlayerName(i, name, sizeof (name));
            if (strcmp(name, text[pos], true, len) == 0) // Check segment of name
            {
                if (len == strlen(name)) // Exact match
                {
                    return i; // Return the exact player on an exact match
                    // Otherwise if there are two players:
                    // Me and MeYou any time you entered Me it would find both
                    // And never be able to return just Me's id
                }
                else // Partial match
                {
                    count++;
                    userid = i;
                }
            }
        }
    }
    if (count != 1)
    {
        if (playerid != INVALID_PLAYER_ID)
        {
            if (count)
            {
                SendClientMessage(playerid, 0xFF0000AA, "Multiple users found, please narrow earch");
            }
            else
            {
                SendClientMessage(playerid, 0xFF0000AA, "No matching user found");
            }
        }
        userid = INVALID_PLAYER_ID;
    }
    return userid; // INVALID_USER_ID for bad return
}
Reply
#38

Im that [EST] Martin, and that account [EST] Martin is banned. So i created new account and i can't update first post, sorry peoples.
Reply
#39

Ok, well i fixed my last issue with getting mySQL to work, now i was wondering, how do you change a owned vehicle into a different car, for example changing a car into a plane... * wanting to do it for donation's, if people donate then they get a choice of plane or car... :P
Reply
#40

Nice, I've used navicat instead of phpmyadmin but it still works =D
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)