Search Results
I guess you have to include YSI\y_iterate for the foreach function.
122
You have to change it to Код: new PlayerText:vSpeedBox; Put this under OnPlayerConnect: Код: vSpeedBox = CreatePlayerTextDraw(540.666259, 418.637756, "0"); PlayerTextDrawLetterSize(vSpeedBox,...
136
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...
92
Код: SendClientMessageToAll(0x9D000096, string);
92
Is "params" a string? Are you using something like this? Код: CMD:mycmd(playerid, params[]) { new color; if(sscanf(params, "h", color)) }
134
There you go Код: CMD:stats(playerid, params[]) { new bstring[460]; new name[MAX_PLAYER_NAME]; GetPlayerName(playerid, name, sizeof(name)); strcat(bstring, "{009f07}•{ff0000...
50
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.
118
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 ...
118
Код: CMD:stats(playerid, params[]) { new str[900], str2[70], giveid, AdminRank[30], weaponset[30]; if (sscanf(params, "u", giveid)) return SendClientMessage(playerid, 0x6FFF00FF, "{F07F1D}...
128
Can you show me the lines where the error occurs?
128
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); ...
117
Код: CMD:stats(playerid, params[]) { new str[900], str2[70], giveid, AdminRank[30], weaponset[30]; if (sscanf(params, "u", giveid)) return SendClientMessage(playerid, 0x6FFF00FF, "{F07F1D}...
128
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...
128
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...
117
Код: if(!sscanf(...)) { //do something } else { //error } The sscanf function returns 0 on succes.
98
Код: 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 КоÐ...
98
Can you show us the DIALOG_REGISTER?
67
Can you show us the error you're getting?
205
You can use a global boolean variable Код: new bool:isTakingDrivingTest[MAX_PLAYERS]; Set it to false inside OnPlayerConnect Код: public OnPlayerConnect(playerid) { isTakingDrivingTest[pl...
83
Ok, so look at this code: Код: function SaveAccountStats(playerid) { new INI:File = INI_Open(UserPath(playerid)); INI_SetTag(File,"data"); PlayerInfo[playerid][Skin] = GetPlayerSkin(...
117