How to check, MySQL
#1

Hey,

I'm using my old method checking if the variable or enum Story is set to 1 by using if(pInfo,blahblah)
It works with yini and dini.

However the method doesn't work in MySQL

pawn Код:
if(pInfo[playerid][Story] == 0)
{
    new msg[526];
    strcat(msg, ""white"Storyline before starting the game\n\n");
    strcat(msg, "You are in a secret mission to deliver the Formula X to other secret agent hq\n");
    strcat(msg, "the mission location locates in San Fierro, While you are talking to the dealer\n");
    strcat(msg, "secret agent about the Formula X in the phone, You didn't saw the coming pedestrian vehicle\n");
    strcat(msg, "you try to missed it, you missed it, but you lost the Formula X, It's up to you\n");
    strcat(msg, "to bring the Formula X back and deliver it to other secret agent hq.\n\n");
    strcat(msg, "Press the Start button in the dialog to start playing");
    ShowPlayerDialog(playerid, STORY, DIALOG_STYLE_MSGBOX, ""white"Storyline", msg, "Start", "");
    pInfo[playerid][Story] = 1;
}
Is there any way to check if pInfo[playerid][Story] integer is set to 1?

Sorry doesn't work..
Reply
#2

Thread updated, Sorry for bumping..
Reply
#3

So, you want to check the variable Story, from the mysql database right?
If yes, can you show us your database table?
Reply
#4

Picture or the code?
Reply
#5

If you want take a picture the content of your table where username, password, etc. is
Reply
#6

Reply
#7

Quote:
Originally Posted by Romel
Посмотреть сообщение
What Program is this?
Reply
#8

It's not a program it's a web browser.

First you need XAMPP to connect in that (In the picture)
Reply
#9

Is there a structur for Username? In this table rfx
Reply
#10

Yes.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)