SA-MP Forums

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

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old 21/02/2020, 02:33 PM   #1
Razvan234512312
Little Clucker
 
Join Date: Jan 2019
Posts: 20
Reputation: 0
Post SA-MP Scripting help me pls...

C:\Users\kfune\Desktop\GM de Ash\gamemodes\gm.pwn(6) : error 001: expected token: ";", but found "-"
C:\Users\kfune\Desktop\GM de Ash\gamemodes\gm.pwn(40) : warning 213: tag mismatch
C:\Users\kfune\Desktop\GM de Ash\gamemodes\gm.pwn(43) : warning 217: loose indentation
C:\Users\kfune\Desktop\GM de Ash\gamemodes\gm.pwn(59) : error 017: undefined symbol "qQuery"
C:\Users\kfune\Desktop\GM de Ash\gamemodes\gm.pwn(59) : warning 215: expression has no effect
C:\Users\kfune\Desktop\GM de Ash\gamemodes\gm.pwn(59) : error 001: expected token: ";", but found "]"
C:\Users\kfune\Desktop\GM de Ash\gamemodes\gm.pwn(59) : error 029: invalid expression, assumed zero
C:\Users\kfune\Desktop\GM de Ash\gamemodes\gm.pwn(59) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


5 Errors.
[Finished in 0.2s]



/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

#include <a_samp>

#include <a_mysql>


new SQL - -1, qQuery[256]

#define function%0(%1) forward %0(%1); public %0(%1)

enum pInfo {
pSQLID,
pName[MAX_PLAYER_NAME],
pPassword[32],
pEmail[32],
pGender

}
new PlayerInfo[MAX_PLAYERS][pInfo];

enum {
// Register
DIALOG_REGISTER,
DIALOG_EMAIL,
DIALOG_GENDER,

// Login
DIALOG_LOGIN
}

#define Ash "#1"

main() { print("Gamemode-ul este in curs de procesare..."); }





public OnGameModeInit()
{
SQL = mysql_connect("localhost", "root", "ash", "");

// Don't use these lines if it's a filterscript
SetGameModeText(Ash);
AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
return 1;
}



public OnPlayerRequestClass(playerid, classid)
{
SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
return 1;
}

public OnPlayerConnect(playerid) {
qQuery[0] = EOS;
mysql_format(SQL, qQuery, sizeof(qQuery), "SELECT * FROM `users` WHERE `Name`='%s' LIMIT 1", GetName(playerid));
mysql_tquery(SQL, qQuery, "CheckAccount", "1", playerid);
return 1;

}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) {
switch(dialogid) {

}
return 1;
}

function CheckAccount(playerid) {
switch(cache_num_rows()) {
case 0: ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_PASSWORD, "Register", "Scrie o Parola pentru a te putea inregistra:", "Select", "Cancel");
case 1: ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_PASSWORD, "Login", "Scrie Parola pentru a te putea loga:", "Select", "Cancel");
}
return 1;
}

stock GetName(playerid) {
new playerName[MAX_PLAYER_NAME];
GetPlayerName(playerid, playerName, MAX_PLAYER_NAME);
return playerName;
}
Razvan234512312 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
Who/what inspired you to start scripting? How did you start? What now? What are you planning for your scripting future? DanishHaq Everything and Nothing 30 06/03/2015 03:49 PM
Need a bit of help for scripting KarlCassidy Scripting Help 5 23/03/2014 12:24 AM
Offering FREE scripting help && co-scripting sleepysnowflake Scripting Help 0 09/10/2012 07:53 PM
Need help with scripting decastro96 Help Archive 8 11/06/2011 11:09 PM
Scripting Help for New server, moved to scripting disscussion Guardian Help Archive 2 03/06/2009 06:29 AM


All times are GMT. The time now is 03:12 AM.


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