[Include] y_svar - Save and load data with no effort at all!
#14

I was just messing with this a bit and I couldn't get it to work so I ran your code just how it was in the first post, and it isn't printing anything at all in the console after i do /settext and restart the server.

pawn Code:
#include <a_samp>
#include <YSI\y_commands>
#define MODE_NAME "SavedText"
#include <YSI\y_svar>

svar gSavedText[200];
main(){}
public OnGameModeInit()
{
    printf("Saved Text: %s", gSavedText);
}

YCMD:settext(playerid, params[], help)
{
    if (help) return SendClientMessage(playerid, 0xFF0000AA, "Sets the saved text");
    strcpy(gSavedText, params);
    return 1;
}
Reply


Messages In This Thread
y_svar - Save and load data with no effort at all! - by Y_Less - 18.02.2013, 00:37
Re: y_svar - Save and load data with no effort at all! - by RealCop228 - 18.02.2013, 00:44
Re: y_svar - Save and load data with no effort at all! - by Y_Less - 18.02.2013, 00:50
Re: y_svar - Save and load data with no effort at all! - by RealCop228 - 18.02.2013, 01:19
Re: y_svar - Save and load data with no effort at all! - by zDevon - 18.02.2013, 01:28
Re: y_svar - Save and load data with no effort at all! - by E_Meec - 19.02.2013, 14:52
Re: y_svar - Save and load data with no effort at all! - by Y_Less - 19.02.2013, 14:57
Re: y_svar - Save and load data with no effort at all! - by E_Meec - 19.02.2013, 15:27
Re: y_svar - Save and load data with no effort at all! - by Y_Less - 26.02.2013, 02:24
Re: y_svar - Save and load data with no effort at all! - by xhunterx - 26.02.2013, 19:12
Re: y_svar - Save and load data with no effort at all! - by Y_Less - 26.02.2013, 19:29
Re: y_svar - Save and load data with no effort at all! - by xhunterx - 26.02.2013, 22:00
Re: y_svar - Save and load data with no effort at all! - by Y_Less - 26.02.2013, 23:15
Re: y_svar - Save and load data with no effort at all! - by new121 - 27.02.2013, 08:03
Re: y_svar - Save and load data with no effort at all! - by Y_Less - 27.02.2013, 09:53
Re: y_svar - Save and load data with no effort at all! - by new121 - 27.02.2013, 10:19
Re: y_svar - Save and load data with no effort at all! - by xhunterx - 27.02.2013, 14:36
Re: y_svar - Save and load data with no effort at all! - by xhunterx - 27.02.2013, 15:38

Forum Jump:


Users browsing this thread: 1 Guest(s)