SA-MP Forums

Go Back   SA-MP Forums > Search Forums

Showing results 1 to 25 of 379
Search took 0.01 seconds.
Search: Posts Made By: ikbenremco
Forum: Scripting Help 25/09/2014, 02:13 PM
Replies: 1
Views: 105
Posted By ikbenremco
Arrays

Can I use this: new PhoneContactData[MAX_PLAYERS][_phoneData][MAX_CONTACTS];

Can I have string in _phoneData?? It bugs I think
Forum: Scripting Help 24/09/2014, 08:54 PM
Replies: 0
Views: 377
Posted By ikbenremco
Phone system - variables being overwritten.

Code:

case DIALOG_PHONE_TEXT_NUMBER_INPUT:
{
if (response)
{
new number = SMSPerson[playerid], target;
if (!strlen(inputtext)) return...
Forum: Scripting Help 18/07/2014, 08:16 AM
Replies: 1
Views: 196
Posted By ikbenremco
Forum: Scripting Help 18/07/2014, 08:00 AM
Replies: 1
Views: 196
Posted By ikbenremco
Player frozen upon trying to shoot.

Hello,
I've found out that my shooting system is kinda fucked up, I already tried to comment everything out on OnPlayerUpdate and OnPlayerKeyStateChange. I have no clue why it's fucked up like this...
Forum: Scripting Help 01/07/2014, 03:58 PM
Replies: 10
Views: 534
Posted By ikbenremco
Re: Players crash when they wanna spawn

Found something new:

[18:21:58] Warning(opcode 0x4EE): Exception 0xC0000005 at 0x48C3A9

[18:21:58] Warning(opcode 0x4EE): Exception 0xC0000005 at 0x48C3A9

[18:21:58] Warning(opcode 0x4EE):...
Forum: Scripting Help 01/07/2014, 02:53 PM
Replies: 10
Views: 534
Posted By ikbenremco
Re: Players crash when they wanna spawn

Everything is setted correctly.
Forum: Scripting Help 01/07/2014, 02:01 PM
Replies: 10
Views: 534
Posted By ikbenremco
Re: Players crash when they wanna spawn

public OnPlayerSpawn(playerid)
{
if(Tutorial[playerid])
{
TogglePlayerSpectating(playerid, false);
SetPlayerHealth(playerid, 100);
SetPlayerInterior(playerid,...
Forum: Scripting Help 01/07/2014, 01:48 PM
Replies: 10
Views: 534
Posted By ikbenremco
Re: Players crash when they wanna spawn

Everyone crashes upon login;

What could cause this crash? If you tell me how it starts, I can find the problem instead of posting here.
Forum: Scripting Help 01/07/2014, 01:09 PM
Replies: 10
Views: 534
Posted By ikbenremco
Players crash when they wanna spawn

Crash error; http://pastebin.com/CmXsFXwd

Happends when they try to spawn.
Forum: Scripting Help 26/06/2014, 06:24 PM
Replies: 20
Views: 681
Posted By ikbenremco
Re: OnPlayerDeath gets stuck.

Works, thanks!

Rep!
Forum: Scripting Help 26/06/2014, 06:06 PM
Replies: 20
Views: 681
Posted By ikbenremco
Re: OnPlayerDeath gets stuck.

Can you show me how to do it correctly?
Forum: Scripting Help 26/06/2014, 06:01 PM
Replies: 20
Views: 681
Posted By ikbenremco
Re: OnPlayerDeath gets stuck.

I am never comparing AcceptedHit with INVALID_PLAYER_ID
Forum: Scripting Help 26/06/2014, 05:53 PM
Replies: 20
Views: 681
Posted By ikbenremco
Re: OnPlayerDeath gets stuck.

new AcceptedHit[MAX_PLAYERS];

Under ClearVariables(playerid);

AcceptedHit[playerid] = 999;
Forum: Scripting Help 26/06/2014, 05:49 PM
Replies: 20
Views: 681
Posted By ikbenremco
Re: OnPlayerDeath gets stuck.

printf("OnPlayerDeath: Debug 7"); // Last print
if (AcceptedHit[killerid] == playerid && killerid != INVALID_PLAYER_ID)
{
printf("OnPlayerDeath: Debug 8"); // Doens\'t print
Forum: Scripting Help 26/06/2014, 05:45 PM
Replies: 20
Views: 681
Posted By ikbenremco
Re: OnPlayerDeath gets stuck.

I got that already, read the code above.

He's crashing on this line; if (AcceptedHit[killerid] == playerid && killerid != INVALID_PLAYER_ID)
Forum: Scripting Help 26/06/2014, 05:35 PM
Replies: 20
Views: 681
Posted By ikbenremco
Re: OnPlayerDeath gets stuck.

[19:56:16] OnPlayerDeath debug 1: 0 | 65535 | 255 | 999
[19:56:16] OnPlayerDeath: Debug 1
[19:56:16] OnPlayerDeath: Debug 7
[19:56:16] [death] Jihad_Warrior died 255

It crashes after the 7
Forum: Scripting Help 26/06/2014, 05:29 PM
Replies: 20
Views: 681
Posted By ikbenremco
Re: OnPlayerDeath gets stuck.

Code: printf("OnPlayerDeath debug 1: %d | %d | %d | %d", playerid, killerid, reason, AcceptedHit[playerid]);
printf("OnPlayerDeath: Debug 1");
if (killerid != INVALID_PLAYER_ID &&...
Forum: Scripting Help 26/06/2014, 05:21 PM
Replies: 20
Views: 681
Posted By ikbenremco
Re: OnPlayerDeath gets stuck.

printf("OnPlayerDeath debug 1: %d | %d | %d | %d", playerid, killerid, reason, AcceptedHit[playerid]);
if (killerid != INVALID_PLAYER_ID && AcceptedHit[playerid] == killerid &&...
Forum: Scripting Help 26/06/2014, 05:12 PM
Replies: 20
Views: 681
Posted By ikbenremco
Re: OnPlayerDeath gets stuck.

The same! Tried this before!
Forum: Scripting Help 26/06/2014, 04:47 PM
Replies: 20
Views: 681
Posted By ikbenremco
OnPlayerDeath gets stuck.

Hi, I've encountered a strange problem with my OnPlayerDeath, if there is player who died by a INVALID_PLAYER_ID for example if an admin does /sethp 0 0, he will spawn at 0,0,0 and be in the CJ...
Forum: Scripting Help 26/06/2014, 07:12 AM
Replies: 8
Views: 461
Posted By ikbenremco
Re: Loop + Dialog question.

Fixed the faction issue, still need an answer for the OnPlayerDeath
Forum: Scripting Help 25/06/2014, 08:22 PM
Replies: 8
Views: 461
Posted By ikbenremco
Re: Loop + Dialog question.

Bump, and I got another question I added this hitman system on OnPlayerDeath:

printf("OnPlayerDeath: %d | %d | %d | %d", playerid, killerid, reason, AcceptedHit[playerid]); // is called
if...
Forum: Scripting Help 25/06/2014, 10:30 AM
Replies: 8
Views: 461
Posted By ikbenremco
Re: Loop + Dialog question.

CMD:editfaction(playerid, params[]) // Edits the faction through a dialog
{
if(CharacterData[playerid][pAdmin] >= 5)
{
new totalfac = 0, largestring[504];
for(new i = 1; i <...
Forum: Scripting Help 25/06/2014, 09:10 AM
Replies: 8
Views: 461
Posted By ikbenremco
Re: Loop + Dialog question.

Imagine; you got a dynamic faction system, you will create 3 factions:

1: LSPD
2: LSFMD
3: Hitman

Then you decide to remove the LSFMD, this will make:

1: LSPD
2: None
Forum: Scripting Help 24/06/2014, 05:31 PM
Replies: 8
Views: 461
Posted By ikbenremco
Loop + Dialog question.

Hi,

I got a small question, when I do /factions for example, it's displaying the factions.

Let's say:

Faction 1: LSPD
Faction 2: Hitman
Faction 3: FBI
Showing results 1 to 25 of 379

 

All times are GMT. The time now is 12:16 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2016, Jelsoft Enterprises Ltd.