What's %s and others.
hi, i'm wondering what's % ,%s , %d and %L, how do i use them?
also if i'm to log a player msg's msg when he type /log <msg> it'll log down that specific player msg to a file. so if he didn't type /log <his msg> it wont log down his message :D is that possible? |
Re: What's %s and others.
For your first question
%s - string %d - integer %i - integer %L - string from multilanguage file client_print(id,print_chat," Your level is : %d Your class is : %s", 25, "BlackSpider") |
Re: What's %s and others.
so how does %s , %d works?
|
Re: What's %s and others.
http://wiki.alliedmods.net/Pawn_Tutorial
A quick sample PHP Code:
Code:
This is string number 5 |
Re: What's %s and others.
Quote:
|
Re: What's %s and others.
log_to_file
|
Re: What's %s and others.
Register command 'say' and if the first 4 characters in the string said are /log, then you can use 'parse' to split it up. Then log the text to a file.
|
| All times are GMT -4. The time now is 23:33. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.