Search Results
Quote:
Originally Posted by Shaneisace
Just remove strval() around the "inputtext" that'll keep it as a string
Strval converts a string into a integer value.
Code:
format(zin,sizeof(zin...
156
Quote:
Originally Posted by Sasino97
Strval returns an integer, so you should change %s to %d
how should I make it return a string?
156
PHP Code:
             if(response)
             {
                 new zin[222];
                if(strval(inputtext) > 128) retu...
156
Sorry for double post, but i fixed it, i just used mysql_retrieve_row(); after mysql_store_result();
109
Quote:
Originally Posted by Infin1ty
What version of MySQL are you using? This looks like a very very old version of MySQL.
While we're trying to determine your MySQL version, please do ge...
109
PHP Code:
stock loadDumus()
{
    new Query[255], vazonas;
    format(Query, sizeof(Query), "SELECT * FROM `NamaiSuDum` WHERE `ID` = 1");
    mysql_query(Query);
    my...
109
PHP код:
                            new txt[150];
                            format(txt, sizeof(txt), "Bankomate yra: $ %i", Ban...
87
How do I make a double slash command with ZCMD?
PHP код:
CMD:/(playerid, params[])
{
                if(!user.admin[playerid]) return SendClientMessage(playerid, 0xFF0000,Â...
104
I'd suggest you make a pickup for pumps instead of a command
120
PHP код:
    if(newkeys == KEY_FIRE && IsPlayerInAnyVehicle(playerid) && GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
    {
                n...
70
Quote:
Originally Posted by ******
What are you trying to do? This can return so many false positives, and I've not seen anyone trying to get an ID from a name like this since sscanf came...
134
Quote:
Originally Posted by ShadowMortar
I already tried that, and then when I create a house, it says no default value for anything.
Then I have no idea
188
Quote:
Originally Posted by ShadowMortar
I think it's
Код:
sscanf(params, "s[128]i", tname, dirikass)
now it shows now warnings and completes only the sendclientmessage(playerid fu...
118
select where as defined and make to NONE
188
Quote:
Originally Posted by ShadowMortar
When I do that, it's like:
[ERROR] CMySQLQuery::Execute[] - (error #1364) Field 'ownername' doesn't have a default value
can you post a screen o...
188
Quote:
Originally Posted by AjaxM
if(sscanf(params, "si", tname, dirikass))
As it is a string, you should specify the string size in the SSCANF function ; example is below.
new example[...
118
you made every field in database to null, edit them and unselect null
188
PHP код:
    if(sscanf(params, "si", tname, dirikass)) return SendClientMessage(playerid, 0xFF0000, "Naudojimas: /skirtidyriku [dalis vardo] [darbo id]");
    if(dirikass =...
118
Quote:
Originally Posted by NoteND
Change
new tname = GetPlayerMid(name);
to
new tname = GetPlayeridMid(name);
omg I'm so stupid, thanks haha
134
PHP код:
stock GetPlayeridMid(name[]) //Boylett
{
    for (new i = 0; i < MAX_PLAYERS; i++)
    {
        if (IsPlayerConnected(i))
        {
      Â...
134