Jump to content
  • 0

Help me on query_sql


Question

4 answers to this question

Recommended Posts

Posted

change permanently ??

try

.@name$ = "[Cool] "+strcharinfo(0);
query_sql( "UPDATE `char` SET `name`='"+.@name$+"' WHERE `char_id`='"+getcharid(0)+"' );

Posted (edited)

basically, this is a cut of the script

set .@new_name$, "[Cool] "+strcharinfo(0)+;
query_sql("UPDATE `char` SET name='"+escape_sql(.@new_name$)+"' WHERE `char_id`='"+escape_sql(getcharid(0))+"');

CMIIW

Have a nice day!

*started typing 3 hrs ago..==, able to send a minute ago

Edited by Winz
Posted

hmm.. thank you emistry, i try it.. no its not permanently, how about if the name expires, what i mean, i want to put that script on my pvp ladder, but if the name expires, what should i put to revert back to its original name?

Posted

If the player own a guild, you must uptade his name in guild table too. But I think uptade table for this is too complicated. I believe fakename is better but you aren't forced to believe me XD

prontera,150,180,5    script    I like Rabbit    456,{

   Timepgm = gettimetick(2) + 20;
   dispbottom "Display [Cool] during 20 sec.";
   end;

OnPCLoginEvent:
   if( Timepgm > gettimetick(2) )
       atcommand "@fakename [Cool] "+ strcharinfo(0);
   else
       Timepgm = 0;
   end;
}

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...