SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 21/06/2013, 11:57 AM   #1
mineralo
Gangsta
 
mineralo's Avatar
 
Join Date: Oct 2011
Posts: 552
Reputation: 9
Default need help with send values from FS TO GM

well, I need to transfer player's stuff from FS to GM but I get error, what's wrong?
FS CODE
pawn Code:
#include <a_samp>
enum pInfo
{
    shit
}
new PlayerInfo[MAX_PLAYERS][pInfo];

public OnFilterScriptInit()
{
    print("\n--------------------------------------");
    print(" Test FS");
    print("--------------------------------------\n");
    PlayerInfo[0][shit]=243;
    CallRemoteFunction("callMe","ddd",0,shit,PlayerInfo[0][shit]);
    return 1;
}

public OnFilterScriptExit()
{
    return 1;
}

GM Code
pawn Code:
#include <a_samp>

enum pInfo
{
    shit
}
new PlayerInfo[MAX_PLAYERS][pInfo];

main()
{
    print("\n----------------------------------");
    print(" test gm");
    print("----------------------------------\n");
}

public OnGameModeInit()
{
    // Don't use these lines if it's a filterscript
    SetGameModeText("Blank Script");
    AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
    return 1;
}

public OnGameModeExit()
{
    return 1;
}

forward callMe(playerid,key,date);
public callMe(playerid,key,date)
{
    PlayerInfo[playerid][key]=date;//line 36
    printf("shit = %d",PlayerInfo[playerid][key]); //line 37
    return 1;
}

error code
Code:
tst.pwn(36) : warning 213: tag mismatch
tst.pwn(37) : warning 213: tag mismatch
I just testing only with one id
mineralo is offline   Reply With Quote
Old 21/06/2013, 12:01 PM   #2
Smokkr
Huge Clucker
 
Smokkr's Avatar
 
Join Date: May 2012
Location: Bulgaria
Posts: 313
Reputation: 13
Default Re: need help with send values from FS TO GM

Wrong try to solve it.
__________________
Quote:
One day I will open my own gallery for naked people.

Last edited by Smokkr; 21/06/2013 at 12:07 PM. Reason: Sorry :/
Smokkr is offline   Reply With Quote
Old 21/06/2013, 12:06 PM   #3
mineralo
Gangsta
 
mineralo's Avatar
 
Join Date: Oct 2011
Posts: 552
Reputation: 9
Default Re: need help with send values from FS TO GM

Quote:
Originally Posted by ****** View Post
You realise that you've removed the most vital information to diagnosing the problem right?
what you mean?
mineralo is offline   Reply With Quote
Old 21/06/2013, 12:09 PM   #4
mineralo
Gangsta
 
mineralo's Avatar
 
Join Date: Oct 2011
Posts: 552
Reputation: 9
Default Re: need help with send values from FS TO GM

I'm tring at moment just with one variable and after will try to use more, and if will be alright will use in gm
mineralo is offline   Reply With Quote
Old 21/06/2013, 12:13 PM   #5
mineralo
Gangsta
 
mineralo's Avatar
 
Join Date: Oct 2011
Posts: 552
Reputation: 9
Default Re: need help with send values from FS TO GM

I'm sending from fs the enum to gm
pawn Code:
CallRemoteFunction("callMe","ddd",0,shit,PlayerInfo[0][shit]);
forward callMe(playerid,key,date);
public callMe(playerid,key,date)
{
    PlayerInfo[playerid][key]=date;//line 36
    printf("shit = %d",PlayerInfo[playerid][key]); //line 37
    return 1;
}
I'm thinking the enum is not simple variable, could be other type like bool,float,etc
mineralo is offline   Reply With Quote
Old 21/06/2013, 12:17 PM   #6
mineralo
Gangsta
 
mineralo's Avatar
 
Join Date: Oct 2011
Posts: 552
Reputation: 9
Default Re: need help with send values from FS TO GM

thanks, works
mineralo is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Email chat on server? So you send a email to a forwarded email that send the message in the sa-mp server Frede Server Support 4 04/02/2013 06:06 PM
hex values avivelkayam Scripting Help 0 04/04/2012 10:32 PM
[HELP] A lot of values WThieves Help Archive 6 27/07/2010 02:01 PM
Values Kanji_Suzuki Help Archive 8 13/02/2010 10:53 PM
mysql values JOliver Help Archive 1 08/02/2010 10:09 PM


All times are GMT. The time now is 08:14 AM.


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