12.11.2010, 19:28
(
Последний раз редактировалось Kanape9; 12.11.2010 в 19:46.
)
Hello
I have a problem...
With my gamemode...
CAN ANY 1 HELP ME
I have a problem...
With my gamemode...
Код:
C:\Users\Dominykas\Desktop\Freeroam\gamemodes\ltfreeroam.pwn(649) : warning 217: loose indentation C:\Users\Dominykas\Desktop\Freeroam\gamemodes\ltfreeroam.pwn(649) : error 029: invalid expression, assumed zero C:\Users\Dominykas\Desktop\Freeroam\gamemodes\ltfreeroam.pwn(649) : error 004: function "OnPlayerRequestClass" is not implemented C:\Users\Dominykas\Desktop\Freeroam\gamemodes\ltfreeroam.pwn(651) : error 017: undefined symbol "playerid" C:\Users\Dominykas\Desktop\Freeroam\gamemodes\ltfreeroam.pwn(652) : error 017: undefined symbol "playerid" C:\Users\Dominykas\Desktop\Freeroam\gamemodes\ltfreeroam.pwn(653) : error 017: undefined symbol "playerid" C:\Users\Dominykas\Desktop\Freeroam\gamemodes\ltfreeroam.pwn(654) : error 017: undefined symbol "playerid" C:\Users\Dominykas\Desktop\Freeroam\gamemodes\ltfreeroam.pwn(655) : error 017: undefined symbol "playerid" C:\Users\Dominykas\Desktop\Freeroam\gamemodes\ltfreeroam.pwn(656) : error 017: undefined symbol "playerid" C:\Users\Dominykas\Desktop\Freeroam\gamemodes\ltfreeroam.pwn(660) : warning 225: unreachable code C:\Users\Dominykas\Desktop\Freeroam\gamemodes\ltfreeroam.pwn(660) : error 029: invalid expression, assumed zero C:\Users\Dominykas\Desktop\Freeroam\gamemodes\ltfreeroam.pwn(660) : error 004: function "OnPlayerConnect" is not implemented C:\Users\Dominykas\Desktop\Freeroam\gamemodes\ltfreeroam.pwn(662) : error 017: undefined symbol "playerid" C:\Users\Dominykas\Desktop\Freeroam\gamemodes\ltfreeroam.pwn(664) : error 017: undefined symbol "playerid" C:\Users\Dominykas\Desktop\Freeroam\gamemodes\ltfreeroam.pwn(666) : error 017: undefined symbol "playerid" C:\Users\Dominykas\Desktop\Freeroam\gamemodes\ltfreeroam.pwn(669) : error 017: undefined symbol "playerid" C:\Users\Dominykas\Desktop\Freeroam\gamemodes\ltfreeroam.pwn(670) : error 017: undefined symbol "playerid" C:\Users\Dominykas\Desktop\Freeroam\gamemodes\ltfreeroam.pwn(671) : error 017: undefined symbol "playerid" C:\Users\Dominykas\Desktop\Freeroam\gamemodes\ltfreeroam.pwn(672) : error 017: undefined symbol "playerid" C:\Users\Dominykas\Desktop\Freeroam\gamemodes\ltfreeroam.pwn(673) : error 017: undefined symbol "playerid" C:\Users\Dominykas\Desktop\Freeroam\gamemodes\ltfreeroam.pwn(675) : error 017: undefined symbol "playerid" C:\Users\Dominykas\Desktop\Freeroam\gamemodes\ltfreeroam.pwn(678) : error 017: undefined symbol "playerid" C:\Users\Dominykas\Desktop\Freeroam\gamemodes\ltfreeroam.pwn(681) : error 017: undefined symbol "playerid" C:\Users\Dominykas\Desktop\Freeroam\gamemodes\ltfreeroam.pwn(683) : error 017: undefined symbol "playerid" C:\Users\Dominykas\Desktop\Freeroam\gamemodes\ltfreeroam.pwn(684) : error 017: undefined symbol "playerid" C:\Users\Dominykas\Desktop\Freeroam\gamemodes\ltfreeroam.pwn(689) : warning 225: unreachable code C:\Users\Dominykas\Desktop\Freeroam\gamemodes\ltfreeroam.pwn(689) : error 029: invalid expression, assumed zero C:\Users\Dominykas\Desktop\Freeroam\gamemodes\ltfreeroam.pwn(689) : error 004: function "OnPlayerSpawn" is not implemented C:\Users\Dominykas\Desktop\Freeroam\gamemodes\ltfreeroam.pwn(691) : error 017: undefined symbol "playerid" Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 26 Errors.
pawn Код:
Public OnPlayerRequestClass (playerid, classid)
{
SetPlayerFacingAngle (playerid, 250.7573);
SetPlayerPos (playerid, -2450.8013, -305.1058,56.9433);
SetPlayerCameraPos (playerid, -2439.3076, -307.7223,57.9584);
SetPlayerCameraLookAt (playerid, -2450.8013, -305.1058,56.9433);
PlayerPlaySound (playerid, 1138, 257.6206, -41.5307, 1002.0234) / / Sound
ApplyAnimation (playerid, "Dancing," "DAN_Left_A" 4.0,1,0,0,0, -1) / / Dance
return 1;
}
Connect Player On //============================== =============== ================
Public OnPlayerConnect (playerid)
{
printf ("OnPlayerConnect (% d)", playerid);
new String [256];
GameTextForPlayer (playerid, "~ r ~ LV Free-Roam ~ n ~ ~ w ~ ', 10000.1);
new name [24];
GetPlayerName (playerid, name, 24);
format (string, sizeof (string) "***% will join us!. "cottage);
SendClientMessageToAll (COLOR_WHITE, string);
SendClientMessage (playerid, COLOR_GOLD, "Welcome");
SendClientMessage (playerid, 0x7CFC00FF, Register! / Register [password] ");
SendClientMessage (playerid, 0x7CFC00FF, "All of our servers can be found here http://sampfreeroom.heavenforum.com");
SendClientMessage (playerid, 0x7CFC00FF, "Do not forget isimesti our server to your favorites!");
SendClientMessage (playerid, 0x7CFC00FF, "Help - / help");
format (string, sizeof (string), please sign up to play. "cottage);
ShowPlayerDialog (playerid, 1, DIALOG_STYLE_INPUT, "Registration," string "Register", "Reject");
{
format (string, sizeof (string) Please log in to play. "cottage);
ShowPlayerDialog (playerid, 2, DIALOG_STYLE_INPUT, "Connection" string "Log", "Cancel");
}
new file [128], name [128];
GetPlayerName (playerid, name, 128);
format (file, 128, "user /% s.ini", name);
if (! dini_Exists (file)) ShowPlayerDialog (playerid, 9876, DIALOG_STYLE_INPUT "Enter" "Enter password:", "OK", "Exit");
else ShowPlayerDialog (playerid, 9877, DIALOG_STYLE_INPUT, "Connection", "Enter password:", "OK", "Exit");
return 1;
}
//================================================ ==============================
He //============================= Player Spawn ================ ==================
Public OnPlayerSpawn (playerid)
{
SendClientMessage (playerid, COLOR_GOLD, Info & Help - / help ");
{
{
CAN ANY 1 HELP ME