Search Results
I guess you have to include YSI\y_iterate for the foreach function.
513
You have to change it to
Код:
new PlayerText:vSpeedBox;
Put this under OnPlayerConnect:
Код:
vSpeedBox = CreatePlayerTextDraw(540.666259, 418.637756, "0");
PlayerTextDrawLetterSize(vSpeedBox,...
637
You can do most of those thing just under OnPlayerDeath.The only thing you can't know on OnPlayerDeath is the bodypart.
PHP код:
public OnPlayerDeath(playerid, killerid, reason){    if(k...
435
Код:
SendClientMessageToAll(0x9D000096, string);
435
Is "params" a string?
Are you using something like this?
Код:
CMD:mycmd(playerid, params[])
{
new color;
if(sscanf(params, "h", color))
}
681
There you go
Код:
CMD:stats(playerid, params[])
{
new bstring[460];
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
strcat(bstring, "{009f07}•{ff0000...
355
If you're talking about my suggestion then you are right, mysql won't have any problem storing that information and it's easy to manipulate.
679
You can create an array as you said
Код:
#define MAX_SKINS 312
new unlockedSkin[MAX_PLAYERS][MAX_SKINS]; //This is meant to be a string
And then set it to 1 if it's unlocked and to 0 if it's not
...
679
Код:
CMD:stats(playerid, params[])
{
new str[900], str2[70], giveid, AdminRank[30], weaponset[30];
if (sscanf(params, "u", giveid)) return SendClientMessage(playerid, 0x6FFF00FF, "{F07F1D}...
740
Can you show me the lines where the error occurs?
740
Now about the money and the skin, you'll have to set them after you confirm that the password is correct.
Something like:
Код:
case DIALOG_LOGIN:
{
if(!response)
return Kick(playerid);
...
856
Код:
CMD:stats(playerid, params[])
{
new str[900], str2[70], giveid, AdminRank[30], weaponset[30];
if (sscanf(params, "u", giveid)) return SendClientMessage(playerid, 0x6FFF00FF, "{F07F1D}...
740
You're not using the function "format" properly.
Here's an example of using "format":
Код:
new string[128];
new value = 10, Float:floatValue = 12.0, text[3];
format(text, sizeof(text), "Hi");
form...
740
I tried to rewrite your code a little bit.Here's what I did:
PHP код:
#include <a_samp>
#include <YSI\y_ini>
#define DIALOG_REGISTER 2
#define DIALOG_LOGIN 3
#define DIALOG...
856
Код:
if(!sscanf(...))
{
//do something
}
else
{
//error
}
The sscanf function returns 0 on succes.
640
Код:
OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
As you can see inputtext is an array, a string to be more precise.
So you should do something like this.Instead of
КоÐ...
640
Can you show us the DIALOG_REGISTER?
405
Can you show us the error you're getting?
828
You can use a global boolean variable
Код:
new bool:isTakingDrivingTest[MAX_PLAYERS];
Set it to false inside OnPlayerConnect
Код:
public OnPlayerConnect(playerid)
{
isTakingDrivingTest[pl...
357
Ok, so look at this code:
Код:
function SaveAccountStats(playerid)
{
new INI:File = INI_Open(UserPath(playerid));
INI_SetTag(File,"data");
PlayerInfo[playerid][Skin] = GetPlayerSkin(...
856
