What's wrong with my command? [+REP]
#1

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.
Reply
#2

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.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)