Help with Saving/Loading Player Positions. EASY
#10

Wesley, Your code has some warns...

Код:
C:\Users\Ricardo\Desktop\Script-Programaзгo\Script SA-MP\RPG Project\RPGProject\RPGProject\gamemodes\RPGProject.pwn(2375) : warning 213: tag mismatch
C:\Users\Ricardo\Desktop\Script-Programaзгo\Script SA-MP\RPG Project\RPGProject\RPGProject\gamemodes\RPGProject.pwn(2376) : warning 213: tag mismatch
C:\Users\Ricardo\Desktop\Script-Programaзгo\Script SA-MP\RPG Project\RPGProject\RPGProject\gamemodes\RPGProject.pwn(2377) : warning 213: tag mismatch
C:\Users\Ricardo\Desktop\Script-Programaзгo\Script SA-MP\RPG Project\RPGProject\RPGProject\gamemodes\RPGProject.pwn(2378) : warning 213: tag mismatch
C:\Users\Ricardo\Desktop\Script-Programaзгo\Script SA-MP\RPG Project\RPGProject\RPGProject\gamemodes\RPGProject.pwn(2394) : warning 219: local variable "file" shadows a variable at a preceding level
C:\Users\Ricardo\Desktop\Script-Programaзгo\Script SA-MP\RPG Project\RPGProject\RPGProject\gamemodes\RPGProject.pwn(2399) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


6 Warnings.
Lines:
pawn Код:
dini_IntSet(file, "Spawn X", x);
        dini_IntSet(file, "Spawn Y", y);
        dini_IntSet(file, "Spawn Z", z);
        dini_IntSet(file, "Spawn A", a);
AND
new name[MAX_PLAYER_NAME], file[128];
AND
SetPlayerFacingAngle(playerid, dini_IntSet(file, "Spawn A"));
Thank you.

Iggy, I think that your code will nto save it on the disconnect/connect... I will use your code for a /savepos and /loadpos script.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)