[HELP]: It cannot load to ongamemodeinit
#1

-----
Reply
#2

Any help ?
Reply
#3

You're writing "Create3DTextLabel" among with paranthesis, and other separators.

When you're reading the line it reads as this (example).
Код:
Create3DTextLabel(%s,0x008080FF,%.4f,%.4f,%.4f,40.0,0,0);
sscanf sees "Create3DTextLabel", the paranthesis, the commas and doesn't know what to do, that's why the labels won't create. When you're writing, just write the raw values. Raw values as in the coordinates, and separate them only with a space.

Example

When writing
pawn Код:
format(szFileString, sizeof(szFileString), "%f %f %f", x, y, z);
When loading
pawn Код:
while(fread(file, szFileString))
{
    sscanf(szFileString, "fff", x, y, z);
    Create3DTextLabel(......);
}
offtopic, bump after 48 hours, and this problem has nothing to do with OnGameModeInit
Reply
#4

I understand, thanks for your help.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)