Jump to content

SA:MP - problema %s


s0nyx
 Share

Recommended Posts

Salut! Stie cinve cum pun o restrictie pe %s la dialogurile de change pass, report, register si login? (in pawn)

                                                                                                                              

Link to comment
Share on other sites

Pune asta la OnDialogResponse 

 

 

if(strfind(inputtext,"'") || strfind(inputtext,"'"))

{

for(new i; i < strlen(inputtext); i++)

{

if(strfind(inputtext[i],"%", true) == 0)

{

inputtext[i] = '-';

}

if(strfind(inputtext[i],"'", true) == 0)

{

inputtext[i] = '-';

}

}

SCM(playerid, COLOR_YELLOW2, "Eroare: Nu poti folosi aceste caractere.");


}

Sursa: B-zone.

Link to comment
Share on other sites

Multumesc!

                                                                                                                              

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

  • Recently Browsing   0 members

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