Ok, I've noticed a lot of mistakes on the script, but I will keep it short.
- The identation is killed, that really hurts my eyes.
- Spanish language? Why not translate it to english and then release it?
-
new telexd[12]; 12? What if the teleport name is "iwanttogothereplease" higher than 12 characters? Increase that.
This:
PHP Code:
new Float:XXD,Float:YXD,Float:ZXD;
Could be done like this:
PHP Code:
new Float: Position[3];
Then:
PHP Code:
GetPlayerPos(playerid,XXD,YXD,ZXD);
To:
PHP Code:
GetPlayerPos(playerid,Position[0], Position[1], Position[2]);
This:
PHP Code:
('%s','%f','%f','%f','%d','%s')",nombretele,XXD,YXD,ZXD,interiorXD,Nombre(playerid));
To:
PHP Code:
('%s','%f','%d','%s')",nombretele,Position[3],interiorXD,Nombre(playerid));
Also why are you using
%s and not
%e to escape strings instead? It's an updated version of MySQL!
It's pretty shitty sorry to say, but please improve your code.
And, one more thing!
Do you even compile your code before releasing?!
PHP Code:
#include <a_samp>
#include <a_mysql>
#include <zcmd>
PHP Code:
if(sscanf(params,"s[12]",telexd)) return SendClientMessage(playerid,-1,"*Use: /teleport [name]");
You use sscanf on a command, but it's not compiled on the script? Is this copy-pasted from someone else?
PHP Code:
error 010: invalid function or declaration
error 017: undefined symbol "Database"
error 017: undefined symbol "sscanf"
error 017: undefined symbol "Nombre"
error 017: undefined symbol "SIN_USO"
warning 204: symbol is assigned a value that is never used: "R"
error 017: undefined symbol "sscanf"
error 017: undefined symbol "sscanf"
error 017: undefined symbol "DIALOGO_TELESXD"
error 017: undefined symbol "DIALOGO_TELESXD"
error 017: undefined symbol "DIALOGO_TELESXD"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
10 Errors.
Lol! You don't even know what you're doing bud!