Help with native
Hello boys and girls, can some one teach me with natives, i need some help.
in .inc file i have native like this -> Code:
/**Code:
public native_get_user_rank(iPluginID, iParamNum)Thanks you. UPDATE........ i Did like this but even if my rank for ex is Silver IV i got message like this [RANK] "NAME" has connected and he is "SILVER I" rank. Code:
new szRank[32]; |
Re: Help with native
That looks correct. Is "SILVER I" a valid rank name? Did you try printing just szRank by itself with client_print() just as a sanity check to make sure it's not happening in the client_print_color() function? Did you check the value that is returned by csgor_get_user_rank() to see if the rank ID is correct?
Add this: Code:
client_print(0, print_chat, "Rank Name: %s (%d)", szRank, returnValueHere) |
Re: Help with native
"Silver 1" is rankid- 1... When im loggin to CS:GO mod enter pw and press login then shows correctly for example my rank id - 5 it szRank print that im "Silver Elite" But if im not logged it always print "SILVER 1"
BTW error in logs Code:
L 04/12/2022 - 00:16:19: [AMXX] Displaying debug trace (plugin "connectingmsg.amxx", version "1.0") |
Re: Help with native
Quote:
https://github.com/ShadowsAdi/CSGORe...make.sma#L2625 If you run into any issue, you can open a ticket on project's Github. https://github.com/ShadowsAdi/CSGORemake/issues |
Re: Help with native
Quote:
|
Re: Help with native
That also helps me: Thank you! I'm not a developer, but modding sure does require being one.
|
Re: Help with native
Quote:
Code:
rank = SQL_ReadResult(query, SQL_FieldNameToNum(query, "Rank"));Code:
formatex(itemName, charsmax(itemName), "%L", id, "CSGO_CLANS_APPLICATION_ITEM", userName, aplpoints, rank);is it possible to convert it to string? bcuz when im using native Code:
csgor_get_user_rank(id, szRank, charsmax(szRank));BTW if someone else can help me here is main plugin native Code:
public native_get_user_rank(iPluginID, iParamNum) |
Re: Help with native
Quote:
|
Re: Help with native
Quote:
Code:
L 04/19/2022 - 21:23:38: [CS:GO Remake] Player is not connected (6)Code:
rank = SQL_ReadResult(query, SQL_FieldNameToNum(query, "Rank")); |
Re: Help with native
Quote:
client_print_color(0, print_chat, "^4[RANK ^3%s ^1has connected, and he is%s.", szRank); |
| All times are GMT -4. The time now is 00:18. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.