Search Results
PHP код:
new PlayerLuck[playerid];  // <------- Variable that player's luck stored in.new rand = random(100);if(0 <= rand && rand <= PlayerLuck[playerid]) r...
156
i'm sorry...
it was my fault
Edit:
Код:
new Float:PlayerHealth[MAX_PLAYERS];
341
Anti health hack:
simply, make server-sided health
how ?
just define a new variable and store player health into it.
set a 1 second repeating timer and check if player health is higher than variable v...
341
Quote:
This callback is called when a player enters or exits a mod shop.
OnEnterExitModShop
341
save skin id for players in a file or sql database
load it into a variable and set it.
a good MySQL register/login (Saving system) Tutorial: https://sampforum.blast.hk/showthread.php?tid=485633
and a...
179
Код:
`email` = %d
should be
Код:
`email` = '%s'
check other things. format strings with "%s" , integers with "%d" or "%i" and floats with "%f"
and a tip:
you don't need save every thing in "...
259
i didn't test it
just create a new variable (string) and use "strcat" to store formatted data into it
then show it as a dialog
set "string" size ... i think 2000 will be enough.
just try
PHP код...
512
PHP код:
if(listitem == 0)
{
    if(GetPlayerCash(playerid) < 500) return SendClientMessageEx(playerid, COLOR_GRAD4, "You don't have the cash for this item or You needÂ...
358
https://sampforum.blast.hk/showthread.php?tid=447813
143
can you give me "ACCOUNTS_PATH" define ?
332
your line is too long
use strcat
Код:
if(strcmp("/rules", cmdtext, true, 10) == 0)
{
new Rules[500];
strcat(Rules, "1.)Do Not Hack/Cheat/Mods\n2.)Respect Admins And Players\n3.)Do Not Ask To Be...
225
Please Read This Tutorial:
https://sampforum.blast.hk/showthread.php?tid=256961
219
Quote:
"SetTimer" and "SetTimerEx"...they are not very accurate and that they don't correctly support strings and arrays.
Use "SetTimer_" and "SetTimerEx_" and check accurately
se...
184
you can check time between deaths with "GetTickCount()"
but for more accuracy:
if i kill someone, i have to give damage to him/her !
so make a variable and check player has received any damage or no
i...
307
as @jamesbond007 said you HAVE TO read whole SA:MP Wiki
after that i suggest you start a new gamemode
when you write a gamemode (if you've read wiki) you will automatically force to learn new things !...
138
your code:
Код:
`Score`=%d WHERE `ID`=%d"
" pInfo[playerid][ID], pInfo[playerid][Score]"
it should be like:
Код:
" pInfo[playerid][Score], pInfo[playerid][ID]"
Edited Code:
Код:
mysql_fo...
177
i explained code with comments ... read them
Код:
enum sAcc
{
Announce,
ReadPms,
MaxPing,
ReadCmds,
AutoLog,
sLocked,
sPass[129],
Chat,
ReporterName[MAX_PLAYER_NAME],
TargetName[MAX_...
298
ok i'll give you an example, but can you explain what is this system ?
its for players or global ?
and a Question.. why you don't use MySQL or SQLite ?
[Edit]: i got it .. please wait i'll give yo...
298