06.10.2014, 11:42
error
line
Code:
error 006: must be assigned to an array
Code:
PlayerInfo[playerid][pEmail] = email;
error 006: must be assigned to an array
PlayerInfo[playerid][pEmail] = email;
can someone explain to me what VectorSize Means?
|
But why would you consider calling it on the server than doing it on your database?
Код:
UPDATE `your_tables` SET `Password`=SHA2(Password, 256) WHERE `id` > 0 |
UPDATE `table` SET `raw`=SHA2("The quick brown fox jumps over the lazy dog", 256) WHERE `id` = 1 //outputs d7a8fbb307d7809469ca9abcb0082e4f8d5651e46d3cdb762d02d0bf37c9e592
WP_Hash(buf, sizeof (buf), "The quick brown fox jumps over the lazy dog"); //outputs B97DE512E91E3828B40D2B0FDCE9CEB3C4A71F9BEA8D88E75C4FA854DF36725FD2B52EB6544EDCACD6F8BEDDFEA403CB55AE31F03AD62A5EF54E42EE82C3FB35
forward SaveSomething(playerid);
public SaveSomething(playerid)
{
if(Something[playerid][ORM_ID] != 0) orm_update(Something[playerid][ORM_ID]);
else
{
new PlayerName[MAX_PLAYER_NAME];
GetPlayerName(playerid, PlayerName, sizeof(PlayerName));
printf("Error: Error saving Something for %s (%d).", PlayerName, playerid);
}
return 1;
}
I recently came into a problem with ORM. It creates an instance with the ID 0. To sort out this problem I have been trying to find out which function it creates it in.
This is an example: pawn Код:
What kind of variable are the ORM ID's? |
if(Something[playerid][ORM_ID])
if(_: Something[playerid][ORM_ID] != 0)
if(Something[playerid][ORM_ID] != ORM: 0)
SendClientMessage(playerid,LIGHTBLUE,"============== \n Online Helpers:");
============== Online Helpers:
Variable[playerid] ++;
Variable[playerid] += 1;
Just do it without the != 0 if you only want to check if the variable is true (not false | not 0)
Or you remove the tag with _: but that would remove the sense of using tags at all (not recommended) Alternative you could set the tag of the zero to ORM: (if thats the correct tag - check your definition) pawn Code:
|
What does setting a players weapon skill actually do?
At 200, I think the player can duel wield certain weapons, and walk with two handed weapons right? Is that the only difference, or is there an increase in accuracy, or quicker reload times, or anything? If there are any other changes it makes, what levels does it occur? |
Is there a way to only give one type of players the ability to use a filterscript, lets say like the boombox filterscript?
|
22:34:29] [debug] Run time error 4: "Array index out of bounds" [22:34:29] [debug] Accessing element at index 333 past array upper bound 199 [22:34:29] [debug] AMX backtrace: [22:34:29] [debug] #0 0004c7c8 in public OnPlayerDeath (15, 333, 18) from v8.36.amx [22:34:29] [debug] Run time error 4: "Array index out of bounds" [22:34:29] [debug] Accessing element at index 630 past array upper bound 199 [22:34:29] [debug] AMX backtrace: [22:34:29] [debug] #0 0004c7c8 in public OnPlayerDeath (15, 630, 39) from v8.36.amx [22:34:29] [debug] Run time error 4: "Array index out of bounds" [22:34:29] [debug] Accessing element at index 575 past array upper bound 199 [22:34:29] [debug] AMX backtrace: [22:34:29] [debug] #0 0004c7c8 in public OnPlayerDeath (15, 575, 26) from v8.36.amx
A cheater came by and spoofed some kills, the anticheat took care of him later. But until then, the server debugged the following:
Код:
22:34:29] [debug] Run time error 4: "Array index out of bounds" [22:34:29] [debug] Accessing element at index 333 past array upper bound 199 [22:34:29] [debug] AMX backtrace: [22:34:29] [debug] #0 0004c7c8 in public OnPlayerDeath (15, 333, 18) from v8.36.amx [22:34:29] [debug] Run time error 4: "Array index out of bounds" [22:34:29] [debug] Accessing element at index 630 past array upper bound 199 [22:34:29] [debug] AMX backtrace: [22:34:29] [debug] #0 0004c7c8 in public OnPlayerDeath (15, 630, 39) from v8.36.amx [22:34:29] [debug] Run time error 4: "Array index out of bounds" [22:34:29] [debug] Accessing element at index 575 past array upper bound 199 [22:34:29] [debug] AMX backtrace: [22:34:29] [debug] #0 0004c7c8 in public OnPlayerDeath (15, 575, 26) from v8.36.amx Should i need to check under every function if the ids are between MAX_PLAYERS, 0 and if INVALID_PLAYER_ID to avoid this problem? |
i need id of a miner wagon, it looks something like this:
https://cdn1.iconfinder.com/data/ico..._wagon-512.png thanks in advance! |