SA-MP Forums Archive
GameTextForPlayer error. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: GameTextForPlayer error. (/showthread.php?tid=473186)



GameTextForPlayer error. - jremi - 01.11.2013

Anyone know how to fix this?

C:\Users\Jake\Desktop\LSCRP\LARP\gamemodes\larp.pw n(43144) : error 037: invalid string (possibly non-terminated string)
C:\Users\Jake\Desktop\LSCRP\LARP\gamemodes\larp.pw n(43144) : error 017: undefined symbol "w"
C:\Users\Jake\Desktop\LSCRP\LARP\gamemodes\larp.pw n(43144) : error 017: undefined symbol "Los"
C:\Users\Jake\Desktop\LSCRP\LARP\gamemodes\larp.pw n(43144) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


4 Errors.


pawn Код:
SetPlayerVirtualWorld(playerid, 0);
        PlayerInfo[playerid][pVirWorld] = 0;
        GameTextForPlayer(playerid, "~w~Los Santos
        "
, 5000, 1);
        SetPlayerInterior(playerid, 0);
        SetPlayerPos(playerid,454.5949,-1500.6449,30.8821);
        OnPlayerExitFood(playerid); // ?
        PlayerInfo[playerid][pInt] = 0;
    }



Re: GameTextForPlayer error. - DanishHaq - 01.11.2013

Change

pawn Код:
GameTextForPlayer(playerid, "~w~Los Santos
        "
, 5000, 1);
To

pawn Код:
GameTextForPlayer(playerid, "~w~Los Santos", 5000, 1);



Re: GameTextForPlayer error. - jremi - 01.11.2013

I get this now:

Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

Header size: 8860 bytes
Code size: 1622816 bytes
Data size: 10324240 bytes
Stack/heap size: 16384 bytes; estimated max. usage=5266 cells (21064 bytes)
Total requirements:11972300 bytes


Re: GameTextForPlayer error. - Konstantinos - 01.11.2013

That's bad.
Read this thread: https://sampforum.blast.hk/showthread.php?tid=57018 and try reduce as much as you can the arrays you use.