What's wrong with my command? [+REP] - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: What's wrong with my command? [+REP] (
/showthread.php?tid=490102)
What's wrong with my command? [+REP] -
Jing_Chan - 25.01.2014
pawn Код:
CMD:serverhouses(playerid, params[])
{
if(PlayerInfo[playerid][pAdmin] >= 2))
format(query, sizeof(query), "SELECT * FROM `houses`");
mysql_function_query(dbHandle, query, true, "ShowAmount", "is[128]", playerid, "Dynamic Houses");
return 1
}
else
{
SendClientMessage(playerid, COLOR_WHITE, "You aren't authorized to use this command!");
}
return 1;
}
It just messes my script, what's wrong with it? Got MYSQL included.
Re: What's wrong with my command? [+REP] -
Jing_Chan - 25.01.2014
pawn Код:
C:\Users\James\Desktop\HRP Last\gamemodes\HRP.pwn(38695) : error 029: invalid expression, assumed zero
C:\Users\James\Desktop\HRP Last\gamemodes\HRP.pwn(38696) : warning 217: loose indentation
C:\Users\James\Desktop\HRP Last\gamemodes\HRP.pwn(38697) : error 017: undefined symbol "mysql_function_query"
C:\Users\James\Desktop\HRP Last\gamemodes\HRP.pwn(38699) : error 001: expected token: ";", but found "}"
C:\Users\James\Desktop\HRP Last\gamemodes\HRP.pwn(38700) : error 010: invalid function or declaration
C:\Users\James\Desktop\HRP Last\gamemodes\HRP.pwn(38704) : error 010: invalid function or declaration
C:\Users\James\Desktop\HRP Last\gamemodes\HRP.pwn(44589) : warning 219: local variable "query" shadows a variable at a preceding level
C:\Users\James\Desktop\HRP Last\gamemodes\HRP.pwn(44594) : warning 219: local variable "query" shadows a variable at a preceding level
C:\Users\James\Desktop\HRP Last\gamemodes\HRP.pwn(62124) : warning 203: symbol is never used: "msg"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
5 Errors.