| Welcome, Guest |
You have to register before you can post on our site.
|
| Forum Statistics |
» Members: 6,715
» Latest member: Reda Dhx
» Forum threads: 2,515
» Forum posts: 12,590
Full Statistics
|
| Online Users |
There are currently 501 online users. » 0 Member(s) | 498 Guest(s) Google, Bing, Applebot
|
| Latest Threads |
Apollo Neuro Coupon Code ...
Forum: Spanish/Español
Last Post: jax9090t
Yesterday, 10:33 AM
» Replies: 0
» Views: 11
|
Apollo Neuro Promo Code $...
Forum: Support
Last Post: jax9090t
Yesterday, 10:32 AM
» Replies: 0
» Views: 10
|
Apollo Neuro Discount Cod...
Forum: Pawn Scripting
Last Post: jax9090t
Yesterday, 10:31 AM
» Replies: 0
» Views: 14
|
Apollo Neuro Coupon Code ...
Forum: Lithuanian/Lietuviškas
Last Post: jax9090t
Yesterday, 10:29 AM
» Replies: 0
» Views: 11
|
Apollo Neuro Coupon Code ...
Forum: Programming
Last Post: jax9090t
Yesterday, 10:28 AM
» Replies: 0
» Views: 13
|
Apollo Neuro Promo Code $...
Forum: Questions and Suggestions
Last Post: jax9090t
Yesterday, 10:27 AM
» Replies: 0
» Views: 12
|
Apollo Neuro Discount Cod...
Forum: Programming
Last Post: jax9090t
Yesterday, 10:26 AM
» Replies: 0
» Views: 14
|
Apollo Neuro Coupon Code ...
Forum: Art
Last Post: jax9090t
Yesterday, 10:21 AM
» Replies: 0
» Views: 10
|
VPN/Proxy Block for Your ...
Forum: Libraries
Last Post: Crazy_ArKzX
2026-07-18, 03:01 AM
» Replies: 0
» Views: 32
|
Anti VPN/Proxy pro seu Se...
Forum: Portuguese/Português
Last Post: Crazy_ArKzX
2026-07-18, 02:59 AM
» Replies: 0
» Views: 27
|
|
|
| Message separator issue |
|
Posted by: unix - 2021-04-24, 02:05 AM - Forum: Pawn Scripting
- No Replies
|
 |
Hello,
I am having an issue with the code below - it only works once for one player which has the ascending player id - for other it will just bug out and send out 2 dots ".." completely not doing the work as previously for the asc. player id.
Code: stock SendMessageToPlayer(playerid, color, text[], len = 124)
{
new
? ? text2[ 256 ],
maxstring = 384;
if(strlen(text) > len)
{
? ? strmid(text2, text, len, maxstring);
? ? strdel(text, len, maxstring);
? ? strins(text, " ..", len, maxstring);
? ? strins(text2, ".. ", 0, maxstring);
? ? SendClientMessage(playerid, color, text);
? ? SendClientMessage(playerid, color, text2);
? ? return 1;
}
else return SendClientMessage(playerid, color, text);
}
|
|
|
|
| mysql_query to tquery inline |
|
Posted by: Zow - 2021-04-23, 05:07 PM - Forum: Pawn Scripting
- Replies (1)
|
 |
this one work
Code: GetVehicleCount(playerid)
{
? ? new threadCheck[128], count;
? ? mysql_format(ourConnection, threadCheck, sizeof(threadCheck), "SELECT COUNT(*) FROM vehicles WHERE VehicleOwnerDBID = %d", PlayerInfo[playerid][pDBID]);
? ? new Cache: result = mysql_query(ourConnection, threadCheck);
? ? cache_get_value_index_int(0, 0, count);
? ? cache_delete(result);
? ? return count;
}
this is first time to using inline but its not work as I expect
Code: GetVehicleCountEx(playerid) {
? ? new count;
? ? inline _CountVehicle()
? ? {
? ? ? ? new rows;
? ? ? ? if(cache_get_row_count(rows))
? ? ? ? {
? ? ? ? ? ? cache_get_value_index_int(0, 0, count);
? ? ? ? }
? ? }
? ? MySQL_TQueryInline(ourConnection, using inline _CountVehicle, "SELECT COUNT(*) FROM vehicles WHERE VehicleOwnerDBID = %d", PlayerInfo[playerid][pDBID]);
? ? return count;
}
|
|
|
|
| PAWN compiler on VSCode |
|
Posted by: Behemoth - 2021-04-22, 07:48 PM - Forum: Pawn Scripting
- Replies (2)
|
 |
Hi,
I've recently moved over to VSCode for programming and was wondering if anyone has ever used it for PAWN. If so, could you share how you've got the compiler working on it?
Tried playing around but I've had no luck.
Thanks
|
|
|
|
| HELP! How to Change RP name return chat remove underline OnPlayerText but return 0 ? |
|
Posted by: PutuSuhartawan - 2021-04-22, 10:50 AM - Forum: Pawn Scripting
- Replies (7)
|
 |
Code: public OnPlayerText(playerid, text[])
{
? //new AdaSays[90];
// format(AdaSays, sizeof(AdaSays), ""COL_WHITE"Says: %s", text);
// ProcessChatText(playerid, AdaSays);
? //TalkMessage(ACTION_DISTANCE, playerid, "", text);
? SEM(playerid, ""COL_RED"DEBUG: "COL_WHITE"message text example");
? new string[228];
? format(string, sizeof(string), "%s says: %s", GetRPName(playerid), text);
? CloseMessage(playerid, COLOR_WHITE, string);
? //format(string, sizeof(string), "%s says: %s", GetRPName(playerid), text);
//Log("logs/chatlogplayer.log", string);
? format(string,sizeof(string),"%s", text);
? SetPlayerChatBubble( playerid, string,0xFFFFFFFF,20.0,5500);
? return 1;
}
|
|
|
|
|