27.02.2013, 08:03
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;
}